Function at 0x241b0
Capabilities:
Attach user process memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov r14, r9
mov r12, rdx
mov r13, rcx
xor esi, esi
mov qword [r11 - 0x80], rsi
mov qword [r11 - 0x78], rsi
mov qword [rsp + 0x50], rsi
mov qword [r11 - 0x50], rsi
xor eax, eax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x48], esi
mov rdi, rsi
mov rax, qword [0x0002ec78]
test rax, rax
jne 0x2421d
call fcn.0001aed0
mov rax, qword [0x0002ec78]
test rax, rax
jne 0x2422c
mov ebx, 0xc0000001
jmp 0x24486
lea rdx, [rsp + 0x58]
mov rcx, r13
call rax
mov ebx, eax
test eax, eax
js 0x24486
mov rax, qword [0x0002ecb0]
test rax, rax
jne 0x24258
call fcn.0001aed0
mov rax, qword [0x0002ecb0]
test rax, rax
jne 0x24267
mov ebx, 0xc0000001
jmp 0x24486
lea rdx, [rsp + 0x60]
mov rcx, r12
call rax
mov ebx, eax
test eax, eax
js 0x24486
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rsi
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
test eax, eax
js 0x24486
lea rdx, [0x00011c40]
mov rcx, qword [rsp + 0x50]
call fcn.000197c0
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x24301
lea rdx, [0x00011c60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.000208c0
mov r12, qword [rsp + 0x40]
test r12, r12
je 0x24486
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x68], 0x2000
mov rbx, qword [rsp + 0x50]
mov rax, qword [0x0002ebd0]
test rax, rax
jne 0x2433a
call fcn.0001aed0
mov rdi, qword [rsp + 0x40]
mov rax, qword [0x0002ebd0]
test rax, rax
jne 0x24346
mov ebx, 0xc0000001
jmp 0x2436f
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call rax
mov ebx, eax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x70], rdi
test ebx, ebx
js 0x24486
test rdi, rdi
je 0x24486
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
xor edx, edx
mov r8d, 0x2000
mov rcx, rdi
call fcn.0002b7b0
lea rdx, [0x00011c80]
mov rcx, r12
call fcn.00019610
mov qword [rdi], rax
lea rdx, [0x00011c90]
mov rcx, r12
call fcn.00019610
mov qword [rdi + 8], rax
test r14, r14
je 0x243e7
lea rcx, [rdi + 0x218]
mov r8, r14
mov edx, 0x104
call fcn.00023db0
lea rdx, [0x00023f70]
lea rcx, [rdi + 0x420]
mov r8d, 0x3e8
call fcn.0002b420
cmp qword [rdi], 0
je 0x2440d
cmp qword [rdi + 8], 0
jne 0x24419
mov ebx, 0xc0000001
mov dword [rsp + 0x80], ebx
jmp 0x24424
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x24486
lea r9, [rdi + 0x420]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.00026cf0
mov ebx, eax
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x24486
cmp byte [0x0002ee00], 0
je 0x24486
mov rdx, rax
mov r8d, 0x80000001
lea rcx, [0x0002ee00]
call fcn.0001f7b0
test rdi, rdi
je 0x244cc
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rsi
mov rdi, qword [rsp + 0x50]
mov rax, qword [0x0002ec08]
test rax, rax
jne 0x244b2
call fcn.0001aed0
mov rax, qword [0x0002ec08]
test rax, rax
je 0x244cc
mov r9d, 0x8000
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x244dc
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x244ec
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x244fc
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret