Function at 0x140008880
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rax + 4]
call fcn.14000a290
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008947
mov eax, dword [rsp + 0x40]
jmp 0x140008c75
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe0]
call fcn.140006950
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140008974
cmp qword [rsp + 0x48], 0
jne 0x140008988
cmp dword [rsp + 0x40], 0
jl 0x140008983
mov dword [rsp + 0x40], 0xc0000225
jmp 0x140008bde
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x200
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x98]
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008a1a
jmp 0x140008bde
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008a52
jmp 0x140008bde
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0xe0]
call fcn.1400091b0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140008aa7
jmp 0x140008bde
xor edx, edx
mov ecx, 0x58
call fcn.140001330
mov qword [rsp + 0x58], rax
xor edx, edx
mov ecx, 0x58
call fcn.140001330
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x58], 0
je 0x140008ad9
cmp qword [rsp + 0x50], 0
jne 0x140008ae6
mov dword [rsp + 0x40], 0xc000009a
jmp 0x140008bde
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x1400097f0]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_KeInitializeApc
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [0x140005b80]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call sub.ntoskrnl.exe_KeInitializeApc
xor r9d, r9d
mov rax, qword [rsp + 0xe8]
mov r8, qword [rax + 0x38]
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x58]
call sub.ntoskrnl.exe_KeInsertQueueApc
movzx eax, al
test eax, eax
jne 0x140008b97
mov dword [rsp + 0x40], 0xc0000001
jmp 0x140008bde
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_KeInsertQueueApc
movzx eax, al
test eax, eax
jne 0x140008bba
mov dword [rsp + 0x40], 0xc0000001
jmp 0x140008bde
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
movzx eax, al
test eax, eax
je 0x140008bd4
mov dword [rsp + 0x40], 0xc000004b
xor eax, eax
test eax, eax
jne 0x140008965
cmp dword [rsp + 0x40], 0
jge 0x140008c38
cmp qword [rsp + 0x60], 0
je 0x140008c08
mov r9d, 0x4000
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
cmp qword [rsp + 0x50], 0
je 0x140008c20
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x58], 0
je 0x140008c38
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x48], 0
je 0x140008c4b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsp + 0x78], 0
je 0x140008c5e
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsp + 0x68], 0
je 0x140008c71
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x40]
add rsp, 0xd0
pop rdi
ret