INNER CODE UNIT · C
dwAddress
Idov31/Cronos · src/Utils.c:27
DWORD_PTR dwAddress = findPattern((DWORD_PTR)ImageBase + text_section->VirtualAddress, text_section->SizeOfRawData, bMask, szMask);
return dwAddress;
}
PVOID findGadget(PBYTE hdrParserFuncB, PCHAR hdrParserFunctMask)
{
HANDLE hProcess;
BOOL result;
HMODULE *moduleList;
DWORD bytesNeeded;
DWORD nModules = 0;
LPSTR moduleName = NULL;
DWORD_PTR ptr = 0;
// PBYTE hdrParserFuncB = (PBYTE)"\x48\x89\x22\xc3";
hProcess = GetCurrentProcess();
moduleList = malloc(SIZE_MODULE_LIST * sizeof(HMODULE));