ok now i know how to write a binary file with an exe extention. But the program i mentioned above doen't write the file with an exe extention, instead it writes with tmp extention and loads the program. How did they do that?