Function at 0x140001840
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
movsxd rax, dword [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400018b1
cmp dword [rsp + 0x24], 0xc000000d
jne 0x140001891
lea rcx, [0x140002c80]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x24], 0xc000000b
jne 0x1400018a7
lea rcx, [0x140002ca0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140001add
lea rdx, [rsp + 0x38]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14000190d
cmp dword [rsp + 0x24], 0xc000000d
jne 0x1400018e2
lea rcx, [0x140002d20]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x24], 0xc000000b
jne 0x1400018f8
lea rcx, [0x140002d50]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xffffffff
jmp 0x140001add
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002d70]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140001965
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xffffffff
jmp 0x140001add
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002da0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400019be
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xffffffff
jmp 0x140001add
mov rdx, qword [rsp + 0x58]
lea rcx, [0x140002db0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [0x140005310]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002dd0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov eax, dword [0x140005310]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x140002df0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002e10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x28], 1
jmp 0x140001a6c
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 8
jge 0x140001a9a
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov edx, eax
lea rcx, [0x140002e40]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001a62
lea rcx, [0x140002e50]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001aaf
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x78
ret