Function at 0x1800521e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
movups xmm3, xmmword [0x1800e9358]
xor edi, edi
mov esi, dword [0x18010a088]
movsd xmm0, qword [0x1800e9368]
mov r8d, edi
movaps xmmword [rax - 0x18], xmm6
movsd qword [rax - 0x28], xmm0
mov qword [rax + 0x18], rbx
movups xmmword [rax - 0x38], xmm3
movzx eax, word [0x1800e9370]
mov word [rsp + 0x88], ax
cmp esi, 2
jl 0x180052314
movdqa xmm2, xmmword [0x1800f8c90]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x1800f8cb0]
paddw xmm2, xmmword [0x1800f8e00]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x70], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d20]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x78]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x1800f8e00]
xorps xmm2, xmm0
movq qword [rsp + 0x78], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x70]
lea r9, [r9 + rax*2]
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x37
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0xd
jl 0x180052320
movzx eax, word [0x1800e92f8]
lea rbx, [rsp + 0xb0]
mov word [rsp + 0xb0], ax
mov ecx, 8
movzx eax, byte [0x1800e92fa]
xor byte [rsp + 0xb1], 0x38
xor al, 0x39
mov byte [rsp + 0xb2], al
mov byte [rsp + 0xb0], 0x45
call fcn.1800b2a54
cmp byte [0x1800e91f1], dil
movups xmm0, xmmword [0x1800e91e0]
mov qword [rsp + 0x58], rax
lea rcx, [rax + 8]
mov qword [rax], rbx
movzx eax, word [0x1800e91f0]
mov rbx, qword [rsp + 0xc0]
mov word [rsp + 0x50], ax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
movups xmmword [rsp + 0x40], xmm0
je 0x18005255f
cmp esi, 2
jl 0x180052522
movdqa xmm0, xmmword [0x1800f8e40]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x1800f8c90]
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm6, xmmword [0x1800f8d20]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x10
jl 0x180052420
cmp edi, 0x12
jge 0x18005255f
movsxd rax, edi
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x37
add cl, dil
inc edi
xor byte [r8 - 1], cl
cmp edi, 0x12
jl 0x180052530
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.18004dab0
mov rsi, qword [rsp + 0xc8]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rdi
ret