Function at 0x1400057d0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x100]
mov ecx, dword [rax + 4]
call fcn.14000d040
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140005859
jmp 0x140005a89
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x200
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], 0
lea r9, [rsp + 0xe0]
lea r8, [rsp + 0xa0]
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1400058f0
jmp 0x140005a89
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000592d
jmp 0x140005a89
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 8]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.140005d60
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000597d
jmp 0x140005a89
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x200
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
call fcn.14000d030
add rax, 0x232
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov byte [rsp + 0x64], al
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
mov rax, qword [0x140011b70]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov edx, 0x1fffff
lea rcx, [rsp + 0x90]
mov rax, qword [rsp + 0xd8]
call qword [0x14000f208]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x88]
movzx ecx, byte [rsp + 0x64]
mov byte [rax], cl
cmp qword [rsp + 0x90], 0
je 0x140005aa2
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x60], 0
jge 0x140005acc
cmp qword [rsp + 0x70], 0
je 0x140005acc
mov r9d, 0x4000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
cmp qword [rsp + 0x68], 0
je 0x140005adf
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x80], 0
je 0x140005af8
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
add rsp, 0xf8
ret