Function at 0x1400108d0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14000a330]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r15d, r9d
mov r12, r8
mov esi, edx
mov rbx, rcx
mov r14, qword [rsp + 0xf0]
mov qword [rsp + 0x50], r14
mov edi, 4
cmp byte [rsp + 0xf8], 0
je 0x140010950
cmp edx, 1
mov r8d, edi
jne 0x140010929
lea r8d, [rdi - 3]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
test r14, r14
je 0x140010949
mov r8d, edi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
jmp 0x140010950
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9b, byte [rsp + 0xf8]
mov r8, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov r8, qword [r8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140010b3e
sub esi, 1
je 0x140010ac7
sub esi, 1
je 0x140010a59
cmp esi, 1
je 0x1400109b2
mov ebx, 0xc0000003
mov dword [rsp + 0x40], ebx
xor edi, edi
jmp 0x140010b14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140010b14
and qword [rsp + 0x20], 0
mov r9d, edi
lea r8, [rsp + 0x44]
mov edx, 0x21
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140010a49
cmp r15d, edi
jne 0x140010a40
mov eax, dword [rsp + 0x44]
mov dword [r12], eax
jmp 0x140010a3e
jmp 0x140010a49
mov ebx, 0xc0000004
mov dword [rsp + 0x40], ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140010b14
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x20], 0
mov r9d, edi
lea r8, [rsp + 0x44]
mov edx, 0x22
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x140010b14
cmp r15d, edi
jne 0x140010abc
mov eax, dword [rsp + 0x44]
mov dword [r12], eax
jmp 0x140010aba
jmp 0x140010b14
mov ebx, 0xc0000004
mov dword [rsp + 0x40], ebx
jmp 0x140010b14
xor cl, cl
mov rax, qword [0x14000b650]
test rax, rax
je 0x140010ae0
mov rcx, qword [rsp + 0x48]
call rax
mov cl, al
jmp 0x140010ae9
mov ebx, 0xc00000bb
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x140010b0f
cmp r15d, 1
jne 0x140010b06
mov byte [r12], cl
jmp 0x140010b04
jmp 0x140010b0f
mov ebx, 0xc0000004
mov dword [rsp + 0x40], ebx
mov edi, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test r14, r14
je 0x140010b3c
cmp byte [rsp + 0xf8], 0
je 0x140010b39
mov dword [r14], edi
jmp 0x140010b37
jmp 0x140010b3c
mov dword [r14], edi
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140005c60
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret