Skip to content

Instantly share code, notes, and snippets.

@markhc
Created May 13, 2016 07:49
Show Gist options
  • Save markhc/3cdf07f25496f6df025e4fb800eac9dd to your computer and use it in GitHub Desktop.
Save markhc/3cdf07f25496f6df025e4fb800eac9dd to your computer and use it in GitHub Desktop.
UCHAR pCodeBuffer[] =
{
0x55, //push ebp // 0x00
0x89, 0xE5, //mov ebp,esp // 0x01
0x68, 0x00, 0x00, 0x00, 0x00, //push pModuleHandle // 0x03
0x68, 0x00, 0x00, 0x00, 0x00, //push pszModulePath // 0x08
0x6A, 0x00, //push 0 // 0x0D
0x6A, 0x00, //push 0 // 0x0F
0xE8, 0x00, 0x00, 0x00, 0x00, //call LdrLoadDll // 0x11
0x5D, //pop ebp // 0x16
0xC2, 0x04, 0x00 //ret 4 // 0x17
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment