February 2012
Intermediate to advanced
800 pages
23h 55m
English
OllyDbg makes it easy to modify just about any live data, such as registers and flags. It also enables you to assemble and patch code directly into a program. You can modify instructions or memory by highlighting a region, right-clicking that region, and selecting Binary ▶ Edit. This will pop up a window for you to add any opcodes or data. (OllyDbg also has special functions to fill with 00 entries, or NOP instructions.)
Figure 9-13 shows a section of code from a
password-protected piece of malware that requires that a special key be input in order to configure
the malware. We see an important check and conditional jump (JNZ)
at ❶ decide if the key is accepted. If the jump is
taken, Bad key will be printed; otherwise, it will print Key ...