Function at 0x140056e30
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rsi
mov eax, 0x1098
call fcn.1401225b0
sub rsp, rax
mov eax, 0x5a4d
mov rbx, rdx
mov rsi, rcx
cmp word [rdx], ax
je 0x140056e70
lea rcx, str.Invalid_file_n
call fcn.140021040
mov rcx, rbx
call fcn.140122054
xor al, al
add rsp, 0x1098
pop rsi
pop rbx
ret
mov qword [rsp + 0x1088], r14
mov eax, 0x8664
movsxd r14, dword [rdx + 0x3c]
add r14, rbx
cmp word [r14 + 4], ax
je 0x140056eb3
lea rcx, str.Invalid_platform_n
call fcn.140021040
mov rcx, rbx
call fcn.140122054
mov r14, qword [rsp + 0x1088]
xor al, al
add rsp, 0x1098
pop rsi
pop rbx
ret
lea rcx, str.File_ok_n
mov qword [rsp + 0x1080], r15
call fcn.140021040
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x140056f0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140021040
mov rcx, rbx
call fcn.140122054
xor al, al
jmp 0x140057308
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x40], rax
mov r8, rbx
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rsp + 0x1090], r12
mov rcx, rsi
xor r12d, r12d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140056f75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.140021040
xor al, al
jmp 0x140057300
mov qword [rsp + 0x10b0], rbp
mov ebp, r12d
mov qword [rsp + 0x10c0], rdi
movzx edi, word [r14 + 0x14]
add rdi, 0x2c
cmp word [r14 + 6], bp
je 0x140056fd7
add rdi, r14
nop dword [rax + rax]
mov eax, dword [rdi - 4]
test eax, eax
je 0x140056fc8
mov r8d, dword [rdi]
mov r9d, eax
mov edx, dword [rdi - 8]
add r8, rbx
add rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140057010
movzx eax, word [r14 + 6]
inc ebp
add rdi, 0x28
cmp ebp, eax
jne 0x140056fa0
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140057046
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
jmp 0x1400572e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140021040
mov rcx, rbx
call fcn.140122054
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400572ee
mov r9d, reloc.WLDAP32.dll_Ordinal_32
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 0x14005707a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
jmp 0x1400572e1
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 rdi, rax
test rax, rax
jne 0x1400570e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140021040
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 0x1400572e6
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [0x140057330]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14005711a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
jmp 0x1400572e1
lea rcx, str.Data_allocated_n
call fcn.140021040
mov qword [rsp + 0x30], r12
mov r9, rdi
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 0x1400571a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140021040
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, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400572e6
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.140021040
nop dword [rax + rax]
lea rdx, [rsp + 0x10b8]
mov dword [rsp + 0x10b8], r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x10b8]
cmp edx, 0x103
jne 0x1400572da
xorps xmm0, xmm0
mov qword [rsp + 0x20], r12
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rsi
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rsp + 0x78]
cmp rdi, 0x404040
je 0x1400572cc
cmp rdi, 0x606060
je 0x1400572be
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x1400571c0
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14005728c
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140021040
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1400572aa
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140021040
jmp 0x1400572e6
xor edx, edx
mov r8d, 0x100000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov al, 1
jmp 0x1400572f0
lea rcx, str.Wrong_directory_base_relocation_n
call fcn.140021040
jmp 0x1400572e6
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140021040
jmp 0x1400572e6
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140021040
mov rcx, rbx
call fcn.140122054
xor al, al
mov rbp, qword [rsp + 0x10b0]
mov rdi, qword [rsp + 0x10c0]
mov r12, qword [rsp + 0x1090]
mov r15, qword [rsp + 0x1080]
mov r14, qword [rsp + 0x1088]
add rsp, 0x1098
pop rsi
pop rbx
ret