Function at 0x140005744
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rbp - 0x31], rbx
mov r12b, r8b
mov qword [rbp - 0x29], rbx
mov rdi, rdx
mov qword [rbp + 0x6f], rbx
mov r13, rcx
mov qword [rbp + 0x7f], rbx
mov esi, ebx
mov r14d, ebx
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp - 0x21], xmm0
test r8b, r8b
je 0x14000579d
mov eax, dword [rdx + 0x20]
jmp 0x1400057a0
mov eax, dword [rdx + 8]
mov r15d, dword [rdx + 4]
lea rdx, [rbp - 0x29]
mov ecx, r15d
mov qword [rbp - 0x39], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140005aa3
cmp qword [rdi + 0x10], rbx
je 0x140005a9e
cmp qword [rbp - 0x39], rbx
je 0x140005a9e
lea r8, [rbp + 0x6f]
mov edx, r15d
mov rcx, r13
call fcn.140004464
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140005a26
cmp qword [rbp + 0x6f], rax
je 0x140005a21
mov qword [rbp - 0x21], r15
lea r9, [rbp - 0x21]
xorps xmm0, xmm0
mov dword [rbp - 0x11], 0x30
xor r15d, r15d
mov qword [rbp - 9], rax
lea r8, [rbp - 0x11]
mov qword [rbp - 0x19], r15
mov edx, 0x1fffff
mov dword [rbp + 7], 0x200
lea rcx, [rbp - 0x31]
mov qword [rbp - 1], rax
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov ebx, eax
test eax, eax
js 0x140005a29
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x39]
mov dword [rsp + 0x28], 0x20
lea rdx, [rbp + 0x7f]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140005a29
test r12b, r12b
je 0x140005879
mov eax, dword [rdi + 0x20]
jmp 0x14000587c
mov eax, dword [rdi + 8]
mov ecx, eax
mov qword [rbp - 0x39], rcx
test r12b, r12b
je 0x14000588d
mov rdx, qword [rdi + 0x18]
jmp 0x140005891
mov rdx, qword [rdi + 0x10]
mov r9, qword [rbp + 0x7f]
mov r8, qword [rbp - 0x29]
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
mov rcx, r13
call fcn.140005dcc
mov ebx, eax
test eax, eax
js 0x140005a29
mov rax, qword [0x140012050]
mov r13d, 0x4a61
test rax, rax
je 0x1400058f3
cmp dword [0x140012048], r13d
jb 0x1400058f3
mov r14d, 0x58
mov r8d, 0x6864694e
mov edx, r14d
lea ecx, [r14 + 0x28]
call qword [0x1400102d0]
jmp 0x14000590a
mov r14d, 0x58
mov r8d, 0x6864694e
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov rax, qword [0x140012050]
test rax, rax
je 0x140005938
cmp dword [0x140012048], r13d
jb 0x140005938
mov r8d, 0x6864694e
mov rdx, r14
mov ecx, 0x80
call qword [0x1400102d0]
jmp 0x140005949
mov r8d, 0x6864694e
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rsi, rsi
je 0x140005a1a
test rax, rax
je 0x140005a1a
mov rdx, qword [rbp + 0x6f]
lea r9, [0x140006180]
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov byte [rsp + 0x30], r15b
mov rcx, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call sub.ntoskrnl.exe_KeInitializeApc
mov rdx, qword [rbp + 0x6f]
lea r9, [0x140003be0]
xor r8d, r8d
mov rcx, rsi
test r12b, r12b
je 0x1400059ad
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x10]
jmp 0x1400059ba
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x7f]
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call sub.ntoskrnl.exe_KeInitializeApc
mov r8, qword [rdi + 0x38]
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call sub.ntoskrnl.exe_KeInsertQueueApc
test al, al
jne 0x1400059ec
mov ebx, 0xc0000001
jmp 0x140005a29
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call sub.ntoskrnl.exe_KeInsertQueueApc
test al, al
je 0x1400059e5
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
test al, al
mov ecx, 0xc000004b
cmovne ebx, ecx
test ebx, ebx
js 0x140005a29
jmp 0x140005a6d
mov ebx, 0xc000009a
jmp 0x140005a29
mov ebx, 0xc0000225
xor r15d, r15d
cmp qword [rbp + 0x7f], r15
je 0x140005a47
mov rcx, qword [rbp - 0x31]
lea r8, [rbp - 0x39]
mov r9d, 0x4000
lea rdx, [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
test r14, r14
je 0x140005a5a
mov edx, 0x6864694e
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rsi, rsi
je 0x140005a6d
mov edx, 0x6864694e
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140005a7c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140005a8b
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140005a9a
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x140005aa3
mov eax, 0xc000000d
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret