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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14000d2b8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], rdx
xorps xmm0, xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x50], xmm0
movups xmmword [r11 - 0x40], xmm0
and qword [rsp + 0x38], 0
movups xmmword [rsp + 0x78], xmm0
xor r13b, r13b
mov byte [rsp + 0x30], r13b
xor r15d, r15d
mov dword [rsp + 0x44], r15d
xor r14d, r14d
mov qword [rsp + 0x50], r14
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400052f5
xor eax, eax
jmp 0x1400054dd
mov rcx, qword [rsp + 0x38]
call fcn.14000177c
test al, al
je 0x140005310
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400052ee
xor ebx, ebx
mov qword [rsp + 0x48], rbx
test rsi, rsi
je 0x140005332
mov edx, 0x41000
lea ecx, [rbx + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rbx, rbx
je 0x140005303
mov dword [rsp + 0x40], 0x18
lea rdx, [0x1400073b0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test rax, rax
je 0x14000545c
mov rcx, qword [rsp + 0x38]
mov rdx, qword [0x140008370]
call rdx
mov rdi, rax
test rax, rax
je 0x14000545c
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x38]
cmp rax, rcx
je 0x1400053a5
lea rdx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r13b, 1
mov byte [rsp + 0x30], r13b
mov rax, qword [rdi + 0x18]
mov rdi, qword [rax + 0x20]
mov qword [rsp + 0x58], rdi
mov r12, rdi
mov qword [rsp + 0x68], rdi
lea rsi, [rdi - 0x10]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140005421
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140005421
movzx ecx, word [rsi + 0x58]
add ecx, 2
movzx eax, word [rsi + 0x5a]
cmp ecx, eax
jne 0x140005421
test r14, r14
jne 0x1400053f6
mov r14, qword [rsi + 0x30]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x41000
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140005580
mov rbx, rax
mov qword [rsp + 0x48], rax
inc r15d
mov dword [rsp + 0x44], r15d
jmp 0x14000544b
mov rdi, qword [rdi]
mov qword [rsp + 0x58], rdi
cmp rdi, r12
jne 0x1400053ba
mov qword [rsp + 0x20], r14
mov r9d, 0x41000
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call fcn.1400050e4
mov esi, eax
test r13b, r13b
je 0x14000548e
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea edi, [rsi + r15]
test edi, edi
jne 0x1400054b3
test rbx, rbx
je 0x1400054db
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebx, ebx
test rbx, rbx
je 0x1400054db
mov dword [rbx], 0x18
mov dword [rbx + 4], edi
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], esi
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 0x10], ecx
and dword [rbx + 0x14], 0
mov rax, qword [rsp + 0x60]
mov qword [rax], rbx
mov eax, edi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400067f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret