Function at 0x1800514d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movups xmm3, xmmword [0x1800e8390]
xor ebx, ebx
mov esi, dword [0x18010b090]
movsd xmm0, qword [0x1800e83a0]
mov r8d, ebx
movaps xmmword [rax - 0x28], xmm6
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movzx eax, word [0x1800e83a8]
mov word [rbp + 0x2f], ax
movsd qword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x17], xmm3
cmp esi, 2
jl 0x180051603
movdqa xmm2, xmmword [0x1800f7ad0]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f7f40]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f7b60]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x1800f7af0]
paddw xmm2, xmmword [0x1800f7c50]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rbp + 0x17], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f7b60]
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rbp + 0x1f]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x1800f7c50]
xorps xmm2, xmm0
movq qword [rbp + 0x1f], xmm2
movsxd rax, r8d
lea r9, [rbp + 0x17]
lea r9, [r9 + rax*2]
nop
mov eax, 0x4bda12f7
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x37
xor word [r9 - 2], ax
cmp r8d, 0xd
jl 0x180051610
movzx eax, word [0x1800e88b0]
lea r14, [rbp + 0x6f]
mov word [rbp + 0x67], ax
xorps xmm0, xmm0
movzx eax, byte [0x1800e88b2]
mov ecx, 8
xor byte [rbp + 0x68], 0x38
xor al, 0x39
mov byte [rbp + 0x69], al
lea rax, [rbp + 0x67]
mov qword [rbp + 0x6f], rax
mov byte [rbp + 0x67], 0x45
movdqu xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rbx
call fcn.1800b0bd0
mov r8d, 8
mov qword [rbp - 1], rax
mov rdx, r14
mov qword [rbp + 7], rax
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rbp + 0xf], rcx
mov rcx, rax
call fcn.1800d76f0
cmp byte [0x1800e8711], bl
lea rax, [rdi + 8]
movups xmm0, xmmword [str.qvXW]
mov r14, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xd0]
mov qword [rbp + 7], rax
movzx eax, word [0x1800e8710]
mov word [rbp - 9], ax
movups xmmword [rbp - 0x19], xmm0
je 0x18005184d
cmp esi, 2
jl 0x180051816
movdqa xmm0, xmmword [0x1800f7c70]
lea rcx, [rbp - 0x15]
movdqa xmm4, xmmword [0x1800f7ad0]
movdqa xmm3, xmmword [0x1800f7f40]
movdqa xmm5, xmmword [0x1800f7b60]
movdqa xmm6, xmmword [0x1800f7c10]
movdqa xmmword [rbp - 0x29], xmm0
mov edx, dword [rbp - 0x29]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
mov eax, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x180051730
cmp eax, 0x12
jge 0x18005184d
movsxd rax, ebx
lea r8, [rbp - 0x19]
add r8, rax
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, bl
inc ebx
sub al, cl
add al, 0x37
xor byte [r8 - 1], al
cmp ebx, 0x12
jl 0x180051820
lea r8, [rbp + 0x17]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x19]
call fcn.18004c890
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
pop rbx
pop rbp
ret