Function at 0x140005250
Capabilities:
Allocate or change rwx memory
Enumerate threads
Inject apc

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xf0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x90], 0xffffffff
mov edx, 0x18
lea rcx, [rsp + 0xb0]
call fcn.140005630
lea rcx, [rsp + 0xb0]
call fcn.140007ab0
nop
mov rcx, qword [rsp + 0x108]
call fcn.140002580
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140005308
mov dword [rsp + 0x58], 0xffffffff
lea rcx, [rsp + 0xb0]
call fcn.140007a80
mov eax, dword [rsp + 0x58]
jmp 0x140005609
mov rcx, qword [rsp + 0x108]
call fcn.1400026f0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000533e
mov dword [rsp + 0x5c], 0xffffffff
lea rcx, [rsp + 0xb0]
call fcn.140007a80
mov eax, dword [rsp + 0x5c]
jmp 0x140005609
mov r8d, dword [rsp + 0x100]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000539a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x100]
lea rcx, [0x14000f438]
call fcn.140001070
mov dword [rsp + 0x60], 0xffffffff
lea rcx, [rsp + 0xb0]
call fcn.140007a80
mov eax, dword [rsp + 0x60]
jmp 0x140005609
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140005406
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x100]
lea rcx, [0x14000f4b0]
call fcn.140001070
mov dword [rsp + 0x64], 0xffffffff
lea rcx, [rsp + 0xb0]
call fcn.140007a80
mov eax, dword [rsp + 0x64]
jmp 0x140005609
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140005470
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x100]
lea rcx, [0x14000f4f0]
call fcn.140001070
mov dword [rsp + 0x68], 0xffffffff
lea rcx, [rsp + 0xb0]
call fcn.140007a80
mov eax, dword [rsp + 0x68]
jmp 0x140005609
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0xc8], 0x1c
lea rax, [rsp + 0xcc]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400054fd
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0xd4], eax
jne 0x1400054e3
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb0]
call fcn.140007920
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400054be
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140007900
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x88]
call fcn.1400078e0
mov qword [rsp + 0x98], rax
jmp 0x140005544
mov rax, qword [rsp + 0x50]
add rax, 4
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x50], rax
je 0x1400055fc
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov r8d, dword [rsp + 0x38]
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400055a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x100]
lea rcx, [0x14000f530]
call fcn.140001070
jmp 0x140005536
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400055e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x100]
mov edx, dword [rsp + 0x38]
lea rcx, str.Failed_to_Queue_APC_to_Thread_Is__d_in_process_PID__d__Error_Code_is0x_x_n
call fcn.140001070
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005536
lea rcx, [rsp + 0xb0]
call fcn.140007a80
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0xf0
pop rdi
ret