// Molebox 2.x Unpacker / OEP Finder Script v1.10
// by Cherry
//
// Needed tools: OllyDbg with ODbgScript-Plugin
//
// This script will unpack all files in a Molebox 2.x packed file which are visible to the packed program into the subfolder "!UNPACKED!".
// Unfortunately, in many cases the main executable is not included.
//
// 1. Copy "mbunpack.dll" and "filelen.exe" into the executable's folder.
// 2. Open the moleboxed executable in Olly.
// 3. Make sure EIP is at the entry point of Molebox stub, no breakpoints are set and all exceptions are ignored!!!
// 4. Run this script.
// 5. OEP address will be displayed and you will be asked if you want to unpack it or start exploring the file at OEP.
// 6. If you start unpacking, you can follow the progress in the console window which will open. Be patient.
//
// Known bug: All folders in the root directory will be recreated in the "!UNPACKED!" subfolder, ignoring whether it existed in the archive or not.
//
// Have fun!
// Greetings, Cherry
var temp
mov temp, eip
sub temp, 440
find temp, #615858FFD0#
cmp $RESULT, 0
jne okaya
sub temp, 0BC0
find temp, #615858FFD0#
cmp $RESULT, 0
jne okaya
sub temp, 1000
find temp, #615858FFD0#
cmp $RESULT, 0
jne okaya
sub temp, 1000
find temp, #615858FFD0#
cmp $RESULT, 0
je failed
okaya:
mov temp, $RESULT
add temp, 3
bphws temp, "x"
run
bphwc temp
sti
itoa eip
msgyn "OEP is at VA " + $RESULT + "! Unpack?"
cmp $RESULT, 0
jne unpack
an 400000
ret
unpack:
var mname
mov mname, eip
mov temp, eip
mov [temp], "mbunpack.dll"
add temp, 0C
mov [temp], #00#
inc temp
var fname
mov fname, temp
mov [temp], "MBUNPACK_ALL@0"
add temp, 0E
mov [temp], #00#
inc temp
var uep
mov uep, temp
mov [temp], #68#
inc temp
mov [temp], mname
add temp, 4
asm temp, "call eax"
add temp, 2
asm temp, "call ebx"
add temp, 2
asm temp, "ret"
mov edx, mname
mov ebx, fname
exec
push edx
call LoadLibraryA
mov edx, eax
push ebx
push edx
call GetProcAddress
mov ebx, eax
push edx
call FreeLibrary
ende
cmp ebx, 100000
jb nolib
mov eip, uep
findmem #558BEC6A00FF7508E8????????59595DC20400#
mov eax, $RESULT
cmp eax, 0
jne okayb
findmem #558BEC8B45086A0050E8????????83C4085DC20400#
mov eax, $RESULT
cmp eax, 0
je failed
okayb:
mov temp, uep
add temp, 9
bphws temp, "x"
run
bphwc temp
ret
failed:
msg "Cannot unpack this file. Make sure EIP is at the EP of Molebox stub, no breakpoints are set and all exceptions are ignored! If everything is fine: Maybe the file is not packed with Molebox 2.x or it's packed with another packer too?"
ret
nolib:
msg "Loading mbunpack.dll failed! Make sure it's in the executable's directory, as well as filelen.exe!"
ret

weedd
- 粉丝: 1
最新资源
- 人力资源管理工具表格Excel模板.xlsx
- 系列单片机出租车计价器控制系统设计实施方案.doc
- 互联网在线产品定位分析.pptx
- 2023年内蒙古上半年银行招聘计算机学知识点WINDOWS的启动桌面的相关操作考试试卷.docx
- 全面推进智慧城市建设工作方案.docx
- 试谈设置Maven仓库.doc
- 以Excel和SPSS为工具的管理统计.ppt
- 嵌入式软件开发个人简历.docx
- 毕业论文-初级网络写手的生存状况研究(最终稿).doc
- 计算机金融(专科)毕业设计参考题目模板.xls
- xx城市-智慧城市-建设行动计划.doc
- 计算机 Office 课程平台管理系统毕业设计源码展示
- 电动汽车动力性分析研究—自动化钱栋.doc
- 用PLC技术研设计层电梯控制系统毕业研发设计[].doc
- 计算机专业求职面试自我介绍简短(三篇).docx
- 废旧电子产品逆向物流网络优化设计研究.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



- 1
- 2
- 3
- 4
前往页