/*
Script written by wangdell
record opcode
20080802
//0x42e30b
*/
//test for vmprotect 1.63 release
var tmp1
var tmp2
var tmp3
var tmp4
var tmp5
var tmp6
var tmp7
var tmp8
var tmp9
var tmp10
var imgbase
var bpVMenginejmp
var count
cmp $VERSION, "1.47" //比较版本是否>1.47
jb odbgver
dbh //hide od
BPHWCALL //clear hardware breakpoint
BC //clear software breakpoint
BPMC //clear Memory breakpoint
mov count,0
ask_jmp:
ask "Enter EIP of VM_execute"
mov bpVMenginejmp,$RESULT
cmp bpVMenginejmp,0
je ask_jmp
bp $RESULT
log "VM Trace start!"
run_to_bp:
EOB bp_record
ESTO //step to bp(vm_execute)
bp_record:
log ecx
jmp run_to_bp
odbgver:
msg "本脚本须配合 ODbgscript 1.47 或以上的版本"
jmp end
end:
ret