Developer knowledge network · moderated exchange

UnreliableCode 커뮤니티

개발자 연구, 리버스 엔지니어링 및 코딩 커뮤니티

Knowledge index살다
4Categories
919Threads
2.8K게시물
Tutorial

Invoking Direct x64 System Calls (NtProtectVirtualMemory) via Inline Assembly Stubs [v2.4 Technical Discussion]

x64_assembler
Assembly Guru
MEMBER
대표: 99
가입 날짜: Sep 2022
게시물: 14
감사해요: 16
1개월 전 · Jul 21, 2026 10:09 PM
#1

How to bypass userland DLL hooks by issuing direct syscall opcodes:

ASM
; x64 Assembly Syscall Stub (NtProtectVirtualMemory SSN = 0x50 on Win11 23H2)
.code
SysNtProtectVirtualMemory PROC
    mov r10, rcx
    mov eax, 50h ; System Service Number
    syscall
    ret
SysNtProtectVirtualMemory ENDP
END

Userland hooks placed by security modules on ntdll.dll are completely bypassed because execution never traverses ntdll!

vtable_slayer
Senior Reverser
MEMBER
대표: 215
가입 날짜: Mar 2018
게시물: 86
감사해요: 61
1개월 전 · Jul 22, 2026 12:24 AM
#2

Direct syscalls are the cornerstone of bypassing userland API surveillance.

kernel_komrade
Driver Dev
MEMBER
대표: 145
가입 날짜: Feb 2019
게시물: 26
감사해요: 45
1개월 전 · Jul 22, 2026 8:30 AM
#3

Make sure you dynamically parse SSNs from ntdll export directory so Windows updates don't change numbers.