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

Disassembly:
push rbp
push rdi
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, qword [0x140017718]
mov eax, 0x8664
mov rdi, rcx
movsxd rbp, dword [r15 + 0x3c]
add rbp, r15
cmp word [rbp + 4], ax
je 0x140012d1c
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Invalid_architecture
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r15
call fcn.140013238
xor al, al
jmp 0x140012fe1
mov r8d, dword [rbp + 0x50]
mov r9d, 0x3000
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140012d92
mov r8d, dword [rbp + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140012d92
xor r9d, r9d
lea r8, str.Error
lea rdx, str.External_memory_allocation_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r15
call fcn.140013238
xor al, al
jmp 0x140012fdc
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x98], rbx
movzx ebx, word [rbp + 0x14]
mov qword [rsp + 0xa0], rsi
add rbx, 0x2c
mov qword [rsp + 0x68], r12
xor r12d, r12d
mov esi, r12d
mov qword [rsp + 0x40], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rax
cmp word [rbp + 6], si
je 0x140012e1a
add rbx, rbp
nop dword [rax + rax]
mov eax, dword [rbx - 4]
test eax, eax
je 0x140012e0c
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r15
add rdx, r14
mov qword [rsp + 0x20], r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140012ead
movzx eax, word [rbp + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x140012de0
movups xmm0, xmmword [rsp + 0x40]
mov r9d, 0x1000
mov r8, r15
movsd xmm1, qword [rsp + 0x50]
mov rdx, r14
movups xmmword [r15], xmm0
mov rcx, rdi
mov qword [rsp + 0x20], r12
movsd qword [r15 + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, r15
call fcn.140013238
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140012ed0
xor r9d, r9d
lea r8, str.Error
lea rdx, str.External_memory_allocation_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140012fc7
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_map_section
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r15
call fcn.140013238
jmp 0x140012e91
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [0x140013000]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r12
mov r9, rsi
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140012f5a
xor r9d, r9d
lea r8, str.Error
lea rdx, str.External_thread_creation_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140012fc7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x20], r12
xor eax, eax
lea r8, [rsp + 0x40]
mov r9d, 0x18
mov qword [rsp + 0x50], rax
mov rdx, r14
mov rcx, rdi
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsp + 0x50]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x140012f70
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013210
add rsp, 0x70
pop r15
pop rdi
pop rbp
ret