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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x4b0
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
and qword [rsp + 0x48], 0
or qword [rsp + 0x50], 0xffffffffffffffff
mov rsi, rcx
mov rbx, r8
mov r13b, dl
mov edi, 0x400
lea rcx, [rsp + 0xa0]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x58], 0xc0000001
mov qword [rsp + 0x60], 0x1000
mov byte [rsp + 0x40], 0
call fcn.00091d10
lea r11, [rsp + 0x508]
lea rcx, [rsp + 0xa0]
mov r9, rbx
mov r8, rdi
mov rdx, rdi
mov qword [rsp + 0x20], r11
call sub.ntoskrnl.exe__vsnprintf_s
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.00035e20
mov r15d, 0xc0000000
mov ecx, eax
mov ebx, eax
and ecx, r15d
cmp ecx, r15d
je 0x18b07
cmp byte [rsp + 0x40], 0
je 0x18b07
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
and eax, r15d
cmp eax, r15d
jne 0x18983
lea rcx, [0x00093400]
mov r8d, ebx
mov rdx, rsi
call fcn.0004505c
jmp 0x18b16
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rbp, rax
test rax, rax
jne 0x189a1
lea rcx, [0x00093440]
jmp 0x18b0e
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
mov rcx, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov r9d, 0x1fffff
mov rdx, qword [rcx]
mov rcx, qword [rsp + 0x48]
mov r12, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
mov edx, 0x200
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r11d, ebx
and r11d, r15d
cmp r11d, r15d
je 0x18a0a
cmp qword [rsp + 0x50], 0
jne 0x18a10
or qword [rsp + 0x50], 0xffffffffffffffff
mov qword [rsp + 0x68], 0xffffffffff676980
xor edi, edi
lea rdx, [0x00093460]
mov r8, r12
mov rcx, rbp
call fcn.0002dd18
test rax, rax
jne 0x18a5e
lea r8, [rsp + 0x68]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
inc edi
cmp edi, 0x64
jb 0x18a1b
lea rcx, [0x00093480]
call fcn.0004505c
mov ebx, 0xc0000225
jmp 0x18afa
lea rdx, [0x000934a0]
mov r8b, 1
mov rcx, rax
call fcn.0002d5d4
test rax, rax
jne 0x18a7e
lea rcx, [0x000934b0]
jmp 0x18a4f
mov r9b, r13b
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
mov rcx, rax
test r12, r12
je 0x18a9d
call fcn.000185f8
jmp 0x18aa2
call fcn.00018720
mov rdi, rax
test rax, rax
jne 0x18ab8
lea rcx, [0x000934e0]
call fcn.0004505c
jmp 0x18afa
lea rax, [rsp + 0x58]
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, rsi
mov byte [rsp + 0x20], 1
call fcn.0001842c
mov ebx, eax
and eax, r15d
cmp eax, r15d
jne 0x18af6
lea rcx, [0x00093500]
mov rdx, rdi
call fcn.0004505c
jmp 0x18afa
mov ebx, dword [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x18b16
lea rcx, [0x000933d0]
mov rdx, rsi
call fcn.0004505c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18b32
cmp rcx, 0xffffffffffffffff
je 0x18b32
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18b42
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.000916b0
add rsp, 0x4b0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret