Function at 0x180054c10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
movups xmm3, xmmword [0x1800eb5e8]
xor edi, edi
mov esi, dword [0x18010c088]
movsd xmm0, qword [0x1800eb5f8]
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 [0x1800eb600]
mov word [rsp + 0x88], ax
cmp esi, 2
jl 0x180054d4c
movdqa xmm2, xmmword [0x1800fab00]
mov r8d, 8
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fabc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x1800fab20]
paddw xmm2, xmmword [str.11111111]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fabc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x78]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [str.11111111]
xorps xmm2, xmm0
movq qword [rsp + 0x78], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x70]
lea r9, [r9 + rax*2]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x31
xor word [r9 - 2], ax
cmp r8d, 0xd
jl 0x180054d60
movzx eax, word [0x1800ebb38]
lea rbx, [rsp + 0xb0]
mov word [rsp + 0xb0], ax
mov ecx, 8
movzx eax, byte [0x1800ebb3a]
xor byte [rsp + 0xb1], 0x32
xor al, 0x33
mov byte [rsp + 0xb2], al
mov byte [rsp + 0xb0], 0x45
call fcn.1800b4d44
cmp byte [0x1800ebad9], dil
movups xmm0, xmmword [0x1800ebac8]
mov qword [rsp + 0x58], rax
lea rcx, [rax + 8]
mov qword [rax], rbx
movzx eax, word [0x1800ebad8]
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 0x180054fb0
cmp esi, 2
jl 0x180054f6a
movdqa xmm0, xmmword [0x1800fac90]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x1800fab00]
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm6, xmmword [0x1800fabc0]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
nop dword [rax]
nop dword [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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x1800fac70]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x10
jl 0x180054e60
cmp edi, 0x12
jge 0x180054fb0
movsxd rax, edi
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, dil
inc edi
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp edi, 0x12
jl 0x180054f80
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.180050450
mov rsi, qword [rsp + 0xc8]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rdi
ret