Function at 0x1400041bc
Capabilities:
Attach user process memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rdi, rcx
mov qword [rsp + 0x88], rcx
xor sil, sil
mov byte [rsp + 0x40], sil
cmp qword [rcx], 0
jbe 0x140004542
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140004542
cmp qword [rdi + 0x28], 0
jbe 0x140004542
cmp byte [0x140009050], sil
je 0x140004542
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [r11 - 0x80], rcx
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x140004244
mov word [rsp + 0x62], ax
mov word [rsp + 0x60], ax
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov rcx, rdi
call fcn.140004a7c
test al, al
je 0x140004523
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r14, rax
mov qword [rsp + 0x90], rax
mov rcx, qword [rdi]
call fcn.140003aec
mov r15, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14000451e
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
mov byte [rsp + 0x41], r12b
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
cmp r15, r14
je 0x1400042f1
lea rdx, [rsp + 0x98]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov r8b, r12b
lea rdx, [0x140006fd0]
mov rcx, r15
call fcn.140003ccc
lea rdx, [0x140006ff0]
mov rcx, rax
call fcn.140003460
lea rdx, [rsp + 0x70]
mov rcx, rax
test r12b, r12b
je 0x140004326
call fcn.140003f24
jmp 0x14000432b
call fcn.140003950
mov r13, rax
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x1400043bb
mov dword [rsp + 0x48], 0xc0000001
and qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x200
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov r14d, 1
cmp dword [rdi + 0x18], r14d
sete r9b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140002ab8
cmp dword [rsp + 0x48], 0
jl 0x1400044cd
mov sil, r14b
mov byte [rsp + 0x40], r14b
jmp 0x1400044cd
mov r14d, 1
cmp rax, r14
jne 0x1400044cd
lea rdx, [0x140009080]
mov rcx, r15
call fcn.140001c2c
mov rcx, qword [0x140009080]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400044cd
mov byte [rsp + 0x28], r14b
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [0x140009080]
call fcn.140001d8c
mov r14d, eax
mov dword [rsp + 0x44], eax
test eax, eax
js 0x1400044b7
cmp dword [rdi + 0x18], 1
jne 0x1400044b7
and qword [rsp + 0x58], 0
mov qword [rsp + 0x58], 0xffffffffffff3cb0
xor r12d, r12d
mov dword [rsp + 0x4c], r12d
cmp r12d, 0x2710
jae 0x1400044a1
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001c00
test al, al
jne 0x140004496
mov rcx, qword [0x140009080]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
test al, al
jne 0x140004496
cmp dword [r13 + 0x5e8], 0xc0371e7e
je 0x1400044a1
lea r8, [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
mov r14d, eax
mov dword [rsp + 0x44], eax
test eax, eax
js 0x1400044a1
inc r12d
jmp 0x140004439
mov r14d, 0xc000010a
mov dword [rsp + 0x44], r14d
mov r12b, byte [rsp + 0x41]
test r14d, r14d
js 0x1400044b7
mov r14d, dword [r13 + 0x5ec]
mov dword [rsp + 0x44], r14d
movzx esi, sil
test r14d, r14d
mov r14d, 1
cmovns esi, r14d
mov byte [rsp + 0x40], sil
cmp sil, r14b
jne 0x1400044ef
mov rdx, qword [r13 + 0x5e0]
test rdx, rdx
je 0x1400044ef
cmp dword [rdi + 0x1c], r14d
jne 0x1400044ef
mov r8b, r12b
mov rcx, r15
call fcn.140001f1c
jmp 0x140004506
cmp r15, qword [rsp + 0x90]
je 0x14000451e
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
call fcn.1400050d0
test sil, sil
je 0x140004532
mov rcx, qword [rdi + 0x28]
mov dword [rcx], 0x23ff
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov al, sil
jmp 0x140004544
xor al, al
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140006680
lea r11, [rsp + 0xd0]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret