I want to create an application that provides rawData to PEloader.cpp before it's compiled. I tried TinyCC, but I believe there might be a more efficient approach. Can you suggest a better alternative?
I also tried reading rawData from a file on disk, but i belive i have to deliver the file with the PEloader
I also tried reading rawData from a file on disk, but i belive i have to deliver the file with the PEloader
C:
unsigned char rawData[64] = {
0x68, 0x65, 0x6D, 0x61, 0x73, 0x2D, 0x6D, 0x69, 0x63, 0x72, 0x6F, 0x73,
0x6F, 0x66, 0x74, 0x2D, 0x63, 0x6F, 0x6D, 0x3A, 0x61, 0x73, 0x6D, 0x2E
};
void Inject()
{
//Deobfuscate rawData if obfuscated
void* imageBuffer = rawData();
IMAGE_NT_HEADERS64* ntHeaders;
IMAGE_SECTION_HEADER* sectionHeader;
IMAGE_DOS_HEADER* dosHeader;
...
}