0Pricing
Reverse Engineering & Binary Analysis Basics · Lesson

The Stack & Calling Conventions

Go deeper into how functions pass arguments, return values, and manage the stack frame, the knowledge that makes disassembled code readable.

Beyond a Single Call

You can read basic x86/x64 instructions and follow control flow. To truly understand function calls you must know the stack and calling conventions.

These rules govern how arguments arrive and how cleanup happens.

What the Stack Is

The stack is a region of memory that grows downward (toward lower addresses). It stores return addresses, saved registers, and local variables.

  • push decrements RSP and writes
  • pop reads and increments RSP
push rax   ; rsp -= 8, [rsp] = rax
pop  rbx   ; rbx = [rsp], rsp += 8

All lessons in this course

  1. x86/x64 Assembly Basics
  2. Registers and Memory Operations
  3. Control Flow and Function Calls
  4. The Stack & Calling Conventions
← Back to Reverse Engineering & Binary Analysis Basics