Function at 0x140017af0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xec8
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0xe30], xmm15
movdqa xmmword [rbp + 0xe20], xmm14
movdqa xmmword [rbp + 0xe10], xmm13
movdqa xmmword [rbp + 0xe00], xmm12
movdqa xmmword [rbp + 0xdf0], xmm11
movdqa xmmword [rbp + 0xde0], xmm10
movdqa xmmword [rbp + 0xdd0], xmm9
movdqa xmmword [rbp + 0xdc0], xmm8
movdqa xmmword [rbp + 0xdb0], xmm7
movdqa xmmword [rbp + 0xda0], xmm6
mov qword [rbp + 0xd98], 0xfffffffffffffffe
mov r14, r9
mov rax, r8
mov rbx, rcx
mov qword [rbp + 0xc90], rdx
mov qword [rbp + 0xc98], r8
mov qword [rbp + 0xd08], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0xd10], xmm0
mov dword [rbp - 0x30], 0
mov word [rbp - 0x2c], 0
mov dword [rbp - 0x50], 0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], 7
mov byte [rbp - 0x30], 1
lea r8, [rbp - 0x50]
mov rcx, rdx
mov rdx, rax
call fcn.14007cdd0
mov rsi, rdx
test rax, rax
je 0x140017c2e
movzx eax, byte [0x1400f02c0]
mov rcx, qword [0x1400f0220]
test rcx, rcx
jne 0x140017c01
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14001a27f
mov rcx, rax
mov qword [0x1400f0220], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14001a27f
mov qword [rax], rsi
mov qword [rbx], rax
lea rax, [0x1400a9950]
mov qword [rbx + 8], rax
jmp 0x14001814b
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.14007d030
cmp dword [rbp - 0x50], 2
mov qword [rbp + 0xd50], rsi
mov qword [rbp + 0xcb8], r14
jne 0x140017cbb
mov rax, qword [rbp - 0x48]
mov ecx, eax
and ecx, 3
xor r8d, r8d
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140017d24
mov edi, 0
test rcx, rcx
je 0x140017d6a
lea rcx, [rax - 1]
mov qword [rbp + 0xd30], rcx
mov rcx, qword [rax - 1]
mov rax, qword [rax + 7]
mov qword [rbp + 0xd60], rcx
mov qword [rbp + 0xd40], rax
call qword [rax]
mov rax, qword [rbp + 0xd40]
cmp qword [rax + 8], 0
je 0x140017d46
cmp qword [rax + 0x10], 0x11
jae 0x140017d2c
mov r8, qword [rbp + 0xd60]
jmp 0x140017d37
mov r15, qword [rbp - 0x18]
mov qword [rbp - 0x50], 0
lea r8, [rbp - 0x50]
mov rcx, rsi
xor edx, edx
mov r9d, 1
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x140017d1b
xor r8d, r8d
mov edi, 0
sub r15, qword [rbp - 0x50]
cmovb r15, r8
ja 0x140018767
add r15, 0x400
jb 0x140017d6a
mov rax, r15
and rax, 0x1fff
je 0x140017d28
mov ecx, 0x2000
sub rcx, rax
add r15, rcx
setb sil
jmp 0x140017d6d
call qword [sym.imp.kernel32.dll_GetLastError]
xor r8d, r8d
xor edi, edi
jmp 0x140017d6a
xor esi, esi
jmp 0x140017d6d
mov r8, qword [rbp + 0xd60]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400f0220]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400f0220]
xor edx, edx
mov r8, qword [rbp + 0xd30]
call qword [sym.imp.kernel32.dll_HeapFree]
mov r8, qword [rbp + 0xd10]
mov rdi, qword [rbp + 0xd18]
mov sil, 1
mov qword [rbp + 0xd58], rbx
xor ebx, ebx
pxor xmm6, xmm6
lea r12, [0x1400e6844]
mov qword [rbp + 0xca0], r8
mov r14, r8
lea rcx, [rbp + 0xd08]
xor edx, edx
mov r8, r15
call fcn.1400a5460
mov r8, qword [rbp + 0xd10]
mov rdi, qword [rbp + 0xd18]
add r15, 0x400
jae 0x140017cff
jmp 0x140017d6a