If you compile the Crypter via pyinstaller (or auto-py-to-exe), and you chose the ” One File” option, the Windows Defender system detects it like a Trojan, and delete it. But, if instead of picking the One File Option, you selected “One Directory” it won't be detected. Why? I don't know, but have it to count when you are going to compile it.

So this is the config that I recommend on auto-py-to-exe, it works.
If you compile the Crypter via pyinstaller (or auto-py-to-exe), and you chose the ” One File” option, the Windows Defender system detects it like a Trojan, and delete it. But, if instead of picking the One File Option, you selected “One Directory” it won't be detected. Why? I don't know, but have it to count when you are going to compile it.
So this is the config that I recommend on auto-py-to-exe, it works.