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

Disassembly:
mov byte [rsp + 0x20], r9b
push rbp
push rsi
sub rsp, 0xd8
mov eax, 0x5a4d
mov rbp, rdx
mov rsi, rcx
cmp word [rdx], ax
je 0x140003266
lea rcx, str.Invalid_file_n
call fcn.1400031d0
xor al, al
add rsp, 0xd8
pop rsi
pop rbp
ret
mov qword [rsp + 0xc8], r14
mov eax, 0x8664
movsxd r14, dword [rdx + 0x3c]
add r14, rbp
cmp word [r14 + 4], ax
je 0x1400032a1
lea rcx, str.Invalid_platform_n
call fcn.1400031d0
mov r14, qword [rsp + 0xc8]
xor al, al
add rsp, 0xd8
pop rsi
pop rbp
ret
lea rcx, str.File_ok_n
mov qword [rsp + 0xc0], r15
call fcn.1400031d0
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x1400032f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.1400031d0
xor al, al
jmp 0x140003991
lea rax, [rsp + 0x110]
mov qword [rsp + 0x100], r12
xor r12d, r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x110], r12d
mov rdx, r15
mov r8d, dword [r14 + 0x50]
mov rcx, rsi
lea r9d, [r12 + 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, rbp
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rsp + 0x48], rax
mov rcx, rsi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400033b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140003989
mov qword [rsp + 0xf0], rbx
movzx ebx, word [r14 + 0x14]
add rbx, 0x2c
mov qword [rsp + 0xf8], rdi
mov edi, r12d
cmp word [r14 + 6], r12w
je 0x140003417
add rbx, r14
nop
mov eax, dword [rbx - 4]
test eax, eax
je 0x140003408
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, rbp
add rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000346c
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x1400033e0
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 rbp, rax
test rax, rax
jne 0x14000349c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140003979
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140003979
mov r9d, 0x40
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x40]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003501
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140003979
xor edx, edx
mov qword [rsp + 0xd0], r13
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x140003573
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000396f
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [0x1400039b0]
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400035ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000396f
mov rdx, r15
lea rcx, str.Mapped_DLL_at__p_n
call fcn.1400031d0
mov rdx, rbp
lea rcx, str.Mapping_info_at__p_n
call fcn.1400031d0
mov rdx, r13
lea rcx, str.Shell_code_at__p_n
call fcn.1400031d0
lea rcx, str.Data_allocated_n
call fcn.1400031d0
mov qword [rsp + 0x30], r12
mov r9, r13
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400036a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000396f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r13
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.1400031d0
nop dword [rax + rax]
lea rdx, [rsp + 0x108]
mov dword [rsp + 0x108], r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x108]
cmp edx, 0x103
jne 0x140003963
xorps xmm0, xmm0
mov qword [rsp + 0x20], r12
mov r9d, 0x40
lea r8, [rsp + 0x80]
mov rdx, rbp
mov rcx, rsi
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 rbx, qword [rsp + 0xa0]
cmp rbx, 0x404040
je 0x140003952
cmp rbx, 0x505050
jne 0x140003758
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.1400031d0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1400036c0
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
jne 0x140003790
lea rcx, str.Unable_to_allocate_memory_n
call fcn.1400031d0
jmp 0x14000396f
xor edx, edx
mov r8d, 0x1400000
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400037ce
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.1400031d0
movzx ebx, word [r14 + 0x14]
xor edi, edi
add rbx, 0x18
add rbx, r14
cmp word [r14 + 6], di
je 0x1400038d6
lea rdx, [0x14000ec10]
lea r8, str..rsrc
lea r9, str..reloc
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x1400038c3
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140003825
cmp rcx, 7
jne 0x140003810
jmp 0x140003864
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140003846
cmp rcx, 6
jne 0x140003830
jmp 0x140003864
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x1400038c3
cmp rcx, 7
jne 0x140003850
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.1400031d0
mov edx, dword [rbx + 0xc]
mov r8, r12
mov r9d, dword [rbx + 8]
add rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400038ae
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.1400031d0
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x14000ec10]
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140003800
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, r12
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140003904
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140003929
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.1400031d0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000394e
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.1400031d0
mov al, 1
jmp 0x140003971
lea rcx, str.Wrong_mapping_ptr_n
call fcn.1400031d0
jmp 0x1400035a9
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.1400031d0
xor al, al
mov r13, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x100]
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
add rsp, 0xd8
pop rsi
pop rbp
ret