Function at 0x140001d20
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 0x140001d91
cmp dword [rsp + 0x24], 0xc000000d
jne 0x140001d71
lea rcx, [0x1400034e0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x24], 0xc000000b
jne 0x140001d87
lea rcx, [0x140003500]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140001fbd
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 0x140001ded
cmp dword [rsp + 0x24], 0xc000000d
jne 0x140001dc2
lea rcx, [0x1400038b0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x24], 0xc000000b
jne 0x140001dd8
lea rcx, [0x1400038e0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xffffffff
jmp 0x140001fbd
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140003900]
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 0x140001e45
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 0x140001fbd
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140003930]
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 0x140001e9e
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 0x140001fbd
mov rdx, qword [rsp + 0x58]
lea rcx, [0x140003940]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [0x140006310]
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, [0x140003960]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov eax, dword [0x140006310]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x140003980]
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, [0x1400039a0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x28], 1
jmp 0x140001f4c
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 8
jge 0x140001f7a
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, [0x1400039d0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001f42
lea rcx, [0x1400039e0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001f8f
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