Reverse Engineering 2
| Field | Value |
|---|---|
| Module ID | 427 |
| Difficulty | Hard |
| Tier | Tier I |
| Category | Defensive |
| Estimated Time | 2 hours |
| Cubes Earned | 10 |
| Experience Points | 1180 |
| Creators | letsdefendio |
| Last Updated | 2026-06-24T18:42:37.000000Z |
| URL | https://academy.hackthebox.com/app/module/427 |
Module Includes
- 7 Sections
- 1 Interactive Exercises
- 0 Assessments
- 10 Cubes
Module Description
The reverse engineering module offers a comprehensive exploration of various topics, including registers, X86 Assembly language, CPU instructions, GNU debugger, and debugging with GDB, providing students with the necessary knowledge and skills to dissect and understand software from a reverse engineering perspective.
Module Summary
The Reverse Engineering 2 module is designed for computer science or engineering students interested in gaining knowledge and skills in reverse engineering, Cybersecurity professionals looking to enhance their knowledge of reverse engineering for vulnerability analysis and software security, Software developers or programmers seeking to expand their understanding of low-level code and debugging techniques, and Hobbyists or enthusiasts with a curiosity for exploring the intricacies of software through reverse engineering techniques. Throughout this module, students will develop a solid understanding of registers and their role in computer architecture, reverse engineering skills to analyze and comprehend the inner workings of software from a reverse engineering perspective, proficiency in X86 Assembly language, enabling analysis and manipulation of low-level code, and acquire knowledge of CPU instructions and their execution mechanisms, allowing for detailed examination of software behavior.
Recommended prior knowledge:
Basic understanding of computer architecture and operating systems
Familiarity with at least one programming language
Comfort with working in a command-line environment
Sections
7 sections - 1 Interactive
| # | Group | Type | Title |
|---|---|---|---|
| 1 | None | theory | Registers - 1 |
| 2 | theory | Registers - 2 | |
| 3 | theory | X86 Assembly Language and CPU Instructions | |
| 4 | theory | CPU Instructions - 2 | |
| 5 | theory | GNU Debugger (GDB) | |
| 6 | interactive | Debugging with GDB | |
| 7 | theory | Reverse Engineering 2 Quiz |
Conclusion
In this module, we covered the foundational components of x86 assembly-level reverse engineering, including the roles of general-purpose registers (EAX, EBX, ECX, EDX, ESI, EDI, ESP, EBP, EIP), Intel syntax for reading assembly instructions, CPU instruction categories, and hands-on debugging with GDB augmented by the PEDA plugin, including setting breakpoints, stepping through code with ni and si, inspecting register and memory states, and continuing execution.
Module key takeaways:
- EAX is the primary accumulator for arithmetic and return values; ECX is used as a loop counter; ESP and EBP form the stack frame boundary for each function call
- Intel syntax places the destination operand first (mov eax, ebx copies ebx into eax), which is the convention used by most reverse engineering tools including IDA and Ghidra
- The EIP (instruction pointer) register controls execution flow; controlling EIP is the goal of buffer overflow exploits
- GDB with the PEDA plugin displays register values, stack contents, and the next few instructions simultaneously after each step, significantly improving analysis speed
- Breakpoints (break function or break *address) pause execution at a specific instruction, allowing inspection of the program state at that exact point
- The ni (next instruction) command steps over function calls, while si (step into) follows calls into their implementation, enabling both high-level and low-level tracing
- Understanding calling conventions (how arguments are passed on the stack or in registers and where return values are stored) is essential for reconstructing function behavior from assembly