Skip to content

Course

Reverse Engineering Fundamentals

How working reverse engineers take a stripped binary apart — disassembly, Ghidra, decompiler skepticism, syscall tracing, unpacking, patching — and rebuild a mental model of a program they'll never see the source of.

13 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

Reading the Machine

What a binary actually contains after compilation, the x86-64 literacy you really need, and how control flow maps back to the code that was written.

  1. 01What the Compiler Actually Throws AwayInstructions, constants, and dynamic symbols survive compilation while names, types, and structure don't — and the xz backdoor proved the binary is sometimes the only truth that exists.20mOpen
  2. 02Reading x86-64 Without PanickingFifteen instructions plus the SysV calling convention cover most of real disassembly — the rest is recognizing compiler idioms like lea arithmetic, endbr64, and reciprocal division.22mOpen
  3. 03Control Flow: Finding the Shape of the Codeif/while/switch collapse into compare-and-jump; learn the five CFG shapes, what -O2 does to them, and why linear sweep and recursive descent disassemblers each go blind.22mOpen
  4. 04Two File Formats, One JobSections are for the linker and segments are for the loader — how execve and CreateProcess turn a file into a process, and why VAs, file offsets, and TLS callbacks matter.20mOpen

Static Analysis in Practice

Ghidra as a working environment: triage through strings and xrefs, reading decompiler output skeptically, and rebuilding structure.

  1. 01A First Session in GhidraImport, auto-analyze, find main through __libc_start_main, rename and retype relentlessly, and script batch work through analyzeHeadless.22mOpen
  2. 02Triage: Strings, Imports, and Cross-ReferencesExcavate instead of reading top to bottom: anchor on strings, read imports as capabilities, fingerprint crypto by constants, and let Function ID erase the library noise.24mOpen
  3. 03Reading Decompiler Output SkepticallyDecompiler output is a fluent first draft, not truth — audit signedness, types, signatures, and invented control flow against the listing, then rebuild structures.24mOpen
  4. 04When the Target Isn't Native Code.NET decompiles to near-source, PyInstaller to .pyc, and stripped Go keeps its function names — identify the runtime with file and Detect It Easy before picking a tool.18mOpen

Dynamic Analysis and the Craft

Debuggers, watchpoints, patching, and the hypothesis-driven workflow that turns instructions into intent.

  1. 01Tracing Before Debuggingstrace, ltrace, ProcMon, and API Monitor let the program narrate its own file, network, and library-call behavior before you ever set a breakpoint.18mOpen
  2. 02Debuggers, Breakpoints, and WatchpointsFour gdb commands, hardware watchpoints, conditional breakpoints, and rr time-travel settle in thirty seconds what an hour of listing-staring can't.24mOpen
  3. 03Packed and Defended: When the File Lies About ItselfHigh-entropy .text and a three-import table mean the program only exists in memory — recognize packers, catch the OEP, dump, rebuild imports, and defuse the anti-debug checks.24mOpen
  4. 04Patching: Changing Behavior Without SourceYou can't insert bytes, only overwrite — NOP checks, invert jumps, force-return-true, trampoline through code caves, and patch the integrity check first.22mOpen
  5. 05From Instructions to Intent: Building the ModelAnchor, hypothesize, predict, verify, revise — reconstruct data structures first, prove understanding by reimplementing, and stop when you've answered the question you came with.25mOpen