Function at 0x14010a594
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [rcx + 0x170]
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
mov r14, r9
mov rsi, qword [rsp + 0xb0]
mov r15, r8
mov qword [rsp + 0x20], rax
add rcx, rsi
movabs rax, 0xfffffffe0
mov rbx, rdx
cmp rcx, rax
ja 0x14010a88d
cmp rcx, rsi
jb 0x14010a88d
mov qword [rdi + 0x38], rcx
cmp dword [rdi + 0x184], 0
je 0x14010a611
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.14010c7ac
and dword [rdi + 0x184], 0
mov ebp, dword [rdi + 0x180]
mov dword [rsp + 0x90], ebp
test ebp, ebp
je 0x14010a663
test rsi, rsi
je 0x14010a647
mov ecx, ebp
dec rsi
mov al, byte [rcx + rdi + 0x10]
xor al, byte [r15]
inc r15
mov byte [r14], al
inc r14
xor byte [rcx + rdi + 0x40], al
inc ebp
and ebp, 0xf
jne 0x14010a622
mov dword [rsp + 0x90], ebp
test ebp, ebp
jne 0x14010a880
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.14010c7ac
mov r13d, dword [rdi + 0xc]
bswap r13d
cmp rsi, 0xc00
jb 0x14010a768
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov r12, rdx
shr r12, 0xb
imul rax, r12, 0xfffffffffffff400
mov qword [rsp + 0x30], r12
add rsi, rax
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x28], SetErrorInfo
mov r8, rbx
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rsp + 0x20]
inc r13d
xor ebp, ebp
mov eax, r13d
mov rsi, r15
bswap eax
mov dword [rdi + 0xc], eax
sub rsi, r14
lea rbx, [r14 + rbp]
mov r8d, 8
lea rdx, [rsi + rbx]
lea rcx, [rsp + 0x38]
call fcn.1400df6a0
mov rax, rbp
mov r8d, 8
shr rax, 3
mov rcx, rbx
mov rdx, qword [rdi + rax*8 + 0x10]
xor rdx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x40]
call fcn.1400df6a0
add rbp, 8
cmp rbp, 0x10
jb 0x14010a6cc
mov rbx, qword [rsp + 0x98]
add r14, 0x10
add r15, 0x10
sub qword [rsp + 0x28], 1
jne 0x14010a6ab
lea r8, [r14 - 0xc00]
mov r9d, 0xc00
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.14010c6f4
sub qword [rsp + 0x30], 1
jne 0x14010a6a2
mov rsi, qword [rsp + 0xb0]
mov ebp, dword [rsp + 0x90]
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x28], rax
je 0x14010a841
cmp rsi, 0x10
jb 0x14010a82b
mov r12, rsi
shr r12, 4
imul rax, r12, 0xfffffffffffffff0
mov qword [rsp + 0x30], r12
add rsi, rax
mov r8, rbx
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rsp + 0x20]
inc r13d
xor ebp, ebp
mov eax, r13d
mov r12, r15
bswap eax
mov dword [rdi + 0xc], eax
sub r12, r14
lea rbx, [r14 + rbp]
mov r8d, 8
lea rdx, [r12 + rbx]
lea rcx, [rsp + 0x40]
call fcn.1400df6a0
mov rax, rbp
mov r8d, 8
shr rax, 3
mov rcx, rbx
mov rdx, qword [rdi + rax*8 + 0x10]
xor rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x38]
call fcn.1400df6a0
add rbp, 8
cmp rbp, 0x10
jb 0x14010a7b8
mov rbx, qword [rsp + 0x98]
add r14, 0x10
add r15, 0x10
sub qword [rsp + 0x30], 1
jne 0x14010a797
mov ebp, dword [rsp + 0x90]
mov rax, qword [rsp + 0x28]
mov r8, r14
lea rdx, [rdi + 0x60]
sub r8, rax
lea rcx, [rdi + 0x40]
mov r9, rax
call fcn.14010c6f4
test rsi, rsi
je 0x14010a880
mov r8, qword [rsp + 0x98]
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rsp + 0x20]
lea eax, [r13 + 1]
bswap eax
mov dword [rdi + 0xc], eax
mov edx, ebp
inc ebp
movzx ecx, byte [rdx + r15]
movzx eax, byte [rdi + rdx + 0x10]
xor ecx, eax
mov byte [rdx + r14], cl
xor byte [rdx + rdi + 0x40], cl
sub rsi, 1
jne 0x14010a862
mov dword [rdi + 0x180], ebp
mov eax, 1
jmp 0x14010a88f
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret