If the game is still available for purchase from the developer, buy it . If the game is truly ancient and no longer sold (abandonware), use trusted archival sites that provide codes without requiring you to download suspicious executable files. And always remember that a healthy dose of skepticism is your best antivirus software.