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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
push rbp
push rsi
push r14
lea rbp, [rsp - 0x1f]
sub rsp, 0xe0
mov eax, 0x5a4d
mov r14, rdx
mov rsi, rcx
cmp word [rdx], ax
je 0x1400035a4
lea rcx, str.Invalid_file_n
call fcn.140003500
xor al, al
add rsp, 0xe0
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], r15
mov eax, 0x8664
movsxd r15, dword [rdx + 0x3c]
add r15, r14
cmp word [r15 + 4], ax
je 0x1400035d2
lea rcx, str.Invalid_platform_n
call fcn.140003500
xor al, al
jmp 0x140003c8f
lea rcx, str.File_ok_n
mov qword [rsp + 0xd0], r12
call fcn.140003500
mov r8d, dword [r15 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140003626
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140003500
xor al, al
jmp 0x140003c87
lea rax, [rbp + 0x5f]
mov qword [rsp + 0xc8], r13
xor r13d, r13d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x5f], r13d
mov rdx, r12
mov r8d, dword [r15 + 0x50]
mov rcx, rsi
lea r9d, [r13 + 0x40]
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, r14
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r12
mov qword [rbp - 0x79], rax
mov rcx, rsi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 1
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x51], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400036da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140003c7f
mov qword [rsp + 0x100], rbx
movzx ebx, word [r15 + 0x14]
add rbx, 0x2c
mov qword [rsp + 0xd8], rdi
mov edi, r13d
cmp word [r15 + 6], r13w
je 0x140003737
add rbx, r15
mov eax, dword [rbx - 4]
test eax, eax
je 0x140003728
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r14
add rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000378a
movzx eax, word [r15 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140003700
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x1400037b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140003c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140003c6d
mov r9d, 0x40
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000381b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140003c6d
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x4f], rax
mov rdi, rax
test rax, rax
jne 0x140003889
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140003c6d
mov r9d, 0x1000
mov qword [rsp + 0x20], r13
lea r8, [0x140003cb0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003903
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140003c6d
mov rdx, r12
lea rcx, str.Mapped_DLL_at__p_n
call fcn.140003500
mov rdx, r14
lea rcx, str.Mapping_info_at__p_n
call fcn.140003500
mov rdx, rdi
lea rcx, str.Shell_code_at__p_n
call fcn.140003500
lea rcx, str.Data_allocated_n
call fcn.140003500
mov qword [rsp + 0x30], r13
mov r9, rdi
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400039b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140003c6d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.140003500
lea rdx, [rbp + 0x57]
mov dword [rbp + 0x57], r13d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp + 0x57]
cmp edx, 0x103
jne 0x140003c61
xor eax, eax
mov qword [rsp + 0x20], r13
lea r8, [rbp - 0x41]
mov qword [rbp - 0x41], rax
mov rdx, r14
mov qword [rbp - 0x39], rax
mov rcx, rsi
mov qword [rbp - 0x31], rax
lea r9d, [rax + 0x40]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x21]
cmp rbx, 0x404040
je 0x140003c50
cmp rbx, 0x505050
jne 0x140003a52
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140003500
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1400039d1
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test rax, rax
jne 0x140003a8a
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140003500
jmp 0x140003c6d
xor edx, edx
mov r8d, 0x1400000
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, r13
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003ac8
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140003500
movzx eax, word [r15 + 0x14]
lea rbx, [r15 + 0x18]
add rbx, rax
xor edi, edi
cmp word [r15 + 6], di
je 0x140003bd0
lea rdx, [0x14000ec58]
lea r8, str..rsrc
lea r9, str..reloc
cmp dword [rbx + 8], 0
je 0x140003bb3
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140003b17
cmp rcx, 7
jne 0x140003b02
jmp 0x140003b54
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140003b36
cmp rcx, 6
jne 0x140003b20
jmp 0x140003b54
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140003bb3
cmp rcx, 7
jne 0x140003b40
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.140003500
mov edx, dword [rbx + 0xc]
mov r8, r13
mov r9d, dword [rbx + 8]
add rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Cant_clear_section__s:_0x_x_n
mov r8d, eax
call fcn.140003500
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x14000ec58]
movzx eax, word [r15 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140003af6
nop word [rax + rax]
mov rbx, qword [rbp + 0x4f]
mov r9d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003c02
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140003c27
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140003500
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140003c4c
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140003500
mov al, 1
jmp 0x140003c6f
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140003500
jmp 0x1400038bf
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140003500
xor al, al
mov rdi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x100]
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov r15, qword [rsp + 0xc0]
add rsp, 0xe0
pop r14
pop rsi
pop rbp
ret