吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 7031|回复: 6
收起左侧

[分享] VMProtect - CRC/Inlines by SunBeam

[复制链接]
Hmily 发表于 2010-4-10 01:10
Hello, reversers.

Am currently trying to inline a VMProtect target and from what I could see, VMProtect uses two tricks. One is a hash (or DWORD value) of the main code sections of the protected application (along with its own code), and two, the ASProtect trick - CreateFileMapping + MapViewOfFile. Detailing what I did with observations, maybe it will help get this to its end :-)

TEST 1:

a. get application, make a copy, hex edit copy in such a way that I changed last byte from 00 to 01; saved, launched, error, corrupted

Wanted to see if changing the byte in real-time does the trick. So:

b. opened application in Olly, found last byte, changed from 01 to 00; ran app, error, corrupted

Therefore, it must be making an image of the file on the disk. Known methods - ReadFile, CreateFileMapping + MapViewOfFile. Since VMProtect is tricky, decided to break on end of each API. Ran app, result:

7C809561 C2 1800 RETN 18 // CreateFileMappingA < break

->> 0012F6BC 007FF83A RETURN to pclaw.007FF83A from pclaw.007FD391 (yeah, guess you know the target now, hehe)

7C80B9C1 C2 1400 RETN 14 // MapViewOfFile

->> 0012F6C0 007FF83A RETURN to pclaw.007FF83A from pclaw.007FD391

As you can see, returns to same "wrapper" ;-)

So, pushed this further a little bit. Time to find out the parameters for those two APIs, since the custard doesn't let me change 01 to 00 in the mapped copy T_T..

0012F6C0 007FF83A /CALL to MapViewOfFile from pclaw.007FF835
0012F6C4 00000104 |hMapObject = 00000104
0012F6C8 00000004 |AccessMode = FILE_MAP_READ
0012F6CC 00000000 |OffsetHigh = 0
0012F6D0 00000000 |OffsetLow = 0
0012F6D4 00000000 \MapSize = 0

That's why :-) Same trick as with ASProtect -> 4th parameter is FILE_MAP_READ. Let's trick the custard with 01 (FILE_MAP_COPY). Mapping done, EAX = 1010000. Scrolled to end of map, found my byte, changed to 00.

Ran.. Success :-)

Continuing in a bit with other tests ;-)

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

natyou 发表于 2010-4-10 08:09
good work
xjbxx 发表于 2010-4-10 15:58
qaz003 发表于 2010-4-13 00:15
此人该不会就是以前CEF上的班班吧?
弱弱地问一下hmily,从哪里转来的?好久没看到sunbeam出没了,最近他混哪?
 楼主| Hmily 发表于 2010-4-13 11:18
qaz003 发表于 2010-4-13 19:21
谢谢hmily
 楼主| Hmily 发表于 2010-4-14 13:26
此方法过VMProtect crc检测的方法以前在ASProtect上用过,类似.
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-15 01:13

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表