Overview
SysWhispers4 generates C/ASM syscall stubs that invoke Windows NT kernel functions directly, bypassing user-mode hooks placed by AV/EDR products. This guide covers basic usage patterns and common workflows.Quick Start
Generate syscall stubs
Start with the Generated files:
common preset for general process/thread/memory operations:SW4Syscalls_Types.h— NT type definitions (structures, enums, typedefs)SW4Syscalls.h— Function prototypes and initialization declarationsSW4Syscalls.c— Runtime SSN resolution and helper functionsSW4Syscalls.asm— MASM syscall stubs (for MSVC)
Terminal Output Example
Common Workflows
Memory Operations
Thread Operations
Process Querying
Choosing Functions
Using Presets
Presets group commonly-used functions for specific tasks:Selecting Specific Functions
Choose only the functions you need:Combining Presets and Functions
Merge a preset with additional functions:List Available Functions
Customizing Output
Change Symbol Prefix
MySyscalls_Initialize(), MySyscalls_NtAllocateVirtualMemory(), etc.
Change Output Directory
Change Output Filename
MyCalls_Types.h, MyCalls.h, MyCalls.c, MyCalls.asm
Understanding NT Status Codes
All NT functions returnNTSTATUS values. Use the NT_SUCCESS() macro:
STATUS_SUCCESS(0x00000000) — Operation succeededSTATUS_ACCESS_DENIED(0xC0000022) — Insufficient privilegesSTATUS_INVALID_PARAMETER(0xC000000D) — Bad parameterSTATUS_INSUFFICIENT_RESOURCES(0xC000009A) — Out of memory
Default Configuration
When you runpython syswhispers.py --preset common, you get:
| Setting | Default | Description |
|---|---|---|
| Architecture | x64 | 64-bit Windows |
| Compiler | msvc | MASM assembly syntax |
| Resolution | freshycalls | Sort ntdll exports by VA |
| Method | embedded | Direct syscall in your PE |
| Prefix | SW4 | Symbol prefix |
Next Steps
Advanced Evasion
Learn about SSN resolution methods, invocation techniques, and evasion features
MSVC Integration
Complete Visual Studio project setup guide
MinGW Integration
Integration with MinGW and Clang compilers
Presets Reference
Detailed documentation of all function presets
