Function at 0x1800501f3
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x1800a8ea8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [0x1800a6ba0]
movabs rdx, 0xe560bea574740c34
mov rax, qword [rax + rdx]
mov rdx, qword [rax + 0x1c08]
mov byte [rdx + 0x90], 1
mov rdi, qword [rax + 0x1c08]
cmp byte [rdi + 0x93], 0
je 0x18004fed6
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180080ac0
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x1800a6d10]
movabs rdx, 0x67ac4013ccd321f8
mov rbx, qword [rax + rdx]
test cl, 2
jne 0x18004ff5c
test cl, 1
je 0x18004feb4
movss xmm6, dword [rdi + 0x10]
mov eax, dword [rbx + 0x1db0]
movaps xmm7, xmm6
test eax, eax
jle 0x18004ff2f
mov rdx, qword [rbx + 0x1db8]
dec eax
lea rax, [rax + rax*2]
shl rax, 4
mov eax, dword [rdx + rax]
movaps xmm7, xmm6
cmp eax, dword [rdi + 8]
jne 0x18004ff2f
movss xmm7, dword [rdi + 0x118]
addss xmm7, xmm6
addss xmm6, dword [rdi + 0x18]
mov bpl, 1
test cl, 4
je 0x18005009a
mov r14, qword [rdi + 0x178]
test r14, r14
je 0x18005009a
call fcn.18004d248
xor ebp, ebp
jmp 0x18005009d
movss xmm0, dword [rdi + 0x104]
movsd xmm1, qword [rdi + 0xd8]
movaps xmm2, xmmword [0x180094140]
unpcklps xmm2, xmm0
addps xmm2, xmm1
movlhps xmm1, xmm2
lea rsi, [rsp + 0x38]
movups xmmword [rsi], xmm1
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movlps qword [rcx], xmm0
movss xmm1, dword [0x18008a1a0]
call fcn.18003256a
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1800326fe
test al, al
je 0x18004feb4
mov rsi, qword [rdi + 0x280]
movss xmm1, dword [0x1800861c0]
mov ecx, 0x1b
call fcn.180021bf7
movss xmm0, dword [rsp + 0x44]
lea r8, [rsp + 0x30]
movss dword [r8 + 4], xmm0
movsd xmm0, qword [rsp + 0x38]
movss dword [r8], xmm0
lea rdx, [rsp + 0x28]
movsd qword [rdx], xmm0
mov dword [rsp + 0x20], 0x3f800000
mov rcx, rsi
mov r9d, eax
call fcn.18003acec
cmp byte [rbx + 0x30ec], 0
je 0x18004feb4
cmp byte [0x1800b5286], 0
jne 0x180050089
mov rax, qword [0x1800a6d18]
movabs rcx, 0x67ac4013ccd3244e
mov cl, byte [rax + rcx]
movabs rdx, 0x67ac4013ccd32464
xor cl, byte [rax + rdx]
mov byte [0x1800b5283], cl
movabs rcx, 0x67ac4013ccd3244f
mov cl, byte [rax + rcx]
movabs rdx, 0x67ac4013ccd32465
xor cl, byte [rax + rdx]
mov byte [0x1800b5284], cl
movabs rcx, 0x67ac4013ccd32450
mov cl, byte [rax + rcx]
movabs rdx, 0x67ac4013ccd32466
xor cl, byte [rax + rdx]
mov byte [0x1800b5285], cl
mov byte [0x1800b5286], 1
lea rcx, [0x1800b5283]
call fcn.18003607c
jmp 0x18004feb4
xor r14d, r14d
movss xmm0, dword [rdi + 0xdc]
movss xmm1, dword [0x1800861c0]
addss xmm1, xmm0
lea rsi, [rsp + 0x38]
movss dword [rsi], xmm7
movss dword [rsi + 4], xmm0
movss dword [rsi + 8], xmm6
movss dword [rsi + 0xc], xmm1
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movlps qword [rcx], xmm0
movss xmm1, dword [0x18008a1a0]
call fcn.18003256a
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1800326fe
test al, al
je 0x1800501d2
mov rsi, qword [rdi + 0x280]
movss xmm1, dword [0x1800861c0]
mov ecx, 0x1b
call fcn.180021bf7
lea rdx, [rsp + 0x38]
movsd xmm0, qword [rdx + 4]
shufps xmm0, xmm0, 0xe1
lea r8, [rsp + 0x30]
movlps qword [r8], xmm0
mov dword [rsp + 0x20], 0x3f800000
mov rcx, rsi
mov r9d, eax
call fcn.18003acec
cmp byte [rbx + 0x30ec], 0
je 0x1800501d2
cmp byte [0x1800b52a9], 0
jne 0x1800501be
mov rax, qword [0x1800a6d18]
movabs r8, 0x67ac4013ccd32491
add r8, rax
movabs r9, 0x67ac4013ccd3247a
add r9, rax
xor ecx, ecx
movabs r10, 0x642c8590b21642c9
lea r11, [0x1800b5287]
mov rax, rcx
mul r10
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0xffffffffffffffe9
add rax, r9
mov al, byte [rcx + rax]
xor al, byte [r8 + rcx]
mov byte [rcx + r11], al
inc rcx
cmp rcx, 0x22
jne 0x180050186
mov byte [0x1800b52a9], 1
lea rdx, [0x1800b5287]
lea rcx, [rsp + 0x38]
xor r8d, r8d
call fcn.180022592
test bpl, bpl
jne 0x18004feb4
call fcn.18004d2c6
movss xmm0, dword [rdi + 0xdc]
movss dword [r14 + 0x1c], xmm0
jmp 0x18004feb4
mov rax, qword [0x1800a6d30]
movabs rcx, 0xe6d30130860df9ce
mov rax, qword [rax + rcx]
mov rax, qword [rax + 0x1c08]
cmp byte [rax + 0x93], 0
je 0x180050219
ret
xor ecx, ecx
cmp dword [rax + 0x184], 1
adc ecx, 5
jmp 0x18004fe5e