1
0
Fork 0

DBG: fixed a formatting problem in cbDebugLoadLib

This commit is contained in:
mrexodia 2017-06-21 15:55:13 +02:00
parent ebd47a88a1
commit 53841caab3
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 8 additions and 7 deletions

View File

@ -87,8 +87,8 @@ bool cbDebugLoadLib(int argc, char* argv[])
return false;
}
unsigned char loader[] =
#ifdef _WIN64
unsigned char loader[] =
{
0x48, 0xB9, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, //movabs rcx, DLLNameAddr
0x48, 0xB8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, //movabs rax, p_LoadLibraryW
@ -96,12 +96,13 @@ bool cbDebugLoadLib(int argc, char* argv[])
0x90 //nop
};
#else
{
0x68, 0xFF, 0xFF, 0xFF, 0xFF, //push DLLNameMem
0xB8, 0xFF, 0xFF, 0xFF, 0xFF, //mov eax, p_LoadLibraryW
0xFF, 0xD0, //call eax
0x90 //nop
};
unsigned char loader[] =
{
0x68, 0xFF, 0xFF, 0xFF, 0xFF, //push DLLNameMem
0xB8, 0xFF, 0xFF, 0xFF, 0xFF, //mov eax, p_LoadLibraryW
0xFF, 0xD0, //call eax
0x90 //nop
};
#endif //_WIN64
auto DLLNameOffset = ArchValue(1, 2), LoadLibraryOffset = ArchValue(6, 12);