Skip to content

Commit

Permalink
2.0.7
Browse files Browse the repository at this point in the history
Now tested with non-expansion binary!
  • Loading branch information
oorzkws committed Oct 20, 2024
1 parent 61310ba commit b85d437
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions main_dll/src/DoPatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,18 @@ void do_patch(HMODULE base) {
0x48, 0x8b, 0x02, 0x80, 0x78, 0x3e, 0x00, 0x74, 0x10, 0x80, 0x78, 0x40, 0x00, 0x74,
SnR_Engine::SearchMode_EOF
},
/* 8: ControlSettings:ControlSettings e8 4b 96 8c ff 84 c0 74 ??
* Once again, the call address is different during runtime
* call -> test -> jz (74 0F) -> xor -> lea r12+0B548 (the lea is our easy match)
/* 8: ControlSettings:ControlSettings 33 d2 48 8b c8 e8 ?? ?? ?? ?? 84 c0 74 ?? 33 [rest of pattern not necessary] d2 49 8d 8c 24 ?? ?? ?? ?? e8 ?? ?? ?? ??
* This just skips the isVanilla call we break above :^)
* I'm a good programmer sometimes, but not today */
{
SnR_Engine::SearchMode_Search, 8,
0xe8, 0x4b, 0x96, 0x8c, 0xff, 0x84, 0xc0, 0x74,
SnR_Engine::SearchMode_Search, 6,
0x33, 0xd2, 0x48, 0x8b, 0xc8, 0xe8,
SnR_Engine::SearchMode_Skip, 4,
SnR_Engine::SearchMode_Search, 3,
0x84, 0xc0, 0x74,
SnR_Engine::SearchMode_Skip, 1,
SnR_Engine::SearchMode_Search, 1,
0x33,
SnR_Engine::SearchMode_EOF
},
};
Expand Down Expand Up @@ -170,7 +174,7 @@ void do_patch(HMODULE base) {
},
//8
{
SnR_Engine::SearchMode_Skip, 7,
SnR_Engine::SearchMode_Skip, 12,
// jz -> jmp
SnR_Engine::SearchMode_Replace, 1,
0xEB,
Expand Down

0 comments on commit b85d437

Please sign in to comment.