Here's an example of what I mean...
- User runs LOADER.EXE program
- LOADER.EXE downloads another EXE but keeps it all in memory without saving it to disk
- Runs the downloaded EXE just as it would if it were executed from disk, but does it straight from memory
I've seen a few applications like this, and I've never seen an example or an explanation of how it works.
Does anyone know?
Another example is having an encrypted EXE embedded in another one. It gets extracted and decrypted in memory, without ever being saved to disk before it gets executed.
I've seen that one used in some applications to prevent piracy.
Edit: As a side-note, do programs like UPX work like this? I looked at the code but it is hard to decipher for me, and I'm asking mainly out of curiosity, I don't have a need for it.