- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
char * hmod = (char *)GetModuleHandleW(L"msenv.dll");
IMAGE_DOS_HEADER *pDosHeader = (IMAGE_DOS_HEADER *)hmod;
IMAGE_NT_HEADERS *pNtHeaders = (IMAGE_NT_HEADERS *)(hmod + pDosHeader->e_lfanew);
char *pcode = (hmod + pNtHeaders->OptionalHeader.BaseOfCode);
char *ecode = (pcode + pNtHeaders->OptionalHeader.SizeOfCode);
while (pcode < ecode - sizeof(int))
{
if((*(int *)pcode) == 0xFFFFDCB8 ||
(*(int *)pcode) == 0xFFFFDC89 )
{
wchar_t buf[1024];
wsprintfW(buf, L"%p\n", pcode);
OutputDebugStringW(buf);
}
pcode++;
}
Комментарии (0) RSS
Добавить комментарий