Function at 0x180050bf0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xb0
mov eax, dword [0x1800e9bd0]
movups xmm0, xmmword [str.dlxnd]
mov qword [r11 + 0x10], rbx
movups xmm1, xmmword [0x1800e9bc0]
mov qword [r11 + 0x18], rsi
mov esi, dword [0x18010a088]
mov qword [r11 + 0x20], rdi
xor edi, edi
mov dword [rbp + 0x2f], eax
mov ecx, edi
movzx eax, word [0x1800e9bd4]
movaps xmmword [r11 - 0x18], xmm6
mov word [rbp + 0x33], ax
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm1
cmp esi, 2
jl 0x180050d74
movdqa xmm5, xmmword [0x1800f8c90]
lea rdx, [rbp + 0xf]
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm6, xmmword [0x1800f8d20]
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x1800f8e00]
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, 1
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, 1
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 0x180050c80
movaps xmm7, xmmword [rsp + 0x90]
cmp ecx, 0x13
jge 0x180050db1
movsxd rax, ecx
lea r8, [rbp + 0xf]
lea r8, [r8 + rax*2]
nop
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x37
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0x13
jl 0x180050d80
cmp byte [0x1800e99d5], dil
mov eax, dword [0x1800e99d0]
movsd xmm0, qword [0x1800e99c8]
mov dword [rbp - 0x14], eax
movzx eax, word [0x1800e99d4]
mov word [rbp - 0x10], ax
movsd qword [rbp - 0x1c], xmm0
je 0x180050f22
mov r8d, edi
cmp esi, 2
jl 0x180050ee4
movdqa xmm2, xmmword [0x1800f8c90]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f8cb0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, 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
movd xmm0, dword [0x1800e99c8]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f8e40]
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, 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
movd xmm0, dword [rbp - 0x18]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f8e40]
xorps xmm2, xmm0
movd dword [rbp - 0x18], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x1c]
add r9, rax
nop
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
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, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0xe
jl 0x180050ef0
mov ecx, 8
lea rbx, [rbp - 0x1c]
call fcn.1800b2a54
movsd xmm0, qword [str.p_MlRYJNP__6C]
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 [0x1800e9568]
mov dword [rbp - 0x21], eax
movzx eax, byte [0x1800e956c]
mov byte [rbp - 0x1d], al
mov qword [rbp + 7], rcx
mov qword [rbp - 1], rcx
movsd qword [rbp - 0x29], xmm0
jl 0x180051082
movdqa xmm2, xmmword [0x1800f8c90]
mov edi, 8
movdqa xmm4, xmmword [0x1800f8e20]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f8cb0]
movdqa xmm0, xmm2
mov eax, dword [0x1800f8e40]
punpckhdq xmm0, xmm2
punpckldq xmm1, 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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.p_MlRYJNP__6C]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x29], 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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
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, 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, 0xd
jl 0x180051090
mov rdi, qword [rsp + 0xd8]
lea r8, [rbp + 0xf]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.18004d490
add rsp, 0xb0
pop rbp
ret