Function at 0x1400aaf10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x58
mov qword [rax + 8], rbp
xor edi, edi
mov rbx, rcx
mov qword [rax + 0x10], rsi
mov ebp, edi
mov qword [rax + 0x18], r12
mov esi, edi
mov qword [rax - 0x18], r15
cmp dword [rcx + 0x28], edi
je 0x1400aafba
mov r9d, edi
nop
mov r11, qword [rbx + 0x30]
mov r8d, edi
lea r10, [r9 + r11]
nop dword [rax + rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r9 + r11]
xor byte [rdx + r10 + 4], cl
cmp r8d, 0x28
jb 0x1400aaf50
mov r11, qword [rbx + 0x30]
mov r8d, edi
movzx eax, word [r11 + r9 + 4]
lea r10, [r11 + r9]
cmp ebp, eax
cmovge eax, ebp
mov ebp, eax
nop word [rax + rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r11 + r9]
xor byte [rdx + r10 + 4], cl
cmp r8d, 0x28
jb 0x1400aaf90
inc esi
add r9, 0x2c
cmp esi, dword [rbx + 0x28]
jne 0x1400aaf40
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400aafcf
mov qword [rbx], rdi
call fcn.14000d9c0
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400aafe5
mov qword [rbx + 0x18], rdi
call fcn.14000d9c0
mov qword [rbx + 0x20], rdi
lea r15d, [rbp + 1]
mov byte [rbx + 0x64], dil
mov edx, r15d
mov rcx, rbx
call fcn.140022390
mov edx, dword [rbx + 0x28]
mov esi, edi
test edx, edx
jle 0x1400ab0ac
nop word [rax + rax]
mov r11, qword [rbx + 0x30]
mov r8d, edi
movsxd rax, esi
imul r9, rax, 0x2c
lea r10, [r9 + r11]
nop dword [rax]
nop word [rax + rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r9 + r11]
xor byte [rdx + r10 + 4], cl
cmp r8d, 0x28
jb 0x1400ab030
mov rax, qword [rbx + 0x30]
mov r8d, edi
mov rcx, qword [rbx + 8]
movzx edx, word [r9 + rax + 4]
mov eax, dword [r9 + rax + 8]
mov dword [rcx + rdx*4], eax
mov rax, qword [rbx + 0x20]
mov word [rax + rdx*2], si
mov r11, qword [rbx + 0x30]
lea r10, [r9 + r11]
nop dword [rax + rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r9 + r11]
xor byte [rdx + r10 + 4], cl
cmp r8d, 0x28
jb 0x1400ab080
mov edx, dword [rbx + 0x28]
inc esi
cmp esi, edx
jl 0x1400ab010
mov r8d, dword [rbx + 0x18]
mov r12d, 0xffff
cmp r8d, 0x20
jg 0x1400ab0c2
mov rax, qword [rbx + 0x38]
jmp 0x1400ab0de
mov rax, qword [rbx + 0x20]
movzx ecx, word [rax + 0x40]
cmp cx, r12w
jne 0x1400ab0d6
mov rax, qword [rbx + 0x38]
jmp 0x1400ab0de
imul rax, rcx, 0x2c
add rax, qword [rbx + 0x30]
test rax, rax
je 0x1400ab2bb
movsxd rax, edx
imul rcx, rax, 0x2c
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x88], r14
cmp word [rcx + rax - 0x28], 9
je 0x1400ab16a
mov ecx, dword [rbx + 0x2c]
lea ebp, [rdx + 1]
cmp ebp, ecx
jle 0x1400ab167
test ecx, ecx
je 0x1400ab11b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1400ab120
mov eax, 8
cmp eax, ebp
mov esi, ebp
cmovg esi, eax
cmp esi, ecx
jle 0x1400ab167
movsxd rax, esi
imul rcx, rax, 0x2c
call fcn.14000d710
mov rdx, qword [rbx + 0x30]
mov r14, rax
test rdx, rdx
je 0x1400ab15c
movsxd rcx, dword [rbx + 0x28]
imul r8, rcx, 0x2c
mov rcx, rax
call fcn.14007b250
mov rcx, qword [rbx + 0x30]
call fcn.14000d9c0
mov qword [rbx + 0x30], r14
mov dword [rbx + 0x2c], esi
mov r8d, dword [rbx + 0x18]
mov dword [rbx + 0x28], ebp
cmp r8d, 0x20
jg 0x1400ab176
mov rax, qword [rbx + 0x38]
jmp 0x1400ab192
mov rax, qword [rbx + 0x20]
movzx ecx, word [rax + 0x40]
cmp cx, r12w
jne 0x1400ab18a
mov rax, qword [rbx + 0x38]
jmp 0x1400ab192
imul rax, rcx, 0x2c
add rax, qword [rbx + 0x30]
movups xmm0, xmmword [rax]
mov r8d, edi
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [rax + 0x20]
mov eax, dword [rax + 0x28]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
movups xmmword [rsp + 0x30], xmm1
nop dword [rax + rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [rsp + 0x20]
xor byte [rsp + rdx + 0x24], cl
cmp r8d, 0x28
jb 0x1400ab1c0
movsxd rax, dword [rbx + 0x28]
mov r8d, edi
mov r14, qword [rbx + 0x30]
imul rbp, rax, 0x2c
lea rsi, [r14 + rbp]
nop dword [rax]
nop word [rax + rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r14 + rbp - 0x2c]
xor byte [rdx + rsi - 0x28], cl
cmp r8d, 0x28
jb 0x1400ab200
mov eax, dword [rsp + 0x48]
mov ecx, 0x40800000
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [r14 + rbp - 0x2c], xmm0
movsd xmm0, qword [rsp + 0x40]
movups xmmword [r14 + rbp - 0x1c], xmm1
movsd qword [r14 + rbp - 0xc], xmm0
mov dword [r14 + rbp - 4], eax
mov eax, 9
mov word [rsi - 0x28], ax
call fcn.14002fc40
mulss xmm0, dword [r14 + rbp - 0x24]
mov r8d, edi
movzx ecx, word [rsi - 0x28]
movss dword [r14 + rbp - 0x24], xmm0
mov rax, qword [rbx + 8]
movss dword [rax + rcx*4], xmm0
movzx edx, word [rbx + 0x28]
movzx ecx, word [rsi - 0x28]
dec dx
mov rax, qword [rbx + 0x20]
mov word [rax + rcx*2], dx
nop
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r14 + rbp - 0x2c]
xor byte [rdx + rsi - 0x28], cl
cmp r8d, 0x28
jb 0x1400ab290
mov r8d, dword [rbx + 0x18]
mov r14, qword [rsp + 0x88]
movzx ecx, word [rbx + 0x5a]
mov r9, rdi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
cmp ecx, r8d
jge 0x1400ab2e7
mov rax, qword [rbx + 0x20]
movzx edx, word [rax + rcx*2]
cmp dx, r12w
je 0x1400ab2e7
imul r9, rdx, 0x2c
add r9, qword [rbx + 0x30]
mov r12, qword [rsp + 0x80]
mov qword [rbx + 0x38], r9
mov dword [rbx + 0x10], edi
test r9, r9
je 0x1400ab34e
mov r8d, edi
nop
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r9]
xor byte [rdx + r9 + 4], cl
cmp r8d, 0x28
jb 0x1400ab300
mov r9, qword [rbx + 0x38]
mov r8d, edi
mov eax, dword [r9 + 8]
mov dword [rbx + 0x10], eax
nop dword [rax]
movzx eax, r8b
movsxd rdx, r8d
add al, al
lea ecx, [rax + r8]
inc r8d
add cl, byte [r9]
xor byte [rdx + r9 + 4], cl
cmp r8d, 0x28
jb 0x1400ab330
movsxd r9, r15d
xorps xmm0, xmm0
mov r15, qword [rsp + 0x50]
cmp r9, 4
jl 0x1400ab3ba
mov r8, qword [rbx + 8]
lea rdx, [r9 - 4]
shr rdx, 2
inc rdx
lea rcx, [r8 + 8]
lea rdi, [rdx*4]
nop word [rax + rax]
comiss xmm0, dword [rcx - 8]
jbe 0x1400ab38c
mov eax, dword [rbx + 0x10]
mov dword [rcx - 8], eax
comiss xmm0, dword [rcx - 4]
jbe 0x1400ab398
mov eax, dword [rbx + 0x10]
mov dword [rcx - 4], eax
comiss xmm0, dword [rcx]
jbe 0x1400ab3a2
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
comiss xmm0, dword [rcx + 4]
jbe 0x1400ab3ae
mov eax, dword [rbx + 0x10]
mov dword [rcx + 4], eax
add rcx, 0x10
sub rdx, 1
jne 0x1400ab380
jmp 0x1400ab3d4
test r9, r9
jle 0x1400ab3d9
mov r8, qword [rbx + 8]
comiss xmm0, dword [r8 + rdi*4]
jbe 0x1400ab3d1
mov eax, dword [rbx + 0x10]
mov dword [r8 + rdi*4], eax
inc rdi
cmp rdi, r9
jl 0x1400ab3c3
add rsp, 0x58
pop rdi
pop rbx
ret