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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0xe8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rsi, qword [rsp + 0x138]
mov eax, 0x5a4d
mov r15, rdx
movzx edi, r9b
mov rbx, rcx
cmp word [rdx], ax
je 0x14000123e
lea rcx, str.Invalid_file_n
call fcn.140001190
xor al, al
jmp 0x14000178f
mov qword [rsp + 0xe0], rbp
mov r9d, 0x3000
movsxd rbp, dword [rdx + 0x3c]
xor edx, edx
add rbp, r15
mov qword [rsp + 0xd0], r14
mov dword [rsp + 0x20], 4
mov r8d, dword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140001292
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140001190
xor al, al
jmp 0x14000177f
lea rax, [rsp + 0xc4]
mov qword [rsp + 0xd8], r12
xor r12d, r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xc4], r12d
mov r9d, 0x40
mov r8d, dword [rbp + 0x50]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x40], rax
mov r8, r15
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r14
mov qword [rsp + 0x48], rax
mov rcx, rbx
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x7c], r12d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
movzx edi, word [rbp + 0x14]
mov esi, r12d
add rdi, 0x2c
cmp word [rbp + 6], si
je 0x1400013aa
add rdi, rbp
mov eax, dword [rdi - 4]
test eax, eax
je 0x14000139c
mov r8d, dword [rdi]
mov r9d, eax
mov edx, dword [rdi - 8]
add r8, r15
add rdx, r14
mov qword [rsp + 0x20], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400013ff
movzx eax, word [rbp + 6]
inc esi
add rdi, 0x28
cmp esi, eax
jne 0x140001374
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x14000142d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
mov r9d, 0x40
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001490
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x1400014fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [0x1400017b0]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
mov qword [rsp + 0x30], r12
mov r9, rbp
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400015f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001775
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [rax + rax]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xc0], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0xc0]
cmp edx, 0x103
jne 0x140001769
xorps xmm0, xmm0
mov qword [rsp + 0x20], r12
mov r9d, 0x40
lea r8, [rsp + 0x80]
mov rdx, rsi
mov rcx, rbx
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rsp + 0xa0]
cmp rdi, 0x404040
je 0x140001758
cmp rdi, 0x505050
jne 0x140001698
lea rcx, str.Exception_support_failed__n
call fcn.140001190
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x140001600
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400016d0
lea rcx, str.Unable_to_allocate_memory._n
call fcn.140001190
jmp 0x140001775
xor edx, edx
mov r8d, 0x1400000
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000170a
lea rcx, str.Cant_clear_shellcode._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000172f
lea rcx, str.Cant_release_shell_code_memory._n
call fcn.140001190
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140001754
lea rcx, str.Cant_release_mapping_data_memory._n
call fcn.140001190
mov al, 1
jmp 0x140001777
lea rcx, str.Wrong_mapping_ptr._n
call fcn.140001190
jmp 0x140001530
lea rcx, str.Process_crashed__exit_code:_0x_X._n
call fcn.140001190
xor al, al
mov r12, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400026e0
add rsp, 0xe8
pop r15
pop rdi
pop rsi
pop rbx
ret