Crackme 2.75 By BuLLeT [TOL '98]
Visual Basic 5
Written by McCodEMaN

Introduction


Greetings and welcome to the noble art of reverse engineering!

VB5 programs uses a file called: msvbvm50.dll
so when you use softice in my second part, make sure that....

   EXP=C:\windows\system\msvbvm50.dll

is active in your softice.dat file.
If you don`t have this string you should add it!


You should also activate:

   EXP=C:\windows\system\shell32.dll
   EXP=C:\windows\system\shell232.dll
   EXP=C:\windows\system\advapi32.dll

To activate them, remove the semi-colons in front of them!



Tools required

SmartCheck
SoftIce


Target's URL

http://crackmes.cjb.net



Essay

 



 First Approach: Using SmartCheck! 
 

Run Smartcheck and configure the settings, like this:

      Under Program/settings menu:

     *ERROR DETECTION: Check all boxes except 'Report errors immediately'

     *ADVANCED SETTINGS: Check the first four boxes. The others should be emty!

     *REPORTING: All boxes should be checked except the one for:
                                'Report Mouse Move events from ocx controls'
 
 

Ok, Smartcheck is ready, are you?
 

Press F5 to run the program, then type any serial you like. When you have clicked "Verify"
you recive a: Nope. That's not the one!
Oh yae, i know that, exit the program.

Right then, lets take a look and see what we get from all this, shall we?!

Click on the: Command1_Click and we will see this:

Mid
Mid
Mid
Mid
Mid
Mid
Text1.Text
Command1Caption <--"Verify" (string)
Text1.Text <--"Nope.Thats not the one!" (string)

Place the blue bar at the first Text1.Text and under "View" choose "show all events".

You will now see a bunch of: __vbaVarAdd......
Here they are:

 

          __vbaVarAdd  returns  DWORD:63F344

                    = "2rK4"

                    = "HJ4"

 
 

          __vbaVarAdd  returns  DWORD:63F334

                    = "2rK4HJ4"

                    = "-"

 

          __vbaVarAdd  returns  DWORD:63F324

                    = "2rK4HJ4-"

                    = "7n8Rg"

 

          __vbaVarAdd  returns DWORD:63F314

                     = "2rK4HJ4-7n8Rg"

                     = "T09IW"

 

          __vbaVarAdd  returns  DWORD:63F304

                     = "2rK4HJ4-7n8RgT09IW"

                     = "6a7kSl"

 

          __vbaVarAdd  returns  DWORD:63F2F4

                     = "2rK4HJ4-7n8RgT09IW6a7kSl"

                     = "g33"

 

          __vbaVarTstEq  returns  DWORD:0

                      = "2rK4HJ4-7n8RgT09IW6a7kSlg33"
 
 

Second Approach: Using SoftIce!

Step1  Run the crackme and enter a fakeserial, then place a bp on   __multibytetowidechar
 

Step2  Press F11
 

Step3  And we step through the code and find the valid serial at:

               :0F0414F3      MOV     EBP, EAX <= eax contains our valid serial!

            If you can't see the hole serial, run through the prot-window it's all there.
 

Step4  And at:

                :0F0414FF      PUSH     EBP => valid serial!

                :0F041501       PUSH     ESI => fake serial!
 

Ok, thats it...but before we quite i'll tell you one more way to crack this program, witch also is described by Prophecy in a txt-file that comes with the crackme zipfile.

Place a bp on   __vbaStrComp

Type dd esp to see whats pushed to the stack.

d 00411560 => valid serial!
 

I think i'll end here!

Final Notes



I would like to thank:

tKC, for everything!
Razzia, for making me interested in VB in the first place!
Jeff, for making me come back to the VB environment after a long vacation!
Eternal Bliss, for providing us with a great VB source!



When ever there is a door,
there is an entrance.
And behind an entrance can no secret hide,
when a cracker takes his knowledge for a ride



ObDuh  

The information in this essay is for educational purpose only!
You are only allow to crack, reverse engineer, modify code and debugg programs that you legaly bought and then for personal use only!!
To ignore this warning is a criminell act and can result in lawful actions!

So please note!
I take no responebility for how you use the information in this essay, i take NO responebility for what might happen to you or your computer! You use this information on your own risk!!

What i mean is: Please buy the software!





BACK




Essay written by McCodEMaN ŠTRES2000. All Rights Reserved.