Step Into Labs

Step Into x64 Assembly · Lesson 8 · Windows x64

Calling Functions

RIP-relative data, shadow space, a fifth argument, and calling C and Win32 functions.

Part of Step Into x64 Assembly. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Inside the callee, after call has pushed the return address, the fifth argument is at [rsp + 40]: 8 for the return address plus 32 of shadow space.

In this lesson

Missions

  1. Hello from assembly
  2. Call printf
  3. Beyond four arguments
  4. Call the Win32 API