Function at 0x163dc
Capabilities:
Allocate or change rwx memory
Attach user process memory
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r14, rdx
mov r12, rcx
and qword [rax - 0x78], 0
mov qword [rax - 0x70], 0x434
and qword [rax + 0x20], 0
lea rdx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r15, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov r13, rax
and dword [rsp + 0xc0], 0
xor esi, esi
xor ebx, ebx
lea r9, [rsp + 0xc0]
xor r8d, r8d
xor edx, edx
lea ecx, [rsi + 5]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, eax
cmp eax, 0xc0000004
jne 0x164a7
mov edx, dword [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x16475
mov ebx, 0xc000009a
jmp 0x166b5
lea r9, [rsp + 0xc0]
mov r8d, dword [rsp + 0xc0]
mov rdx, rax
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, eax
test eax, eax
jns 0x164af
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, edi
jmp 0x164f6
test eax, eax
je 0x164af
mov ebx, edi
jmp 0x164f6
mov rcx, rbx
cmp qword [rcx + 0x50], r13
jne 0x164c1
lea rsi, [rcx + 0x100]
jmp 0x164c9
cmp dword [rcx], esi
jne 0x166d4
test rsi, rsi
je 0x164e4
test r15, r15
je 0x164e4
mov rdx, r15
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov edi, eax
jmp 0x164e9
mov edi, 0xc0000001
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, edi
test edi, edi
js 0x166b5
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0xc8]
or r13, 0xffffffffffffffff
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x166b5
xor eax, eax
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov rcx, r12
call sub.ntoskrnl.exe_PsGetProcessPeb
test rax, rax
jne 0x16559
mov ebx, 0xc0000001
jmp 0x166b5
mov rdi, qword [rax + 0x18]
test rdi, rdi
jne 0x1656c
mov ebx, 0xc0000001
jmp 0x166b5
lea rdx, [0x00018db0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdi, qword [rdi + 0x20]
mov r12, rdi
lea rcx, [rdi - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x165a9
lea rcx, [rdi + 0x48]
mov r8b, 1
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x165b3
mov rdi, qword [rdi]
cmp rdi, r12
je 0x165c6
jmp 0x16585
mov rcx, qword [rdi + 0x20]
mov rax, qword [rsp + 0xc8]
mov qword [rax + 0x20c], rcx
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 0x20c]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x165e9
mov ebx, 0xc0000001
jmp 0x166b5
mov rax, qword [rsp + 0xc8]
and dword [rax + 0x200], 0
lea rdx, [0x00018dd0]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 0x20c]
call fcn.00015f14
mov rdx, qword [rsp + 0xc8]
mov qword [rdx + 0x214], rax
lea rdx, [0x00018de0]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 0x20c]
call fcn.00015f14
mov rdx, qword [rsp + 0xc8]
mov qword [rdx + 0x21c], rax
xor eax, eax
mov rcx, r13
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
add r8, r8
mov rcx, qword [rsp + 0xc8]
add rcx, 0x22c
mov rdx, r14
call fcn.00016ab0
nop
mov rcx, qword [rsp + 0xc8]
lea rdx, [0x0001a110]
mov r8d, 0x19c
call fcn.00016ab0
mov rdx, qword [rsp + 0xc8]
mov r8, rdx
mov rcx, qword [rsp + 0x30]
call fcn.00015d1c
test al, al
je 0x166b5
xor ebx, ebx
jmp 0x166b5
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x166d0
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x166de
mov eax, dword [rcx]
add rcx, rax
jmp 0x164b2
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret