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

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0x100
mov rax, qword [0x140048028]
xor rax, rsp
mov qword [rbp - 9], rax
mov rbx, qword [rbp + 0x7f]
mov eax, 0x5a4d
movzx r15d, r9b
mov rsi, rdx
mov r14, rcx
cmp word [rdx], ax
je 0x140007ffd
lea rcx, str.Invalid_file_n
call fcn.1400010f0
xor al, al
jmp 0x1400087c6
mov qword [rsp + 0xf8], r12
mov eax, 0x8664
movsxd r12, dword [rdx + 0x3c]
add r12, rsi
cmp word [r12 + 4], ax
je 0x14000802c
lea rcx, str.Invalid_platform_n
call fcn.1400010f0
xor al, al
jmp 0x1400087be
lea rcx, str.File_ok_n
mov qword [rsp + 0xf0], r13
call fcn.1400010f0
mov r8d, dword [r12 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x140008081
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.1400010f0
xor al, al
jmp 0x1400087b6
lea rax, [rbp - 0x11]
mov qword [rsp + 0x140], rdi
xor edi, edi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x11], edi
mov rdx, r13
mov r8d, dword [r12 + 0x50]
mov rcx, r14
lea r9d, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x50], rax
mov r8, rsi
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r13
mov qword [rsp + 0x58], rax
mov rcx, r14
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0x60], rax
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x79], eax
movzx eax, byte [rbp + 0x6f]
mov dword [rbp - 0x69], eax
mov qword [rsp + 0x70], rdi
mov dword [rbp - 0x75], edi
mov dword [rbp - 0x65], edi
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x71], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000813d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
movzx ebx, word [r12 + 0x14]
add rbx, 0x2c
cmp word [r12 + 6], di
je 0x14000818e
add rbx, r12
mov eax, dword [rbx - 4]
test eax, eax
je 0x14000817e
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, rsi
add rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400081e6
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140008152
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, r14
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
jne 0x140008214
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
xor ebx, ebx
lea r8, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, r14
lea r9d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140008277
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
jne 0x1400082e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
lea r8, [0x1400087f0]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140008360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
mov rdx, r13
lea rcx, str.Mapped_DLL_at__p_n
call fcn.1400010f0
mov rdx, rsi
lea rcx, str.Mapping_info_at__p_n
call fcn.1400010f0
mov rdx, rdi
lea rcx, str.Shell_code_at__p_n
call fcn.1400010f0
lea rcx, str.Data_allocated_n
call fcn.1400010f0
mov qword [rsp + 0x30], rbx
mov r9, rdi
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140008415
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400087ac
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.1400010f0
nop dword [rax]
lea rdx, [rbp - 0x21]
mov dword [rbp - 0x21], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp - 0x21]
cmp edx, 0x103
jne 0x1400087a0
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
lea r8, [rbp - 0x61]
mov rdx, rsi
mov rcx, r14
movups xmmword [rbp - 0x61], xmm0
movups xmmword [rbp - 0x51], xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x41]
cmp rbx, 0x404040
je 0x14000878f
cmp rbx, 0x505050
jne 0x1400084a3
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.1400010f0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
mov ebx, 0
je 0x140008430
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x1400084e1
lea rcx, str.Unable_to_allocate_memory_n
call fcn.1400010f0
jmp 0x1400087ac
xor edx, edx
mov r8d, 0x1400000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
test r15b, r15b
mov r15, qword [rbp - 0x19]
je 0x140008524
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
mov r8, r15
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140008524
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.1400010f0
cmp byte [rbp + 0x5f], bl
je 0x140008637
movzx ebx, word [r12 + 0x14]
xor edi, edi
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], di
je 0x140008637
lea rdx, [0x14003ee68]
lea r8, str..rsrc
lea r9, str..reloc
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x140008623
cmp byte [rbp + 0x6f], 0
jne 0x140008587
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140008587
cmp rcx, 7
jne 0x140008572
jmp 0x1400085c4
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400085a6
cmp rcx, 6
jne 0x140008590
jmp 0x1400085c4
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140008623
cmp rcx, 7
jne 0x1400085b0
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.1400010f0
mov edx, dword [rbx + 0xc]
mov r8, r15
mov r9d, dword [rbx + 8]
add rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000860e
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.1400010f0
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x14003ee68]
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140008560
cmp byte [rbp + 0x67], 0
je 0x14000870e
movzx ebx, word [r12 + 0x14]
xor esi, esi
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], si
je 0x1400086dc
lea edx, [rsi + 0x20]
nop
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x1400086cc
mov eax, dword [rbx + 0x24]
mov dword [rbp - 0x21], 0
test eax, 0x80000000
jbe 0x14000867f
mov edi, 4
jmp 0x14000868c
test eax, 0x20000000
mov edi, 2
cmova edi, edx
mov edx, dword [rbx + 0xc]
lea rax, [rbp - 0x21]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r13
mov r9d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, edi
lea rcx, str.section__s_set_as__lX_n
mov rdx, rbx
test eax, eax
jne 0x1400086c2
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.1400010f0
mov edx, 0x20
movzx eax, word [r12 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x140008660
movzx eax, word [r12 + 0x14]
mov r9d, 2
mov dword [rbp - 0x19], 0
mov rdx, r13
mov rcx, r14
mov r8d, dword [rax + r12 + 0x24]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov r9d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140008741
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140008766
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.1400010f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000878b
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.1400010f0
mov al, 1
jmp 0x1400087ae
lea rcx, str.Wrong_mapping_ptr_n
call fcn.1400010f0
jmp 0x14000831c
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.1400010f0
xor al, al
mov rdi, qword [rsp + 0x140]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xf8]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14003a630
add rsp, 0x100
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret