I would like to use the ObReferenceObjectByHandle routine in my assembly code in win32 format with the syntax of Intel, but when I run the executable it gives me an error. I'm using GoLink to connect the ntoskrnl.exe (DLL) to my object.
I would like to use the ObReferenceObjectByHandle routine in my assembly code in win32 format with the syntax of Intel, but when I run the executable it gives me an error. I am using GoLink to connect the ntoskrnl.exe (DLL) to my object.
Even not calling the routine the error continues to occur, I do not know what it can be:
section .text
PontoEntrada: CALL GetCurrentProcessId
MOV [HWND], EAX
PUSH EAX
PUSH 0X0000
PUSH PROCESS_QUERY_INFORMATION
CALL OpenProcess
PUSH NULL
XOR EBX, EBX
PUSH EBX
PUSH 0X0001
PUSH PsProcessType
PUSH NULL
PUSH EAX
CALL ObReferenceObjectByHandle
CALL CloseHandle
PUSH NULL
CALL ExitProcess
My operating system is Windows 7, with AMD E-300 APU processor.