Function at 0x1400aaa10
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
xor eax, eax
mov rdi, rdx
mov dword [rsp + 0x50], eax
mov rbx, rcx
mov r14d, eax
test rcx, rcx
jne 0x1400aaa39
or eax, 0xffffffff
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
cmp rdx, 8
jb 0x1400aaa2d
cmp rdx, 0x4000
ja 0x1400aaa2d
mov qword [rsp + 0x68], r12
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x28], r13
mov r13, qword [rcx + 8]
test r13, r13
jne 0x1400aaa67
or eax, 0xffffffff
jmp 0x1400aacf0
mov qword [rsp + 0x58], rbp
cmp r12, 0x80
mov qword [rsp + 0x60], rsi
mov ebp, 1
mov rsi, rdx
cmove ebp, eax
shl rsi, 5
mov rcx, rsi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400aaaa5
mov qword [rbx + 8], r13
or eax, 0xffffffff
jmp 0x1400aace6
mov r8, rsi
mov qword [rsp + 0x20], r15
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0x10], rdi
movsxd r15, ebp
test r12, r12
je 0x1400aacd5
lea rdi, [r13 + 8]
mov rbp, r12
nop
cmp dword [rdi + 0xc], 0
je 0x1400aab9d
test r15, r15
je 0x1400aaae4
mov esi, dword [rdi + 0x10]
jmp 0x1400aab06
cmp qword [rbx + 0x10], 0x80
mov r8d, dword [rbx + 0x30]
mov edx, dword [rdi + 8]
mov rcx, qword [rdi]
jne 0x1400aaaff
call fcn.1400aa5c0
jmp 0x1400aab04
call fcn.1400aa4d0
mov esi, eax
xor edx, edx
mov eax, esi
div qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov r14d, edx
shl r14, 5
cmp dword [r14 + rax + 0x14], 0
jne 0x1400aab50
movups xmm0, xmmword [rdi - 8]
movups xmmword [r14 + rax], xmm0
movups xmm1, xmmword [rdi + 8]
movups xmmword [r14 + rax + 0x10], xmm1
mov rax, qword [rbx + 8]
mov qword [r14 + rax], 0
mov rax, qword [rbx + 8]
mov dword [r14 + rax + 0x18], esi
mov r14d, dword [rsp + 0x50]
jmp 0x1400aab9d
mov ecx, 0x20
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
je 0x1400aab94
mov rax, qword [rdi]
mov qword [rdx + 8], rax
mov eax, dword [rdi + 8]
mov dword [rdx + 0x10], eax
mov dword [rdx + 0x18], esi
mov rax, qword [rbx + 8]
mov rcx, qword [r14 + rax]
mov qword [rdx], rcx
mov dword [rdx + 0x14], 1
mov rax, qword [rbx + 8]
mov qword [r14 + rax], rdx
mov r14d, dword [rsp + 0x50]
jmp 0x1400aab9d
or r14d, 0xffffffff
mov dword [rsp + 0x50], r14d
add rdi, 0x20
sub rbp, 1
jne 0x1400aaad0
test r12, r12
je 0x1400aacd5
mov rsi, r13
nop word [rax + rax]
mov r10, qword [rsi]
test r10, r10
je 0x1400aacc7
nop dword [rax]
mov rdi, qword [r10]
test r15, r15
je 0x1400aabde
mov ecx, dword [r10 + 0x18]
jmp 0x1400aac50
cmp qword [rbx + 0x10], 0x80
jne 0x1400aabfd
mov r8d, dword [rbx + 0x30]
mov edx, dword [r10 + 0x10]
mov rcx, qword [r10 + 8]
call fcn.1400aa5c0
mov ecx, eax
jmp 0x1400aac50
movsxd rcx, dword [r10 + 0x10]
mov r8, qword [r10 + 8]
test ecx, ecx
jle 0x1400aac4e
test r8, r8
je 0x1400aac4e
mov eax, dword [rbx + 0x30]
xor edx, edx
mov r9, rcx
test ecx, ecx
jle 0x1400aac3c
nop word [rax + rax]
movzx ecx, byte [rdx + r8]
inc rdx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp rdx, r9
jl 0x1400aac20
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
jmp 0x1400aac50
xor ecx, ecx
xor edx, edx
mov eax, ecx
div qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov r8d, edx
shl r8, 5
add rax, r8
cmp dword [rax + 0x14], 0
jne 0x1400aaca9
movups xmm0, xmmword [r10]
movups xmmword [rax], xmm0
movups xmm1, xmmword [r10 + 0x10]
movups xmmword [rax + 0x10], xmm1
mov rax, qword [rbx + 8]
mov qword [r8 + rax], 0
mov rax, qword [rbx + 8]
mov dword [r8 + rax + 0x14], 1
mov rax, qword [rbx + 8]
mov dword [r8 + rax + 0x18], ecx
mov rcx, r10
call qword [case.0x1400ca6fe.0]
jmp 0x1400aacbb
mov rax, qword [rax]
mov qword [r10], rax
mov dword [r10 + 0x18], ecx
mov rax, qword [rbx + 8]
mov qword [r8 + rax], r10
mov r10, rdi
test rdi, rdi
jne 0x1400aabd0
add rsi, 0x20
sub r12, 1
jne 0x1400aabc0
mov rcx, r13
call qword [case.0x1400ca6fe.0]
mov r15, qword [rsp + 0x20]
mov eax, r14d
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret