Function at 0x140005340
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 8]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x130]
mov ecx, dword [rax + 4]
call fcn.14000d040
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400053e3
jmp 0x140005732
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call fcn.140002e70
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140005408
cmp qword [rsp + 0x68], 0
jne 0x140005421
cmp dword [rsp + 0x50], 0
jl 0x140005417
mov dword [rsp + 0x50], 0xc0000225
jmp 0x140005732
mov dword [rsp + 0xe8], 0x30
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0x100], 0x200
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], 0
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xe8]
mov edx, 0x1fffff
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400054b8
jmp 0x140005732
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400054f8
jmp 0x140005732
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 8]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x10]
call fcn.140005d60
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14000554e
jmp 0x140005732
mov r8d, 0x6864694e
mov edx, 0x58
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x60], rax
mov r8d, 0x6864694e
mov edx, 0x58
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x60], 0
je 0x14000558e
cmp qword [rsp + 0x58], 0
jne 0x1400055a0
mov dword [rsp + 0x50], 0xc0000001
jmp 0x140005732
mov rax, qword [0x140011b50]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x14000ab30]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0xa0]
call qword [0x14000f208]
mov rax, qword [0x140011b50]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [0x140001ca0]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xb0]
call qword [0x14000f208]
mov rax, qword [0x140011b58]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
xor r9d, r9d
mov rax, qword [rsp + 0x130]
mov r8, qword [rax + 0x28]
mov rax, qword [rsp + 0x130]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xc0]
call qword [0x14000f208]
movzx eax, al
test eax, eax
jne 0x1400056cb
mov dword [rsp + 0x50], 0xc0000001
jmp 0x140005732
mov rax, qword [0x140011b58]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0xd0]
call qword [0x14000f208]
movzx eax, al
test eax, eax
jne 0x140005718
mov dword [rsp + 0x50], 0xc0000001
jmp 0x140005732
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
movzx eax, al
test eax, eax
je 0x140005732
mov dword [rsp + 0x50], 0xc000004b
cmp dword [rsp + 0x50], 0
jge 0x140005795
cmp qword [rsp + 0x70], 0
je 0x14000575f
mov r9d, 0x4000
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
cmp qword [rsp + 0x58], 0
je 0x14000577a
lfence
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x60], 0
je 0x140005795
lfence
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x88], 0
je 0x1400057ae
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsp + 0x78], 0
je 0x1400057c1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
add rsp, 0x128
ret