We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10eaa8a commit b4d65aaCopy full SHA for b4d65aa
1 file changed
pe2shc/main.cpp
@@ -4,14 +4,17 @@
4
#include "peconv.h"
5
#include "resource.h"
6
7
-#define VERSION "0.6"
+#define VERSION "0.7"
8
9
bool overwrite_hdr(BYTE *my_exe, size_t exe_size, DWORD raw)
10
{
11
- BYTE redir_code[] = "\x4D\x5A"
12
- "\xE8\x00\x00\x00\x00"
+ BYTE redir_code[] = "\x4D" //dec ebp
+ "\x5A" //pop edx
13
+ "\x45" //inc ebp
14
+ "\x52" //push edx
15
+ "\xE8\x00\x00\x00\x00" //call <next_line>
16
"\x5B" // pop ebx
- "\x48\x83\xEB\x07" // sub ebx,7
17
+ "\x48\x83\xEB\x09" // sub ebx,9
18
"\x53" // push ebx (Image Base)
19
"\x48\x81\xC3" // add ebx,
20
"\x59\x04\x00\x00" // value
0 commit comments