I am attempting to write a packer / bootstrapper around an application binary.
I build my initial application, then encrypt it, and embed the bytes inside a second application with a function to decompress the bytes (along with other things). I want to now execute this decompressed data without saving it as a file and then launch it. How do I do this programatically in either C / C++ or rust? I am using tauri to build both the bootstraper and the original application.
I attempted to use goto via a void pointer to the heap of decompressed bytes, but this just causes a seg fault. As shown here.
Why am I doing this? It's an attempt to making reverse engineering more difficult. The application has a different variation compiled and sent to clients, hence doing this encryption can slow down reverse engineering and any cheats / hacks because they have access to the real binary only when its about to be used. This is for a remote examination application.