Function at 0x140015c08
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140024cd0
sub rsp, rax
mov rax, qword [0x140050ed0]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov eax, dword [rcx + 8]
xor edi, edi
xorps xmm0, xmm0
mov dword [rsp + 0x74], eax
movups xmmword [rsp + 0x78], xmm0
mov r8, rdx
mov dword [rsp + 0x30], edi
xor eax, eax
mov dword [rsp + 0x34], edi
mov rbx, rcx
mov qword [rbp - 0x58], rax
lea r12d, [rdi + 0x48]
mov dword [rsp + 0x68], 0x30b0005
lea esi, [rdi + 1]
mov dword [rsp + 0x70], r12d
lea rdx, [rbp - 0x78]
mov byte [rbp - 0x80], sil
mov rcx, r8
mov dword [rsp + 0x6c], 0x10
lea r15d, [rdi + 5]
mov qword [rsp + 0x78], 0x10001000
movups xmmword [rbp - 0x78], xmm0
mov r14d, 0x1000
mov dword [rbp - 0x7c], 0x10000
movups xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x54], 2
call fcn.140015ac8
test eax, eax
jne 0x140015e8d
mov dword [rbp - 0x68], 2
xor eax, eax
mov dword [rsp + 0x38], 0x2e
mov edx, edi
mov byte [rsp + 0x3c], 0x16
mov byte [rsp + 0x3d], 0x4f
mov byte [rsp + 0x3e], 0x16
mov byte [rsp + 0x3f], 0x16
mov byte [rsp + 0x40], 0x1b
mov byte [rsp + 0x41], 0x4a
mov byte [rsp + 0x42], 0x1e
mov byte [rsp + 0x43], 0x1a
mov byte [rsp + 0x44], 3
mov byte [rsp + 0x45], 0x1f
mov byte [rsp + 0x46], 0x4d
mov byte [rsp + 0x47], 0x4b
mov byte [rsp + 0x48], 0x4c
mov byte [rsp + 0x49], 3
mov byte [rsp + 0x4a], 0x1f
mov byte [rsp + 0x4b], 0x1f
mov byte [rsp + 0x4c], 0x4d
mov byte [rsp + 0x4d], 0x17
mov byte [rsp + 0x4e], 3
mov byte [rsp + 0x4f], 0x17
mov byte [rsp + 0x50], r12b
mov byte [rsp + 0x51], 0x4b
mov byte [rsp + 0x52], 0x16
mov byte [rsp + 0x53], 3
mov byte [rsp + 0x54], 0x1e
mov byte [rsp + 0x55], 0x16
mov byte [rsp + 0x56], 0x1e
mov byte [rsp + 0x57], 0x1e
mov byte [rsp + 0x58], 0x1c
mov byte [rsp + 0x59], 0x4c
mov byte [rsp + 0x5a], 0x1f
mov byte [rsp + 0x5b], 0x1e
mov byte [rsp + 0x5c], 0x1a
mov byte [rsp + 0x5d], 0x16
mov byte [rsp + 0x5e], 0x18
mov byte [rsp + 0x5f], 0x1e
mov byte [rsp + 0x60], al
mov al, byte [rsp + 0x3c]
mov al, byte [rsp + rdx + 0x3c]
mov ecx, dword [rsp + 0x38]
xor cl, al
mov byte [rsp + rdx + 0x3c], cl
add rdx, rsi
cmp rdx, 0x24
jb 0x140015d91
lea rdx, [rbp - 0x64]
mov byte [rsp + 0x60], dil
lea rcx, [rsp + 0x3c]
call fcn.140015ac8
test eax, eax
jne 0x140015e8d
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
lea r8d, [rax + 0x10]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140015e8d
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, 0x38
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140015e8d
add dword [rbx + 8], esi
lea rcx, [rbp - 0x50]
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx]
lea r9, [rsp + 0x34]
mov r8d, r14d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015e8d
cmp word [rbp - 0x50], r15w
jne 0x140015e8d
cmp byte [rbp - 0x4e], 0xc
jne 0x140015e8d
cmp byte [rbp - 0x4d], 3
jne 0x140015e8d
movzx eax, word [rbp - 0x48]
cmp eax, dword [rsp + 0x34]
jne 0x140015e8d
mov eax, 0x100
cmp word [rbp - 0x38], ax
ja 0x140015e8d
movzx ecx, word [rbp - 0x38]
lea rdx, [rcx + 5]
and rdx, 0xfffffffffffffffc
sub rdx, rcx
sub rdx, 2
mov edx, edx
add rdx, rcx
cmp dword [rbp + rdx - 0x36], esi
jne 0x140015e8d
cmp word [rbp + rdx - 0x32], di
jne 0x140015e8d
xor eax, eax
jmp 0x140015e8f
mov eax, esi
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.140023da0
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret