Function at 0x17d50
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.00011010
movzx eax, al
test eax, eax
jne 0x18292
mov dl, 1
lea rcx, [0x00032240]
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
movzx eax, al
test eax, eax
je 0x18249
movzx eax, byte [0x000291b0]
test eax, eax
je 0x18007
cmp qword [0x0002d4c8], 0
je 0x18007
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x17e4e
movzx eax, byte [rsp + 0xe0]
test eax, eax
je 0x17e4e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
lea rdx, [rsp + 0x58]
mov rcx, qword [0x0002d4c8]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x1fffff
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
jmp 0x17e43
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [0x0002d4c0], 0
jne 0x17ea7
xor r8d, r8d
mov edx, 0x48
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x0002d4c0], rax
cmp qword [0x0002d4c0], 0
je 0x17ea7
mov qword [rsp + 0x20], 0
lea r9, [0x00017c40]
lea r8, [0x00017bf0]
lea rdx, [0x000201d0]
mov rcx, qword [0x0002d4c0]
call qword [sym.imp.ntoskrnl.exe_RtlInitializeGenericTable]
cmp qword [0x0002d4c0], 0
je 0x18007
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x90]
mov rcx, qword [0x0002d4c0]
call qword [sym.imp.ntoskrnl.exe_RtlLookupElementGenericTable]
mov qword [rsp + 0x88], rax
movzx eax, byte [rsp + 0xe0]
test eax, eax
je 0x17f9e
mov byte [rsp + 0xb0], 0
cmp qword [rsp + 0x88], 0
je 0x17f40
lea rcx, [0x00024a80]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rsp + 0x88]
mov rcx, qword [0x0002d4c0]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTable]
lea r9, [rsp + 0xb0]
mov r8d, 0x20
lea rdx, [rsp + 0x90]
mov rcx, qword [0x0002d4c0]
call qword [sym.imp.ntoskrnl.exe_RtlInsertElementGenericTable]
mov qword [rsp + 0x88], rax
movzx r9d, byte [rsp + 0xb0]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r8d, dword [rsp + 0x90]
mov edx, dword [rsp + 0xa0]
lea rcx, [0x00024aa0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x18007
mov r8, qword [rsp + 0x88]
mov edx, dword [rsp + 0x90]
lea rcx, [0x00024ae0]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [rsp + 0x88], 0
je 0x17fdd
lea rcx, [0x00024b00]
call sub.ntoskrnl.exe_DbgPrint
mov r11, qword [rsp + 0x88]
mov byte [r11 + 0x18], 1
mov rax, qword [0x0002d4c8]
cmp qword [rsp + 0x40], rax
jne 0x18007
lea rcx, [0x00024b30]
call sub.ntoskrnl.exe_DbgPrint
call fcn.00018370
mov qword [0x0002d4c8], 0
movzx eax, byte [0x00032fec]
cmp eax, 0x32
jge 0x1807b
movzx edx, byte [0x00032fec]
imul rdx, rdx, 0x18
lea rcx, [0x000322e0]
movzx eax, byte [rsp + 0xe0]
mov qword [rcx + rdx], rax
movzx edx, byte [0x00032fec]
imul rdx, rdx, 0x18
lea rcx, [0x000322e0]
mov rax, qword [rsp + 0xd8]
mov qword [rcx + rdx + 8], rax
movzx edx, byte [0x00032fec]
imul rdx, rdx, 0x18
lea rcx, [0x000322e0]
mov rax, qword [rsp + 0x40]
mov qword [rcx + rdx + 0x10], rax
movzx eax, byte [0x00032fec]
add al, 1
mov byte [0x00032fec], al
xor eax, eax
test eax, eax
je 0x18249
movzx eax, byte [rsp + 0xe0]
test eax, eax
je 0x1815d
xor r8d, r8d
mov edx, 0x28
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0xd8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x50]
lea rcx, [0x00024b40]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [0x000327a0], 0
jne 0x1811f
mov rax, qword [rsp + 0x50]
mov qword [0x000327a0], rax
mov rax, qword [0x000327a0]
mov qword [rax + 0x20], 0
mov rax, qword [0x000327a0]
mov qword [rax + 0x18], 0
jmp 0x18158
mov rcx, qword [rsp + 0x50]
mov rax, qword [0x000327a0]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], 0
mov rcx, qword [0x000327a0]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x50]
mov qword [0x000327a0], rax
jmp 0x18249
mov rax, qword [0x000327a0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18249
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0xd8]
cmp qword [rcx], rax
jne 0x18236
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x20], 0
je 0x181ad
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0
je 0x181d1
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [rcx + 0x20], rax
jmp 0x181e1
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [0x000327a0], rax
mov dword [rsp + 0xb4], 0
mov rax, qword [0x000327a0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18221
mov eax, dword [rsp + 0xb4]
add eax, 1
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x181f8
mov edx, dword [rsp + 0xb4]
lea rcx, [0x00024b60]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x18249
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x18169
lea rcx, [0x00032240]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
cmp qword [rsp + 0x40], 0
je 0x18269
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [0x000322c0], 0
je 0x18292
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x000322c0]
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov rcx, qword [0x000322c0]
call qword [sym.imp.ntoskrnl.exe_KeClearEvent]
add rsp, 0xc8
ret