Skip to content

Commit

Permalink
implement movebp
Browse files Browse the repository at this point in the history
  • Loading branch information
khang06 committed May 31, 2020
1 parent 6a28b86 commit b213259
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dominohook/dllmain.cpp
Expand Up @@ -89,6 +89,16 @@ BOOL APIENTRY DllMain( HMODULE hModule,
patch.patch();
break;
}
case StringPatchType::MovEBP: {
BYTE inst[5];
inst[0] = 0xBD;
auto string_addr = string_patch.string;
memcpy(&inst[1], &string_addr, 4);

QPatch patch((void*)string_patch.addr, inst, 5);
patch.patch();
break;
}
case StringPatchType::MovPtrESP: {
BYTE inst[11] = {};
size_t len = 0;
Expand Down
1 change: 1 addition & 0 deletions dominohook/translations.h
Expand Up @@ -7,6 +7,7 @@ typedef enum {
Address,
MovEAX,
MovEDI,
MovEBP,
MovPtrESP,
MovPtr,
} StringPatchType;
Expand Down

0 comments on commit b213259

Please sign in to comment.