15 lines
166 B
NASM
15 lines
166 B
NASM
.code
|
|
|
|
GetTEB proc
|
|
mov rax, qword ptr gs:[30h]
|
|
ret
|
|
GetTEB endp
|
|
|
|
CustomError proc
|
|
xor eax, eax
|
|
call GetTEB
|
|
mov eax, dword ptr [rax+68h]
|
|
ret
|
|
CustomError endp
|
|
|
|
end |