Function at 0x140008c80
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x108]
mov ecx, dword [rax + 4]
call fcn.14000a290
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 0x140008d36
mov eax, dword [rsp + 0x60]
jmp 0x140008fe9
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 0x140008dc8
jmp 0x140008f76
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 0x140008e00
jmp 0x140008f76
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 8]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
mov rax, qword [rsp + 0x108]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x100]
call fcn.1400091b0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140008e58
jmp 0x140008f76
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.14000a140
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 [rsp + 0x100]
mov rax, qword [rax + 0x1038]
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 [0x14001b2b0]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x88]
movzx ecx, byte [rsp + 0x64]
mov byte [rax], cl
xor eax, eax
test eax, eax
jne 0x140008dbc
cmp qword [rsp + 0x90], 0
je 0x140008f8f
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x60], 0
jge 0x140008fb9
cmp qword [rsp + 0x70], 0
je 0x140008fb9
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 0x140008fcc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x80], 0
je 0x140008fe5
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
add rsp, 0xf0
pop rdi
ret