I've wondered whether a virus, originally written for 32-bit executable, can infect 64-bit executable successfully?
All 32-bit instructions are valid 64-bit instructions, right? So, only the ABI may break things?
How should a 32-bit virus be adjusted (if neccessary) to target 64-bit executable?
I'm interested in answers for Windows or Linux family of operating systems, i.e., virusses written with the purpose of infecting PE or ELF binaries.