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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140024930
sub rsp, rax
mov rax, qword [0x140051af8]
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 esi, [rdi + 1]
mov dword [rsp + 0x68], 0x30b0005
lea rdx, [rbp - 0x78]
mov byte [rbp - 0x80], sil
mov rcx, r8
mov dword [rsp + 0x6c], 0x10
lea r15d, [rdi + 5]
mov dword [rsp + 0x70], 0x48
movups xmmword [rbp - 0x78], xmm0
mov r14d, 0x1000
mov qword [rsp + 0x78], 0x10001000
movups xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x7c], 0x10000
mov dword [rbp - 0x54], 2
call fcn.140015514
test eax, eax
jne 0x1400159dd
mov dword [rbp - 0x68], 2
mov cl, 0x2d
mov dword [rsp + 0x38], 0x4a
mov dl, 0x31
mov eax, dword [rsp + 0x38]
mov r8b, 0x30
xor al, 0x38
mov byte [rsp + 0x3c], al
mov eax, dword [rsp + 0x38]
add al, sil
xor al, 0x61
mov byte [rsp + 0x3d], al
mov eax, dword [rsp + 0x38]
add al, 2
xor al, 0x38
mov byte [rsp + 0x3e], al
mov eax, dword [rsp + 0x38]
add al, 3
xor al, 0x38
mov byte [rsp + 0x3f], al
mov eax, dword [rsp + 0x38]
add al, 4
xor al, 0x35
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x38]
add al, r15b
xor al, 0x64
mov byte [rsp + 0x41], al
mov eax, dword [rsp + 0x38]
add al, 6
xor al, r8b
mov byte [rsp + 0x42], al
mov eax, dword [rsp + 0x38]
add al, 7
xor al, 0x34
mov byte [rsp + 0x43], al
mov eax, dword [rsp + 0x38]
add al, 8
xor al, cl
mov byte [rsp + 0x44], al
mov eax, dword [rsp + 0x38]
add al, 9
xor al, dl
mov byte [rsp + 0x45], al
mov eax, dword [rsp + 0x38]
add al, 0xa
xor al, 0x63
mov byte [rsp + 0x46], al
mov eax, dword [rsp + 0x38]
add al, 0xb
xor al, 0x65
mov byte [rsp + 0x47], al
mov eax, dword [rsp + 0x38]
add al, 0xc
xor al, 0x62
mov byte [rsp + 0x48], al
mov eax, dword [rsp + 0x38]
add al, 0xd
xor al, cl
mov byte [rsp + 0x49], al
mov eax, dword [rsp + 0x38]
add al, 0xe
xor al, dl
mov byte [rsp + 0x4a], al
mov eax, dword [rsp + 0x38]
add al, 0xf
xor al, dl
mov byte [rsp + 0x4b], al
mov eax, dword [rsp + 0x38]
add al, 0x10
xor al, 0x63
mov byte [rsp + 0x4c], al
mov eax, dword [rsp + 0x38]
add al, 0x11
xor al, 0x39
mov byte [rsp + 0x4d], al
mov eax, dword [rsp + 0x38]
add al, 0x12
xor al, cl
mov byte [rsp + 0x4e], al
mov eax, dword [rsp + 0x38]
add al, 0x13
xor al, 0x39
mov byte [rsp + 0x4f], al
mov eax, dword [rsp + 0x38]
add al, 0x14
xor al, 0x66
mov byte [rsp + 0x50], al
mov eax, dword [rsp + 0x38]
add al, 0x15
xor al, 0x65
mov byte [rsp + 0x51], al
mov eax, dword [rsp + 0x38]
add al, 0x16
xor al, 0x38
mov byte [rsp + 0x52], al
mov eax, dword [rsp + 0x38]
add al, 0x17
xor al, cl
mov byte [rsp + 0x53], al
mov eax, dword [rsp + 0x38]
add al, 0x18
xor al, r8b
mov byte [rsp + 0x54], al
mov eax, dword [rsp + 0x38]
add al, 0x19
xor al, 0x38
mov byte [rsp + 0x55], al
mov eax, dword [rsp + 0x38]
add al, 0x1a
xor al, r8b
mov byte [rsp + 0x56], al
mov eax, dword [rsp + 0x38]
add al, 0x1b
xor al, r8b
mov byte [rsp + 0x57], al
mov eax, dword [rsp + 0x38]
add al, 0x1c
xor al, 0x32
mov byte [rsp + 0x58], al
mov eax, dword [rsp + 0x38]
add al, 0x1d
xor al, 0x62
mov byte [rsp + 0x59], al
mov eax, dword [rsp + 0x38]
add al, 0x1e
xor al, dl
mov edx, edi
mov byte [rsp + 0x5a], al
mov eax, dword [rsp + 0x38]
add al, 0x1f
xor al, r8b
mov byte [rsp + 0x5b], al
mov eax, dword [rsp + 0x38]
add al, 0x20
xor al, 0x34
mov byte [rsp + 0x5c], al
mov eax, dword [rsp + 0x38]
add al, 0x21
xor al, 0x38
mov byte [rsp + 0x5d], al
mov eax, dword [rsp + 0x38]
add al, 0x22
xor al, 0x36
mov byte [rsp + 0x5e], al
mov eax, dword [rsp + 0x38]
add al, 0x23
xor al, r8b
mov byte [rsp + 0x5f], al
xor eax, eax
mov byte [rsp + 0x60], al
mov al, byte [rsp + 0x3c]
mov al, byte [rsp + rdx + 0x3c]
mov ecx, dword [rsp + 0x38]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x3c], cl
add rdx, rsi
cmp rdx, 0x24
jb 0x1400158df
lea rdx, [rbp - 0x64]
mov byte [rsp + 0x60], dil
lea rcx, [rsp + 0x3c]
call fcn.140015514
test eax, eax
jne 0x1400159dd
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 0x1400159dd
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 0x1400159dd
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 0x1400159dd
cmp word [rbp - 0x50], r15w
jne 0x1400159dd
cmp byte [rbp - 0x4e], 0xc
jne 0x1400159dd
cmp byte [rbp - 0x4d], 3
jne 0x1400159dd
movzx eax, word [rbp - 0x48]
cmp eax, dword [rsp + 0x34]
jne 0x1400159dd
mov eax, 0x100
cmp word [rbp - 0x38], ax
ja 0x1400159dd
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 0x1400159dd
cmp word [rbp + rdx - 0x32], di
jne 0x1400159dd
xor eax, eax
jmp 0x1400159df
mov eax, esi
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.1400242f0
mov rbx, qword [rsp + 0x1100]
add rsp, 0x10c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret