How to Reverse Engineer, debug and patch crackme1 file using IDA PRO.
Drag the CrackMe1 file onto the IDA-Pro Software icon or open the IDA-Pro Software and
click on New and select CrackMe1.exe file.
After opening the file, a new screen like below will come. Click OK.
A new screen will top up. Here, press no to continue.
Now, a new screen containing the program flow chart will come. Analyse this graph.
Now go to View -> Open subviews -> Strings.
Then press Ctrl + F and search congrats.
Now double click on highlighted aCongrats ; Data XREF:…. Statement.
The flowchart containing statement related with aCongrats will appear. This is our target
point.
Now, add a break point on the following statement, because, it splits our program in to two
paths.
Jnz short loc_401130
After adding the breakpoint, the statement will turn red.
On the next screen, select Yes.
To any serial key as a test case.
Observe the flow of program, which is shown in the blinking arrow. We need to change it.
To change flow, go to Edit -> Patch program -> Assemble
Change jnz to jz and press OK.
Now, go to Debugger -> press step over or F8.
On the next jump statement, change the flow. Go to Edit -> Patch program -> Assemble.
Now, go to Debugger -> Step over or F8.
Press F8 multiple times and you will see Well done!
Patching Steps
Now, stop the debugger and go to Edit -> Patch program -> Apply patches to input files…
Click the checkbox create backup and press OK. Patch file will be created. Now you can
enter any serial key and it will run.