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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov byte [rax + 0x20], r9b
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f]
sub rsp, 0xc0
mov eax, 0x5a4d
mov r14, rdx
mov rdi, rcx
cmp word [rdx], ax
je 0x1400013ca
lea rcx, str.Invalid_file_n
call fcn.140001148
jmp 0x1400019ea
movsxd rbx, dword [rdx + 0x3c]
mov eax, 0x8664
add rbx, r14
cmp word [rbx + 4], ax
je 0x1400013e5
lea rcx, str.Invalid_platform_n
jmp 0x1400013c0
lea rcx, str.File_ok_n
call fcn.140001148
mov r8d, dword [rbx + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor r13d, r13d
mov rsi, rax
test rax, rax
jne 0x14000142d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
jmp 0x1400019e5
mov dword [rbp + 0x67], r13d
lea rax, [rbp + 0x67]
mov r8d, dword [rbx + 0x50]
mov r9d, 0x40
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rbp - 0x79], rax
mov r8, r14
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rsi
mov qword [rbp - 0x71], rax
mov rcx, rdi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], 1
mov qword [rbp - 0x41], 1
mov qword [rbp - 0x61], rsi
mov qword [rbp - 0x49], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400014d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cant_write_file_header_0x_X_n
mov edx, eax
call fcn.140001148
mov r9d, 0x8000
mov rdx, rsi
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400019ea
movzx r15d, word [rbx + 0x14]
mov r12d, r13d
add r15, 0x2c
cmp word [rbx + 6], r13w
je 0x140001528
add r15, rbx
cmp dword [r15 - 4], r13d
je 0x140001518
mov r8d, dword [r15]
mov rcx, rdi
mov edx, dword [r15 - 8]
add r8, r14
mov r9d, dword [r15 - 4]
add rdx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000156b
movzx eax, word [rbx + 6]
inc r12d
add r15, 0x28
cmp r12d, eax
jne 0x1400014ef
mov r14d, 0x3000
mov dword [rsp + 0x20], 4
mov r15d, 0x40
mov r9d, r14d
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x4f], rax
mov r12, rax
test rax, rax
jne 0x14000157d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
jmp 0x1400014b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cant_map_sections:_0x_x_n
jmp 0x1400014b8
mov r9, r15
mov qword [rsp + 0x20], r13
lea r8, [rbp - 0x79]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400015cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cant_write_mapping_0x_X_n
mov edx, eax
call fcn.140001148
mov ebx, 0x8000
xor r8d, r8d
mov r9d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, ebx
mov rdx, r12
jmp 0x1400014c8
mov r9d, r14d
mov dword [rsp + 0x20], r15d
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor r15d, r15d
mov r13, rax
test rax, rax
jne 0x140001605
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
jmp 0x1400015a6
mov r9, r14
mov qword [rsp + 0x20], r15
lea r8, str.AWAVAUATVWUSH
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000166c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cant_write_shellcode_0x_X_n
mov edx, eax
call fcn.140001148
mov ebx, 0x8000
xor r8d, r8d
mov r9d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, ebx
mov rdx, r13
jmp 0x1400014c8
mov rdx, rsi
lea rcx, str.Mapped_DLL_at__p_n
call fcn.140001148
mov rdx, r12
lea rcx, str.Mapping_info_at__p_n
call fcn.140001148
mov rdx, r13
lea rcx, str.Shell_code_at__p_n
call fcn.140001148
lea rcx, str.Data_allocated_n
call fcn.140001148
mov qword [rsp + 0x30], r15
mov r9, r13
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400016dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Thread_creation_failed_0x_X_n
jmp 0x140001631
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.140001148
lea rdx, [rbp + 0x5f]
mov dword [rbp + 0x5f], r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp + 0x5f]
cmp edx, 0x103
jne 0x1400019de
mov r14d, 0x40
lea rcx, [rbp - 0x39]
mov r8d, r14d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, r14d
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x39]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r14, qword [rbp - 0x19]
cmp r14, 0x404040
je 0x1400019cd
cmp r14, 0x505050
jne 0x140001766
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140001148
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test r14, r14
je 0x1400016f4
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x57], rax
mov r14, rax
test rax, rax
jne 0x14000179d
lea rcx, str.Unable_to_allocate_memory_n
jmp 0x1400013c0
xor edx, edx
mov r8d, 0x1400000
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], r15
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400017d7
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140001148
movzx r14d, word [rbx + 0x14]
xor eax, eax
movzx ecx, word [rbx + 6]
add r14, 0x18
add r14, rbx
test cx, cx
je 0x140001885
mov r12, qword [rbp + 0x57]
cmp dword [r14 + 8], eax
je 0x14000186d
lea rdx, str..rsrc
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001822
lea rdx, str..reloc
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000186b
mov rdx, r14
lea rcx, str.Processing__s_removal_n
call fcn.140001148
mov edx, dword [r14 + 0xc]
xor eax, eax
mov r9d, dword [r14 + 8]
add rdx, rsi
mov r8, r12
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000186b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
lea rcx, str.Cant_clear_section__s:_0x_x_n
mov r8d, eax
call fcn.140001148
xor eax, eax
movzx ecx, word [rbx + 6]
inc r15d
add r14, 0x28
cmp r15d, ecx
jne 0x1400017f6
mov r12, qword [rbp + 0x4f]
movzx r14d, word [rbx + 0x14]
xor r15d, r15d
add r14, 0x18
mov dword [rbp + 0x5f], r15d
add r14, rbx
test cx, cx
je 0x14000192d
mov ecx, r15d
cmp dword [r14 + 8], r15d
je 0x140001918
test dword [r14 + 0x24], 0x80000000
mov dword [rbp + 0x6f], r15d
jbe 0x1400018c0
mov r15d, 4
jmp 0x1400018d5
test dword [r14 + 0x24], 0x20000000
mov eax, 0x20
lea r15d, [rax - 0x1e]
cmova r15d, eax
mov edx, dword [r14 + 0xc]
lea rax, [rbp + 0x6f]
mov r8d, dword [r14 + 8]
add rdx, rsi
mov r9d, r15d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, r15d
lea rcx, str.section__s_set_as__lX_n
mov rdx, r14
test eax, eax
jne 0x14000190d
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.140001148
mov ecx, dword [rbp + 0x5f]
xor r15d, r15d
movzx eax, word [rbx + 6]
inc ecx
add r14, 0x28
mov dword [rbp + 0x5f], ecx
cmp ecx, eax
jne 0x1400018a4
movzx eax, word [rbx + 0x14]
mov r9d, 2
mov dword [rbp + 0x77], r15d
mov rdx, rsi
mov rcx, rdi
mov r8d, dword [rax + rbx + 0x24]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, qword [rbp + 0x57]
mov r9d, 0x1000
mov rdx, r13
mov qword [rsp + 0x20], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001980
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140001148
mov ebx, 0x8000
xor r8d, r8d
mov r9d, ebx
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400019a7
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140001148
mov r9d, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400019c9
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140001148
mov al, 1
jmp 0x1400019ec
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140001148
jmp 0x140001638
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140001148
xor al, al
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret