Function at 0x180051c90
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xb0
mov eax, dword [0x1800eaa50]
movups xmm0, xmmword [str.fbvlfyZPm__]
mov qword [r11 + 0x10], rbx
movups xmm1, xmmword [0x1800eaa40]
mov qword [r11 + 0x18], rsi
mov esi, dword [0x18010b088]
mov qword [r11 + 0x20], rdi
xor edi, edi
mov dword [rbp + 0x2f], eax
mov ecx, edi
movzx eax, word [0x1800eaa54]
movaps xmmword [r11 - 0x18], xmm6
mov word [rbp + 0x33], ax
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm1
cmp esi, 2
jl 0x180051e14
movdqa xmm5, xmmword [0x1800f9b20]
lea rdx, [rbp + 0xf]
movdqa xmm4, xmmword [0x1800f9d80]
movdqa xmm6, xmmword [0x1800f9b90]
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x1800f9c90]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x10
jl 0x180051d20
movaps xmm7, xmmword [rsp + 0x90]
cmp ecx, 0x13
jge 0x180051e52
movsxd rax, ecx
lea r8, [rbp + 0xf]
lea r8, [r8 + rax*2]
nop
mov eax, 0x4d4873ed
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x35
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0x13
jl 0x180051e20
cmp byte [0x1800eaa05], dil
mov eax, dword [0x1800eaa00]
movsd xmm0, qword [0x1800ea9f8]
mov dword [rbp - 0x14], eax
movzx eax, word [0x1800eaa04]
mov word [rbp - 0x10], ax
movsd qword [rbp - 0x1c], xmm0
je 0x180051fc3
mov r8d, edi
cmp esi, 2
jl 0x180051f85
movdqa xmm2, xmmword [0x1800f9b20]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f9d80]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f9b40]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x1800f9b90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x1800ea9f8]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f9ca0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f9ce0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x1c], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
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 [0x1800f9b90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x18]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f9ca0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f9ce0]
xorps xmm2, xmm0
movd dword [rbp - 0x18], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x1c]
add r9, rax
nop
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x35
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0xe
jl 0x180051f90
mov ecx, 8
lea rbx, [rbp - 0x1c]
call fcn.1800b31c4
movsd xmm0, qword [0x1800eac88]
cmp esi, 2
movaps xmm6, xmmword [rsp + 0xa0]
mov rsi, qword [rsp + 0xd0]
lea rcx, [rax + 8]
mov qword [rax], rbx
mov rbx, qword [rsp + 0xc8]
mov qword [rbp - 9], rax
mov eax, dword [0x1800eac90]
mov dword [rbp - 0x21], eax
movzx eax, byte [0x1800eac94]
mov byte [rbp - 0x1d], al
mov qword [rbp + 7], rcx
mov qword [rbp - 1], rcx
movsd qword [rbp - 0x29], xmm0
jl 0x180052123
movdqa xmm2, xmmword [0x1800f9b20]
mov edi, 8
movdqa xmm4, xmmword [0x1800f9d80]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f9b40]
movdqa xmm0, xmm2
mov eax, dword [0x1800f9ce0]
punpckhdq xmm0, xmm2
punpckldq xmm1, 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 [0x1800f9b90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f9ca0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1800eac88]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x29], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f9b90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f9ca0]
movd xmm1, dword [rbp - 0x25]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x25], xmm2
movsxd rax, edi
lea r8, [rbp - 0x29]
add r8, rax
nop dword [rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x35
add cl, dil
inc edi
xor byte [r8 - 1], cl
cmp edi, 0xd
jl 0x180052130
mov rdi, qword [rsp + 0xd8]
lea r8, [rbp + 0xf]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.18004e540
add rsp, 0xb0
pop rbp
ret