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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x808]
lea rdx, [rsp + 0x88]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x14000cc06
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x14000c518
mov dword [rsp + 0x58], 1
jmp 0x14000c520
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x54], al
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.1400033e0
movzx eax, al
test eax, eax
je 0x14000c58f
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x808]
mov dword [rsp + 0x20], eax
lea r9, [0x140014ed0]
lea r8, [0x140014ee0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x88], 0
je 0x14000c585
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
mov eax, 0xc000010a
jmp 0x14000cc48
mov rax, qword [rsp + 0x1a0]
cmp dword [rax], 2
jne 0x14000c6a4
mov rax, qword [rsp + 0x1a0]
cmp qword [rax + 0x818], 0
je 0x14000c6a4
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x820]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax + 0x818]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x820]
mov r8d, 0x4b555341
mov edx, eax
mov ecx, 0x100
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x820]
mov rcx, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rcx + 0x818]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
jmp 0x14000c6a4
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rsp + 0x1a0]
add rax, 4
mov rdx, rax
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140014f50]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x1a0]
cmp dword [rax], 2
jne 0x14000c7f2
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x1a0]
add rax, 0x404
mov rcx, qword [rsp + 0x1a0]
mov ecx, dword [rcx + 0x820]
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x804]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x810]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1a0]
movzx eax, byte [rax + 0x824]
mov byte [rsp + 0x20], al
mov r9d, ecx
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x88]
call fcn.1400111b0
mov dword [rsp + 0x50], eax
jmp 0x14000c7c1
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rsp + 0x88], 0
je 0x14000c7e9
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
mov eax, dword [rsp + 0x50]
jmp 0x14000cc48
movzx r8d, byte [rsp + 0x54]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call fcn.14000df30
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14000c83d
lea r9, [0x140014ed0]
lea r8, [0x140014fc0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x50], 0xc0000225
cmp dword [rsp + 0x50], 0
jl 0x14000c890
xor r9d, r9d
mov r8, qword [rsp + 0x88]
lea rdx, [0x140014ff0]
mov rcx, qword [rsp + 0x78]
call fcn.14000d7d0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14000c890
lea r9, [0x140014ed0]
lea r8, [0x140015000]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x50], 0xc0000225
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
movzx eax, al
test eax, eax
je 0x14000c8e9
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x808]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0xac], 0
lea rcx, [rsp + 0xa0]
call fcn.14000d4d0
nop
cmp dword [rsp + 0x50], 0
jl 0x14000cbbc
mov qword [rsp + 0xb0], 0
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x14000c925
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
call fcn.14000c210
mov qword [rsp + 0x80], rax
jmp 0x14000c93f
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
call fcn.14000bef0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x1a0]
cmp dword [rax], 0
jne 0x14000ca9c
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1a0]
movzx r9d, byte [rax + 0x80c]
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.140002810
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x98], 0
jge 0x14000c9d4
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, [0x140014ed0]
lea r8, [0x140015040]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
jmp 0x14000ca9a
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x5e0], 0
je 0x14000ca6c
mov rax, qword [rsp + 0x1a0]
cmp dword [rax + 0x804], 0
je 0x14000ca6c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x1a0]
lea rdi, [rax + 0x210]
lea rsi, [rcx + 0x404]
mov ecx, 0x3d0
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rax, 0x210
mov rcx, qword [rsp + 0x1a0]
mov ecx, dword [rcx + 0x804]
mov rdx, qword [rsp + 0x90]
add rcx, qword [rdx + 0x5e0]
lea rdx, [rsp + 0x98]
mov qword [rsp + 0x20], rdx
mov r9b, 1
mov r8d, 4
mov rdx, rax
call fcn.140002810
nop
jmp 0x14000ca9a
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x5e0], 0
jne 0x14000ca9a
lea r9, [0x140014ed0]
lea r8, [0x140015080]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
jmp 0x14000cb15
mov rax, qword [rsp + 0x1a0]
cmp dword [rax], 1
jne 0x14000cae4
mov rax, qword [rsp + 0x1a0]
add rax, 0x404
mov r9, rax
mov rax, qword [rsp + 0x1a0]
mov r8d, dword [rax + 0x804]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.14000bc60
mov dword [rsp + 0x50], eax
jmp 0x14000cb15
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea r9, [0x140014ed0]
lea r8, [0x1400150b0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x50], 0xc000000d
cmp dword [rsp + 0x50], 0
jl 0x14000cb98
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x5e0]
mov qword [rax + 0x828], rcx
mov rax, qword [rsp + 0x1a0]
movzx eax, byte [rax + 0x80d]
test eax, eax
je 0x14000cb70
movzx r8d, byte [rsp + 0x54]
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x5e0]
mov rcx, qword [rsp + 0x88]
call fcn.14000e910
nop
mov rax, qword [rsp + 0x1a0]
movzx eax, byte [rax + 0x80e]
test eax, eax
je 0x14000cb98
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x5e0]
call fcn.1400026a0
nop
mov r9d, 0x8000
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
nop
cmp dword [rsp + 0xa0], 0
je 0x14000cbf5
mov dword [rsp + 0xa4], 1
mov dword [rsp + 0xa8], 1
mov dword [rsp + 0xac], 1
lea rcx, [rsp + 0xa0]
call fcn.14000d4d0
nop
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
nop
jmp 0x14000cc2a
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, [0x140014ed0]
lea r8, [0x1400150f0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
cmp qword [rsp + 0x88], 0
je 0x14000cc44
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140001670
add rsp, 0x188
pop rdi
pop rsi
ret