-
Notifications
You must be signed in to change notification settings - Fork 109
/
Mpress2xx.txt
61 lines (48 loc) · 902 Bytes
/
Mpress2xx.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//////////////////////////////////////////////////
// FileName : Mpress2xx.txt
// Comment : OEP Find For MPress v2.xx
// Author : _pusher_
// Date : 2015-12-10
//////////////////////////////////////////////////
//start
msg "Mpress 2.xx OEP Finder"
msg "make sure you're at the entry point of the program before you continue"
pause
//clear breakpoints
bc
bphwc
//find jump ret
find cip,"83C47C5B5E5F5DC3E9" //some pattern
cmp $result,0
jnz AllOK
find cip,"8B45F85EC9C20400E9" //another pattern
cmp $result,0
jnz AllOK
jmp error1
AllOK:
log "found: {0}", $result+8
//go to jump
bp $result+8
erun
bc
sti
//find OEP Jump
find cip,"AAB8?E010000AB61E9" //some pattern
log "found: {0}", $result+8
cmp $result,0
je error2
bc
//go to OEP
bp $result+8
erun
bc
sti
cmt cip,"OEP"
//finish script
ret
error1:
msg "didn't find jump"
ret
error2:
msg "didn't find oep jump"
ret