In order to get rid of a malicious .exe file, you need to scan your system through an antivirus program. As soon as a .exe file is detected by the antivirus software, delete it to protect your system against any trojan threat.