Function at 0x140001310
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 0x140001381
cmp dword [rsp + 0x24], 0xc000000d
jne 0x140001361
lea rcx, [0x140002040]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x24], 0xc000000b
jne 0x140001377
lea rcx, [0x140002060]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x1400015a1
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 0x1400013dd
cmp dword [rsp + 0x24], 0xc000000d
jne 0x1400013b2
lea rcx, [0x1400020e0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x24], 0xc000000b
jne 0x1400013c8
lea rcx, [0x140002110]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xffffffff
jmp 0x1400015a1
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002130]
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 0x140001435
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 0x1400015a1
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002160]
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 0x14000148e
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 0x1400015a1
mov rdx, qword [rsp + 0x58]
lea rcx, [0x140002170]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x30]
add rax, 0x4b8
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x140002190]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
add rax, 0x4b8
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1400021b0]
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, [0x1400021d0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x28], 1
jmp 0x140001530
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 8
jge 0x14000155e
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, [0x140002200]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001526
lea rcx, [0x140002210]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001573
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