📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  Target Specific - General  >>  PELock Unpack

Topic created on: January 23, 2007 10:52 CST by leadzero .

I have a piece of malware, packed with PElock, that has some anti-debugging that I haven't been able to get around yet. Both IDA and Olly are being detected (a popup comes up and the program dies to an exception after clicking the "ok" button). IsDebuggerPresent doesn't appear to be called, neither does FindWindow(A/W/ExA/ExW). In fact, it doesn't look like user32 gets loaded until the packer needs the MessageBox export for the popup.

From what I know from the PElock website, this seems consistant to their features.

Anyone have any hints on how I can get an unpacked version of this malware?

Thanks

  ryanlrussell     January 23, 2007 12:30.53 CST
Well, generally speaking you have to selectively deal with the antidebugging tricks. What are you trying to do? Just run it to a particular breakpoint, or what? Are you single-stepping and not able to identify when there's a debugger trick? I assume you're trying to unpack it? Is there a packed sample someplace?

  tagetora   January 23, 2007 13:08.35 CST
If I remember correctly, PELock uses exceptions to detect "generic/ring3" debuggers. So you can try to ignore the exceptions in Olly (usually seems to work nice), take a close look into the exception stuff or use SoftIce/rr0d (who cares about exceptions in ring0?).

Take a look at the Anti-Reversing DB of the "Reference Library", maybe it will help you with the unpacking process.

  MohammadHosein     January 23, 2007 13:16.03 CST
"do you Speak Binary" have released something that could be useful .

  gnukish     January 25, 2007 04:29.54 CST
hxxp://72.14.253.104/search?q=cache:v1X3us0Cz2YJ:a.1asphost.com/PhuduTechnologies/dqtln/IT%2520Handbook/Crack/Unpack/Tutorial%252022%2520Unpack%2520PELock%25201.0x.htm+unpacking+PELock&hl=en&gl=in&ct=clnk&cd=9

Check out the above link ;)
From older ventures,I know it uses IsDebuggerPresent API.

Cheers :)

  bw     January 25, 2007 15:45.28 CST
IDA is detected by its main window class, change it

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit