forked from x64dbg/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathASPack 2.xx.txt
50 lines (41 loc) · 830 Bytes
/
ASPack 2.xx.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
//////////////////////////////////////////////////
// FileName : ASPack 2.xx.txt
// Comment : OEP Find For ASPack 2.xx
// Author : _pusher_
// Date : 2015-07-08
//////////////////////////////////////////////////
//start
msg "ASPack 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 oep jump
find cip,"617508B801000000C20C0068" //some pattern
log "found: {0}", $result
cmp $result,0
je error
//go there
bp $result
erun
bc
$dw = 4:[cip+c]
log "OEP: {0}", $dw
//Go to OEP
bp $dw
erun
//clear breakpoints
bc
cmt cip,"OEP"
TimeToDump:
msgyn "Successfully found OEP! Wanna use Scylla to dump the target?"
cmp 0,$result
je finishScript
scylla
finishScript:
//finish script
ret
error:
msg "didn't find oep jump"
ret