Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2004, 05:04
quetzaoalt
 
Posts: n/a
PECompact 2

Hi,

I'm playing with my first Pecompact2 target.

After dumping/rebuilding it.. I run it.... what happened ?? ExitWindowEX hihi nice trick...

bref... I check the target and saw a lot of crippled code / Antidebug....

I prefer to ask PeCompact2 target in order to verify my dump methods, and/or perhaps if the target i wanna play is vicious

I think that these antidebug are "available" only with the retail version. If anyone has a notepad "pecompacted" : email it

Thanks
Reply With Quote
  #2  
Old 11-13-2004, 18:42
MaRKuS-DJM's Avatar
MaRKuS-DJM MaRKuS-DJM is offline
Cracker + Unpacker
 
Join Date: Aug 2003
Location: Virtual World / Network
Posts: 553
Rept. Given: 7
Rept. Rcvd 6 Times in 4 Posts
Thanks Given: 3
Thanks Rcvd at 16 Times in 10 Posts
MaRKuS-DJM Reputation: 6
pe compact is a packer and no protector. these antidebug must come from the program itself. there's no pe compact version with such features
Reply With Quote
  #3  
Old 11-13-2004, 20:05
dyn!o's Avatar
dyn!o dyn!o is offline
Friend
 
Join Date: Nov 2003
Location: Own mind
Posts: 214
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 8
Thanks Rcvd at 0 Times in 0 Posts
dyn!o Reputation: 1
Quote from PECompact help file:
Quote:
In addition to space savings, PECompact2 inherently makes it more difficult to reverse engineer your module(s). The compressed data is unreadable and not directly modifiable. PECompact2's default loader employs some basic anti-debugging code to aid in prevention of reverse engineering. In addition,PECompact2 supports Loader plug-ins. Therefore, third parties can create custom loaders after purchasing the loader SDK.
PeCompact main purpose is to compress and create custom operations before, during and after decompression. That are the features which differs from other compressors/protectors (it isn't a protector but let's compare them). If someone had developed a custom dll with anti-debug tricks and executed its functions inside compressed executable then it's possible to encounter things you are discussing. Anyway, such tricks are not hard, since you can always unpack the executable after all loaders do their job (because they must stay out of compressed PE and DLLs).

PeCompact2 internal "anti-debug" and "anti-reverse" tricks are very old and weak, not to say it doesn't really contain them (for instance: it's enough to change one byte to disable checksum verification and modify any range of compressed executable you want).

Regards.
Reply With Quote
  #4  
Old 11-13-2004, 23:13
MaRKuS-DJM's Avatar
MaRKuS-DJM MaRKuS-DJM is offline
Cracker + Unpacker
 
Join Date: Aug 2003
Location: Virtual World / Network
Posts: 553
Rept. Given: 7
Rept. Rcvd 6 Times in 4 Posts
Thanks Given: 3
Thanks Rcvd at 16 Times in 10 Posts
MaRKuS-DJM Reputation: 6
i think the checksum in PE Compact was removed in version 2. i was able to inline-patch such files without any checksum errors from PE Compact. maybe it has such antidebug... but i think these doesn't hit olly.
quetzaoalt said these antidebug happened after unpacking
Reply With Quote
  #5  
Old 11-14-2004, 02:00
dyn!o's Avatar
dyn!o dyn!o is offline
Friend
 
Join Date: Nov 2003
Location: Own mind
Posts: 214
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 8
Thanks Rcvd at 0 Times in 0 Posts
dyn!o Reputation: 1
Yes, in v2 checksum went renamed to CRC32 as external dll which is suggested to use instead of "code integrity check" option (available also in v2).

If I understood correctly then Quetzaoalt said about anti-debug and "crippled" code after unpacking. If that's right then we have three choices:

1. The software was protected with anti-debug tricks inside the source code and then, to fool potential cracker, compressed (not protected) with PeCompact2 since it allows dual compression on many packers.

2. The software was protected by an protector without checksum verification and then (to fool again) compressed with PeCompact (I saw such a behaviour few times... useless but people do that ).

3. He could made a wrong dump (wrong context, range, layer or even process - like Armadillo does).


Regards.

Last edited by dyn!o; 11-14-2004 at 02:04.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 07:50.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )