Jump to content
Tuts 4 You

Rlpack - New Year Challenge


ap0x

Recommended Posts

This is the official RLPack unpackme. Unpacking is considered correct if the unpacked Unpack.exe can unpack crackme.fsg.exe. You can not add ap0x unpacking engine .dll files to unpackme to make it work. You can only use things located inside the challenge archive. Due to the fact that Unpack.exe uses psapi.dll challenge will work only on NT systems.

The first one to unpack the official unpackme will get RLPack Full Edition - Personal license!

Contact email: ap0x.rce@gmail.com

Happy cracking ;)

Challange.zip

Link to comment

OEP to find easy!

0040F738 61 popad

0040F739 - E9 C218FFFF jmp UnPACK.004010

Import it is possible resrore Original without Imprec!

0040F69E /0F84 85120000 je UnPACK.00410929

0040F6A4 |E8 CE090000 call UnPACK.00410077

0040F6A9 |E8 411E0000 call UnPACK.004114EF<--------

0040F6AE |C785 5E230000 00000000 mov dword ptr ss:[ebp+235E],0

0040F6B8 |8907 mov dword ptr ds:[edi],eax

0040F6BA |83C7 04 add edi,4

Link to comment

:) Well, dude it doesn't matter. It surely doesn't have anything evil in it :)

I took a look at this. Got 3 dlls and I think I can get another one, got IAT, got dump but having probs fixing dialog resource...

Link to comment

Great work pavka. You forgot one import from shell32.dll but no matter you are successfull :) Please register over at my forum so I can give you the license :)

Link to comment
Guest Haggar

Hy folks, Happy New Year also.

Tip: You don't need to use ImpREC neither for main executable, neither for DLLs.

For DLLs: No patching, magic jumps, rebuilding , realigning or something else. Just RAW DUMP AT THE RIGHT TIME :)

Link to comment
Hy folks, Happy New Year also.

Tip: You don't need to use ImpREC neither for main executable, neither for DLLs.

For DLLs: No patching, magic jumps, rebuilding , realigning or something else. Just RAW DUMP AT THE RIGHT TIME :)

raw dump :blink: ? how to do that (RAW DUMP) ?

Link to comment
Guest Haggar
raw dump :blink: ? how to do that (RAW DUMP) ?

Packer will reserve some memory for one DLL with VirtualAlloc. Then it will write DLL there. Writing loop is:

0041088C   8A06			 MOV AL,BYTE PTR DS:[ESI]
0041088E 8801 MOV BYTE PTR DS:[ECX],AL
00410890 46 INC ESI ; UnPACK.0040B2D9
00410891 41 INC ECX
00410892 4F DEC EDI
00410893 83FF 00 CMP EDI,0
00410896 ^77 F4 JA SHORT UnPACK.0041088C

After that loop ends, you dump that region of memory with LordPE and just save file as NameOF.DLL. After this loop , packer writes imports to DLL so later dumping would get bad dump.

Link to comment

@ap0x

finally my question was answered... :D

thx, bro from remind me, i'm looking for that tuts...

@Haggar

oh i c, thx for the info, i'm trying now... :D

Link to comment

That just means plain dump without fixing anything.

Btw, I have a question, pavka, did you have to fix resources or you got a better dump than me?

Link to comment

lol :) That was the problem :) I didn't use some Olly plugin to dump but one tool I have that replaced memory it couldn't read with 0 bytes :)

Link to comment

Sorry, I didn't understand your post. Anyway, I said I should have used an Olly plugin for dumping since outside tools can't access all pages of process memory. I'm out of touch. Haven't been cracking for years...

Link to comment

cektop

Here to you an example!

0049C222 68 00400000 push 4000 <------------Dump it

0049C227 68 0D190000 push 190D

0049C22C FFB5 471F0000 push dword ptr ss:[ebp+1F47]

0049C232 FF95 FE030000 call dword ptr ss:[ebp+3FE]

0049C238 E8 06050000 call 1_.0049C743

0049C23D E8 A7000000 call 1_.0049C2E9

0049C242 61 popad

0049C243 - E9 68AFF8FF jmp 1_.004271B0<--------OEP

It is necessary dump it not reaching up to оеп in this place! If you use ImpRec that start it from this point!

And last advice! Do not create new section for import, and rewrite old!

Than to do dump, not important! I did OLLyDump

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...