Access the Windows API via direct syscall (Hell's Gate).
Hell's Gate membaca Syscall Service Number (SSN) langsung dari stub ntdll di memori dengan mencocokkan pola 4C 8B D1 B8 (mov r10,rcx; mov eax,SSN).
Jika stub telah di-hook oleh EDR (byte awal diganti instruksi lain), SSN dibaca dari salinan ntdll.dll di disk yang belum dimodifikasi (fallback mechanism).
Trampoline statis (x64 only, Windows 10+):
HellsGate(ssn)— menyimpan SSN ke variabel globalwSystemCall(.data)HellDescent(...)— stub di.textyang mengeksekusi syscall:
mov r10, rcx
mov eax, wSystemCall
syscall
ret
ml64.exe /nologo /c hellsgate.asm
cl.exe /nologo /Ox /MT /W0 /GS- /DNDEBUG /Tpcode.cpp hellsgate.objMemerlukan x64 Developer Command Prompt.
- Sample ini x64 only (layout stub ntdll Win10+).
- Fallback disk adalah ekstensi di atas implementasi asli, implementasi Hell's Gate tidak memuat mekanisme tersebut.