How joasasantos/syswhispers4 works
SysWhispers4 is a Python generator for Windows NT syscall stubs. A user selects syscall functions and generation options through the CLI; the tool builds a configuration, uses repository data and generation helpers, and emits C headers/source plus assembly where applicable. The generated code supports multiple SSN-resolution and syscall-invocation strategies, alongside optional evasion features. The graph also shows the prototype, preset, and syscall-number data used by the tool. Source excerpts are partial, so runtime links beyond documented capabilities are omitted where their wiring is not shown.
Main entry points: utils.py Data Utilities · generator.py Stub Generator · syswhispers.py CLI · models.py Generator Config
Components 16
CLI and Configuration
- CLI
syswhispers.py - Generator Config
core/models.py
Code Generation
- Stub Generator
core/generator.py - Obfuscation Helpers
core/obfuscator.py - Generated C and ASM
core/generator.py
Function and SSN Data
- Data Utilities
core/utils.py - Syscall Prototypes
data/prototypes.json - Function Presets
data/presets.json - x64 SSN Table
data/syscalls_nt_x64.json - x86 SSN Table
data/syscalls_nt_x86.json
Generated Runtime
- SSN Resolution
core/generator.py - Syscall Invocation
core/generator.py - Evasion Features
core/generator.py
Other components
- User
- Windows ntdll
- Windows NT Kernel
Connections 18
- User → CLI: runs
README.md - CLI → Generator Config: builds
syswhispers.py - CLI → Data Utilities: loads selections
syswhispers.py - CLI → Stub Generator: configures
syswhispers.py - Stub Generator → Generator Config: uses
core/generator.py - Stub Generator → Obfuscation Helpers: uses
core/generator.py - Stub Generator → Data Utilities: uses
core/generator.py - Data Utilities → Syscall Prototypes: loads
core/utils.py - Data Utilities → Function Presets: loads
core/utils.py - Data Utilities → x64 SSN Table: loads
core/utils.py - Data Utilities → x86 SSN Table: loads
core/utils.py - Stub Generator → Generated C and ASM: generates
README.md - Generated C and ASM → SSN Resolution: includes
README.md - Generated C and ASM → Syscall Invocation: includes
README.md - Generated C and ASM → Evasion Features: optionally includes
syswhispers.py - SSN Resolution → Windows ntdll: reads SSNs
README.md - Evasion Features → Windows ntdll: may remap
README.md - Syscall Invocation → Windows NT Kernel: invokes NT calls
README.md