How To Crack With W32dasm And Hiew32: A Beginner's Guide
W32DASM and HIEW32 are two tools that can help you crack executable files (.exe) by modifying their assembly code. Assembly code is a low-level language that directly controls the hardware of a computer. By changing some instructions or bytes in the assembly code, you can alter the behavior of the executable file, such as bypassing registration or removing limitations.
In this article, we will show you how to use W32DASM and HIEW32 to crack a simple program that asks for a serial number. You will need to download and install both tools from their official websites. You will also need a target program to crack. For this example, we will use a program called CrackMe.exe, which you can download from here.
Step 1: Disassemble the target program with W32DASM
W32DASM is a disassembler that can convert an executable file into assembly code. To use it, follow these steps:
Open W32DASM and click on File -> Open. Browse to the location of CrackMe.exe and open it.
Wait for W32DASM to finish disassembling the file. You will see a window with the assembly code of the program.
Click on References -> String Data References. This will open a window with all the strings that are used in the program, such as messages or prompts.
Look for a string that says \"Enter Serial Number\". Double-click on it. This will take you to the assembly code where this string is used.
You will see something like this:
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
The line :0040103F 750A jne 0040104B is a conditional jump that checks if the serial number entered by the user is correct or not. If it is not equal (jne) to zero, it jumps to address :0040104B, where it displays a message saying \"Wrong Serial Number\". If it is equal to zero, it falls through to the next line, where it displays a message saying \"Correct Serial Number\".
To crack this program, we need to change this conditional jump to an unconditional jump (jmp), so that it always jumps to the correct message regardless of the serial number entered by the user.
Step 2: Modify the assembly code with HIEW32
HIEW32 is a hex editor that can edit binary files directly. To use it, follow these steps:
Open HIEW32 and press F8 to enter text mode. Browse to the location of CrackMe.exe and open it.
Press F4 to enter decode mode. This will show you the assembly code of the file.
Press F5 to enter edit mode. This will allow you to modify the assembly code.
Type :40103F and press Enter. This will take you to the address where we want to change 061ffe29dd