Function at 0x140008360
Capabilities:
Attach user process memory
Find process by pid
Free user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rax, qword [0x14001d2d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x178]
mov ecx, dword [rax + 4]
call fcn.14000a290
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x178]
add rax, 8
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
inc qword [rsp + 0x88]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x88]
cmp byte [rax + rcx], 0
jne 0x14000840e
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140008463
mov eax, dword [rsp + 0x60]
jmp 0x14000885f
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r8, [0x140019230]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x170]
call fcn.140007550
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1400084c5
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0x80
jmp 0x14000885f
lea r8, [0x140019270]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x170]
call fcn.140007360
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x140008517
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0x80
jmp 0x14000885f
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd8], 0x200
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], 0
lea r9, [rsp + 0x110]
lea r8, [rsp + 0xc0]
mov edx, 0x1fffff
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1400085c6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
jmp 0x14000885f
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000861b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
jmp 0x14000885f
mov rax, qword [rsp + 0x178]
add rax, 8
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x90], 0xffffffffffffffff
inc qword [rsp + 0x90]
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
cmp byte [rax + rcx], 0
jne 0x14000863b
mov rax, qword [rsp + 0x90]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x178]
add rax, 8
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0x170]
call fcn.1400091b0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1400086ec
mov r9d, 0x4000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
jmp 0x14000885f
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd8], 0x200
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
call fcn.14000a140
add rax, 0x232
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax]
mov byte [rsp + 0x64], al
mov rax, qword [rsp + 0x98]
mov byte [rax], 0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x1038]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], 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 rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, [rsp + 0xc0]
mov edx, 0x1fffff
lea rcx, [rsp + 0xa0]
mov rax, qword [rsp + 0x108]
call qword [0x14001b2b0]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rsp + 0x64]
mov byte [rax], cl
cmp qword [rsp + 0xa0], 0
je 0x140008820
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x60], 0
jge 0x140008845
mov r9d, 0x4000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140018ca0
add rsp, 0x160
pop rdi
ret