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

Disassembly:
sub rsp, 0x158
mov qword [rsp + 0x148], rdx
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x120], 0
mov rax, qword [rsp + 0x148]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140116216
lea rcx, str.Invalid_DOS_header.
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rax, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x148]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
add rax, 0x18
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x138]
add rax, 4
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x14011628c
lea rcx, str.Invalid_target_architecture.
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x38]
mov r8d, eax
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov edx, eax
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0
jne 0x1401162f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_allocate_memory_in_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov dword [rsp + 0x11c], 0
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x38]
mov r8d, eax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
mov r9d, 0x40
lea rax, [rsp + 0x11c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [rsp + 0xd8]
xor edx, edx
mov r8d, 0x40
call fcn.14013f020
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xd8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe0], rax
mov byte [rsp + 0xd7], 1
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x100], 1
mov qword [rsp + 0x108], 0
mov al, byte [rsp + 0xd7]
and al, 1
movzx eax, al
mov dword [rsp + 0x110], eax
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
mov r9d, 0x1000
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 0
jne 0x140116432
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_write_to_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rax, qword [rsp + 0x138]
add rax, 0x18
mov rcx, qword [rsp + 0x138]
movzx ecx, word [rcx + 0x14]
add rax, rcx
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
mov rcx, qword [rsp + 0x128]
movzx ecx, word [rcx + 2]
cmp eax, ecx
je 0x14011655f
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 0x10], 0
je 0x140116530
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x10]
mov r9d, eax
mov r8, qword [rsp + 0x148]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x14]
add r8, rax
mov rdx, qword [rsp + 0x120]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0xc]
add rdx, rax
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 0
jne 0x14011652b
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_write_to_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
jmp 0x140116530
jmp 0x140116535
mov eax, dword [rsp + 0xc4]
add eax, 1
mov dword [rsp + 0xc4], eax
mov rax, qword [rsp + 0xc8]
add rax, 0x28
mov qword [rsp + 0xc8], rax
jmp 0x140116460
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov edx, eax
mov r8d, 0x40
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x1401165de
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_allocate_memory_in_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
lea r8, [rsp + 0xd8]
mov r9d, 0x40
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 0
jne 0x140116679
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_write_to_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov edx, eax
mov r8d, 0x1000
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x140116719
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_allocate_memory_in_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
lea r8, [0x140115bf0]
mov r9d, 0x1000
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 0
jne 0x1401167d4
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_write_to_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rax, qword [rsp + 0xb8]
mov r9, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
xor edx, edx
mov r8d, edx
xor edx, edx
mov rdx, r8
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1401168ad
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_remote_thread__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa0], 0
cmp qword [rsp + 0xa0], 0
setne al
xor al, 0xff
test al, 1
jne 0x1401168e2
jmp 0x140116a13
mov dword [rsp + 0x9c], 0
mov rcx, qword [rsp + 0x140]
lea rdx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x9c], 0x103
je 0x140116921
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
lea rcx, [rsp + 0x58]
xor edx, edx
mov r8d, 0x40
call fcn.14013f020
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
lea r8, [rsp + 0x58]
mov r9d, 0x40
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov eax, 0x404040
cmp qword [rsp + 0xa0], rax
jne 0x140116a03
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_inject_DLL__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401168c7
mov ecx, 0x1400000
call fcn.1401249c8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140116a4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_allocate_memory_in_remote_process__Error_Code:__lx
call fcn.140113bd0
mov byte [rsp + 0x157], 0
jmp 0x140116dbf
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov r8d, 0x1400000
call fcn.14013f020
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
mov r9d, 0x1000
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x138]
add rax, 0x18
mov rcx, qword [rsp + 0x138]
movzx ecx, word [rcx + 0x14]
add rax, rcx
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x128]
movzx ecx, word [rcx + 2]
cmp eax, ecx
je 0x140116bd5
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 8], 0
je 0x140116bac
test byte [rsp + 0xd7], 1
je 0x140116afb
xor eax, eax
mov dword [rsp + 0x38], eax
jmp 0x140116b1e
mov rcx, qword [rsp + 0xc8]
lea rdx, [0x14016e655]
call fcn.14011e150
cmp eax, 0
sete al
and al, 1
movzx eax, al
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp eax, 0
jne 0x140116b65
mov rcx, qword [rsp + 0xc8]
lea rdx, str..rsrc
call fcn.14011e150
cmp eax, 0
je 0x140116b65
mov rcx, qword [rsp + 0xc8]
lea rdx, str..reloc
call fcn.14011e150
cmp eax, 0
jne 0x140116ba7
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
mov r9d, eax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x120]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0xc]
add rdx, rax
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x140116bac
jmp 0x140116bb1
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xc8]
add rax, 0x28
mov qword [rsp + 0xc8], rax
jmp 0x140116ab8
mov rax, qword [rsp + 0x138]
add rax, 0x18
mov rcx, qword [rsp + 0x138]
movzx ecx, word [rcx + 0x14]
add rax, rcx
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x128]
movzx ecx, word [rcx + 2]
cmp eax, ecx
je 0x140116cf0
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 8], 0
je 0x140116cc7
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x24]
and eax, 0x80000000
cmp eax, 0
jbe 0x140116c60
mov dword [rsp + 0x40], 4
jmp 0x140116c86
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
cmp eax, 0
jbe 0x140116c81
mov dword [rsp + 0x40], 0x20
jmp 0x140116c86
mov r9d, dword [rsp + 0x40]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 8]
mov r8d, eax
mov rdx, qword [rsp + 0x120]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0xc]
add rdx, rax
mov rcx, qword [rsp + 0x140]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140116ccc
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc8]
add rax, 0x28
mov qword [rsp + 0xc8], rax
jmp 0x140116c00
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x138]
add rax, 0x18
mov rcx, qword [rsp + 0x138]
movzx ecx, word [rcx + 0x14]
add rax, rcx
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x140]
mov r9d, 2
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
mov r9d, 0x1000
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x140]
xor eax, eax
mov r8d, eax
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x50]
call fcn.1401249d0
mov byte [rsp + 0x157], 1
mov al, byte [rsp + 0x157]
and al, 1
movzx eax, al
add rsp, 0x158
ret