Function at 0x1400031b8
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor sil, sil
mov byte [rsp + 0x20], sil
cmp qword [rcx], 0
jbe 0x140003431
cmp qword [rcx + 0x28], 0
jbe 0x140003431
cmp byte [0x140009050], sil
je 0x140003431
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x58], xmm1
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x50], rcx
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x140003236
mov word [rsp + 0x4a], ax
mov word [rsp + 0x48], ax
mov r8b, 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov edx, 8
xor ecx, ecx
mov r8d, 0x726574
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140003431
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140003431
xor eax, eax
mov qword [r14], rax
mov rcx, rbx
call fcn.140004a7c
test al, al
je 0x140003407
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r13, rax
mov qword [rsp + 0x70], rax
mov rcx, qword [rbx]
call fcn.140003aec
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140003402
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
cmp rax, r13
je 0x1400032ff
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, rdi
test rax, rax
je 0x14000336d
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov ecx, dword [rax + 0xc]
mov r12d, dword [rcx + 0x14]
mov qword [rsp + 0x28], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov edx, dword [r12 + 0x28]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140003366
mov r12d, dword [r12]
cmp r12, qword [rsp + 0x28]
je 0x1400033ce
jmp 0x14000332a
mov r15d, dword [r12 + 0x10]
jmp 0x1400033c1
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rcx, qword [rax + 0x18]
mov r12, qword [rcx + 0x20]
mov qword [rsp + 0x28], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rdx, qword [r12 + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400033bc
mov r12, qword [r12]
cmp r12, qword [rsp + 0x28]
je 0x1400033ce
jmp 0x140003380
mov r15, qword [r12 + 0x20]
mov sil, 1
mov byte [rsp + 0x20], sil
mov qword [rsp + 0x30], r15
mov qword [r14], r15
jmp 0x1400033ef
cmp rdi, r13
je 0x140003402
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
call fcn.1400050d0
test sil, sil
je 0x140003416
mov rdx, qword [rbx + 0x28]
mov rcx, qword [r14]
mov qword [rdx], rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, sil
jmp 0x140003433
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140006680
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret