I can provide a for a shellcode runner or explain how to obfuscate the output.
For very simple, self-contained programs written in C or Assembly, you can extract the .text section directly. convert exe to shellcode
This only works if your code does not use any global variables or external DLL calls, as those addresses will be broken once moved. Key Challenges I can provide a for a shellcode runner