This is based on trancexx's work in this thread. It's an example of executing a function from the winapi in another process (MessageBoxW). It's not very useful at the moment, but this could very well be used to inject code that does whatever. I commented pretty much so it should be quite easy to follow how it works. The basic structure is: 1. Allocate memory in the target process for code and strings. 2. Generate the machine code. 3. Copy the code and strings to the process. 4. Start execut