Function at 0x1001aeb60
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x80]
mov qword [rbp - 0x18], rcx
mov dword [rbp - 8], edx
mov dword [rbp - 0x10], r8d
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x40]
mov qword [rbp - 0x48], rax
mov eax, dword [rbp - 8]
cmp eax, dword [rbp - 0x10]
jle 0x1001aeb90
add qword [rbp - 0x48], 1
nop dword [rax]
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x38]
mov dword [rbp - 0x3c], eax
mov eax, dword [rbp - 0x10]
sub eax, 1
test eax, eax
jl 0x1001aec24
mov dword [rbp - 0x1c], 0xffffffff
nop dword [rax + rax]
add dword [rbp - 0x1c], 1
mov rdx, qword [rbp - 0x48]
movzx ecx, byte [rdx + 2]
mov edx, dword [rbp - 0x3c]
shl edx, 5
xor ecx, edx
and ecx, 0x3fff
mov dword [rbp - 0x3c], ecx
mov r9, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov ecx, dword [rdx + 0x94]
mov edx, dword [rbp - 0x48]
and edx, ecx
and edx, edx
mov r8, qword [rbp - 0x38]
mov ecx, dword [rbp - 0x3c]
mov rcx, qword [r8 + rcx*8]
mov qword [r9 + rdx*8], rcx
mov r8, qword [rbp - 0x38]
mov ecx, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov qword [r8 + rcx*8], rdx
add qword [rbp - 0x48], 1
cmp eax, dword [rbp - 0x1c]
jg 0x1001aebc8
nop
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
mov qword [rdx + 0x28], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x38]
mov qword [rdx + 0x30], rax
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 0x3c]
mov dword [rdx + 0x38], eax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x48]
mov qword [rax + 0x40], rdx
mov rax, qword [rbp - 0x18]
cmp byte [rax + 8], 0
je 0x1001aec9e
movsxd rax, dword [rbp - 8]
mov rdx, qword [rbp - 0x18]
add qword [rdx + 0x70], rax
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 8]
add dword [rax + 0x78], edx
mov rax, qword [rbp - 0x18]
cmp byte [rax + 0x54], 0
je 0x1001aecf8
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rax + 0x70]
cmp rax, qword [rdx + 0x68]
jb 0x1001aecf8
mov rcx, qword [rbp - 0x18]
call fcn.1001af370
nop
jmp 0x1001aecf8
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 0x70]
mov rax, qword [rbp - 0x48]
sub rax, rdx
mov rdx, qword [rbp - 0x18]
movsxd rdx, dword [rdx + 0x98]
cmp rax, rdx
jl 0x1001aecf8
mov rax, qword [rbp - 0x18]
mov byte [rax + 8], 1
mov rax, qword [rbp - 0x18]
movsxd rdx, dword [rax + 0x98]
mov rax, qword [rbp - 0x48]
sub rax, rdx
mov rdx, qword [rbp - 0x18]
sub rax, qword [rdx + 0x70]
mov dword [rbp - 0x20], eax
movsxd rax, dword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add qword [rdx + 0x70], rax
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 0x20]
add dword [rdx + 0x78], eax
mov rax, qword [rbp - 0x18]
cmp qword [rax + 0x58], 0
je 0x1001aed58
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 8]
add dword [rdx + 0x20], eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x20]
and eax, 0xfff
jne 0x1001aed58
mov rax, qword [rbp - 0x18]
cvtsi2ss xmm0, dword [rax + 0x20]
mulss xmm0, dword [0x100ca8a70]
mov rax, qword [rbp - 0x18]
cvtsi2ss xmm1, qword [rax + 0x88]
divss xmm0, xmm1
cvtss2si rax, xmm0
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x60]
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x18]
call qword [rax + 0x58]
nop
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rax + 0x70]
cmp rax, qword [rdx + 0x68]
jb 0x1001aed74
mov rcx, qword [rbp - 0x18]
call fcn.1001af370
nop
lea rsp, [rbp]
pop rbp
ret