Function at 0x1400026f0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Resolve function by parsing pe exports
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rsi
mov eax, 0x10c8
call fcn.140069290
sub rsp, rax
mov rax, qword [0x1400868c0]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov eax, 0x5a4d
mov rsi, rdx
mov rbp, rcx
cmp word [rdx], ax
je 0x140002748
lea rcx, str.____Invalid_file_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400691fc
xor al, al
jmp 0x140002db1
mov qword [rsp + 0x10a8], r14
mov eax, 0x8664
movsxd r14, dword [rdx + 0x3c]
add r14, rsi
cmp word [r14 + 4], ax
je 0x140002789
lea rcx, str.____Invalid_platform_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400691fc
xor al, al
jmp 0x140002da9
lea rcx, str.____File_found_n
mov qword [rsp + 0x10a0], r15
call fcn.140002ff0
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x1400027f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400691fc
xor al, al
jmp 0x140002da1
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x48], rax
mov r8, rsi
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rsp + 0x10b0], r13
mov rcx, rbp
xor r13d, r13d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002861
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cant_write_file_header_0x_X_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
jmp 0x140002d99
mov qword [rsp + 0x10f0], rbx
movzx ebx, word [r14 + 0x14]
mov qword [rsp + 0x10c0], rdi
add rbx, 0x2c
mov edi, r13d
cmp word [r14 + 6], di
je 0x1400028be
add rbx, r14
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400028af
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, rsi
add rdx, r15
mov qword [rsp + 0x20], r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400028ff
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140002887
xor edx, edx
mov qword [rsp + 0x10b8], r12
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rbp
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140002942
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Target_process_mapping_allocation_failed__ex__0x_X_n
jmp 0x140002d67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cant_map_sections:_0x_x_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400691fc
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140002d89
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x48]
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002976
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cant_write_mapping_0x_X_n
jmp 0x140002d67
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x1400029f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140002d77
mov r9d, 0x1000
mov qword [rsp + 0x20], r13
lea r8, [0x140002dd0]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
jmp 0x140002d67
lea rcx, str.Data_allocated_n
call fcn.140002ff0
mov qword [rsp + 0x30], r13
mov r9, rbx
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140002aba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Thread_creation_failed_0x_X_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140002d77
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rbx
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.140002ff0
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x88]
mov dword [rsp + 0x88], r13d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x88]
cmp edx, 0x103
jne 0x140002d60
xorps xmm0, xmm0
mov qword [rsp + 0x20], r13
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x68]
mov rdx, r12
mov rcx, rbp
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsp + 0x80]
cmp rbx, 0x404040
je 0x140002d52
cmp rbx, 0x606060
je 0x140002d44
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x140002ae0
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x90]
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002bba
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test rax, rax
jne 0x140002bde
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140002ff0
jmp 0x140002d6c
xor edx, edx
mov r8d, 0x100000
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
movzx ebx, word [r14 + 0x14]
xor edi, edi
add rbx, 0x18
add rbx, r14
cmp word [r14 + 6], di
je 0x140002d01
lea rdx, [0x14006cdf4]
lea r8, str..rsrc
lea r9, str..reloc
nop dword [rax]
cmp dword [rbx + 0x10], 0
je 0x140002cee
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140002c45
cmp rcx, 7
jne 0x140002c30
jmp 0x140002c84
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002c66
cmp rcx, 6
jne 0x140002c50
jmp 0x140002c84
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140002cee
cmp rcx, 7
jne 0x140002c70
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.140002ff0
mov edx, dword [rbx + 0xc]
mov r8, r13
mov r9d, dword [rbx + 0x10]
add rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002cd9
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.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x14006cdf4]
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140002c20
mov rcx, rsi
call fcn.1400691fc
mov rdx, qword [rsp + 0x40]
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x140002d81
lea rcx, str.Wrong_directory_base_relocation_n
call fcn.140002ff0
jmp 0x140002d6c
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140002ff0
jmp 0x140002d6c
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140002ff0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400691fc
xor al, al
mov r12, qword [rsp + 0x10b8]
mov rbx, qword [rsp + 0x10f0]
mov rdi, qword [rsp + 0x10c0]
mov r13, qword [rsp + 0x10b0]
mov r15, qword [rsp + 0x10a0]
mov r14, qword [rsp + 0x10a8]
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.1400692f0
add rsp, 0x10c8
pop rsi
pop rbp
ret