本帖最后由 gfjykldd 于 2018-1-7 19:31 编辑
经过测试,用楼主的方法似乎是可行的,但在楼主的第12步中增加一处修改。
[Asm] 纯文本查看 复制代码 00007FF6D43F61F0 | 48 89 5C 24 08 | mov qword ptr ss:[rsp+8],rbx |
00007FF6D43F61F5 | 57 | push rdi |
00007FF6D43F61F6 | 48 83 EC 20 | sub rsp,20 |
00007FF6D43F61FA | 83 79 3C 00 | cmp dword ptr ds:[rcx+3C],0 |
00007FF6D43F61FE | 8B FA | mov edi,edx |
00007FF6D43F6200 | 48 8B D9 | mov rbx,rcx |
00007FF6D43F6203 | 74 10 | je 010editor.7FF6D43F6215 |
00007FF6D43F6205 | B8 DB 00 00 00 | mov eax,DB | Patch:mov eax, 113 -> mov eax, DB
00007FF6D43F620A | 48 8B 5C 24 30 | mov rbx,qword ptr ss:[rsp+30] |
00007FF6D43F620F | 48 83 C4 20 | add rsp,20 |
00007FF6D43F6213 | 5F | pop rdi |
00007FF6D43F6214 | C3 | ret |
00007FF6D43F6215 | E8 2C DB 50 FF | call 010editor.7FF6D3903D46 |
00007FF6D43F621A | 83 F8 2D | cmp eax,2D | 2D:'-'
00007FF6D43F621D | E9 CC 00 00 00 | jmp 010editor.7FF6D43F62EE | Patch: je 0x00007FF6D43F62EE -> jmp 0x00007FF6D43F62EE
00007FF6D43F6222 | 90 | nop |
00007FF6D43F6223 | 83 F8 4E | cmp eax,4E | 4E:'N'
00007FF6D43F6226 | 0F 84 90 00 00 00 | je 010editor.7FF6D43F62BC |
00007FF6D43F622C | 3D E7 00 00 00 | cmp eax,E7 |
00007FF6D43F6231 | 74 79 | je 010editor.7FF6D43F62AC |
00007FF6D43F6233 | 8B D7 | mov edx,edi |
00007FF6D43F6235 | 48 8B CB | mov rcx,rbx |
00007FF6D43F6238 | E8 17 0E 51 FF | call 010editor.7FF6D3907054 |
00007FF6D43F623D | 83 F8 17 | cmp eax,17 |
00007FF6D43F6240 | 74 5A | je 010editor.7FF6D43F629C |
00007FF6D43F6242 | 83 F8 2A | cmp eax,2A | 2A:'*'
00007FF6D43F6245 | 74 2E | je 010editor.7FF6D43F6275 |
00007FF6D43F6247 | 3D 38 01 00 00 | cmp eax,138 |
00007FF6D43F624C | 75 5E | jne 010editor.7FF6D43F62AC |
00007FF6D43F624E | 48 8B CB | mov rcx,rbx |
00007FF6D43F6251 | E8 B4 0C 51 FF | call 010editor.7FF6D3906F0A |
即把
[Asm] 纯文本查看 复制代码
je 010editor.7FF6D43F6215 |
00007FF6D43F6205 | B8 DB 00 00 00 | mov eax,113 | Patch:mov eax, 113 -> mov eax, DB
00007FF6D43F620A | 48 8B 5C 24 30 | mov rbx,qword ptr ss:[rsp+30]
改成:
[Asm] 纯文本查看 复制代码
je 010editor.7FF6D43F6215 |
00007FF6D43F6205 | B8 DB 00 00 00 | mov eax,DB | Patch:mov eax, 113 -> mov eax, DB
00007FF6D43F620A | 48 8B 5C 24 30 | mov rbx,qword ptr ss:[rsp+30]
下图是dump后注册的结果:
|