Function at 0x16e2c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov r15, r9
mov r12d, r8d
mov esi, edx
mov r14, rcx
lea rbx, [rcx + 0xb8]
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov dl, 1
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
lea rcx, [r14 + 0x120]
xor edx, edx
call fcn.0001b538
mov rbp, rax
test rax, rax
jne 0x16ea9
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, 0xc000009a
jmp 0x170de
mov rdi, qword [rax + 0x18]
mov r13d, dword [rsp + 0x110]
movzx eax, si
movzx ecx, word [rdi + 2]
mov dword [rdi + 0x28], r12d
mov r12d, dword [rsp + 0x118]
shl ecx, 0x10
xor edx, edx
mov dword [rdi + 0x2c], r13d
or ecx, eax
mov dword [rdi + 0x30], r12d
lea r8d, [rdx + 0x30]
mov dword [rdi], ecx
and dword [rsp + 0xb0], 0
lea rcx, [rsp + 0x80]
call fcn.00022550
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_IoGetRequestorProcess]
test rax, rax
je 0x16f1c
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0xb0], 1
xor eax, eax
cmp r13d, r12d
lea rcx, [rsp + 0x30]
cmova r12d, r13d
xor r9d, r9d
mov rdx, r15
mov r8d, r12d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], al
call fcn.00017394
mov rcx, qword [rsp + 0x40]
mov r15d, 0x10
lea r13d, [r15 - 0xf]
xor r12d, r12d
xor r9d, r9d
mov r8d, r13d
mov dl, r13b
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x34], rax
cmp rax, r12
je 0x17043
lea edx, [r15 + 2]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x78], r12b
call fcn.000172f0
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8d, r13d
mov dl, r13b
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
lea rcx, [r14 + 0x120]
mov r8, rdi
mov rdx, rbp
mov r9, rax
mov qword [rsp + 0x70], rax
call fcn.000171d4
mov edi, eax
cmp eax, r12d
je 0x1702f
lea rcx, [rsp + 0x58]
call fcn.00017424
lea rcx, [rsp + 0x30]
call fcn.00017424
cmp dword [rsp + 0xb0], r12d
je 0x170c7
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0xb0], r12d
jmp 0x170c7
mov rax, qword [rsp + 0x60]
cmp rax, r12
jne 0x17074
lea rcx, [rsp + 0x58]
call fcn.00017424
lea rcx, [rsp + 0x30]
call fcn.00017424
cmp dword [rsp + 0xb0], r12d
je 0x1706d
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0xb0], r12d
mov edi, 0xc000009a
jmp 0x170c7
mov rcx, qword [rsp + 0x120]
cmp rcx, r12
je 0x17090
cmp esi, 5
je 0x1708b
cmp esi, 0x11
jne 0x17090
mov eax, dword [rax + 4]
mov dword [rcx], eax
lea rcx, [rsp + 0x58]
call fcn.00017424
lea rcx, [rsp + 0x30]
call fcn.00017424
cmp dword [rsp + 0xb0], r12d
je 0x170c4
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [rsp + 0xb0], r12d
mov edi, r12d
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, edi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret