Function at 0x18004fd00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movups xmm0, xmmword [0x1800e8158]
mov r14d, dword [0x18010b090]
xor ebx, ebx
movdqa xmm5, xmmword [0x1800f7f30]
mov r8d, ebx
movaps xmmword [rax - 0x28], xmm6
movdqa xmm6, xmmword [0x1800f7a90]
movaps xmmword [rax - 0x38], xmm7
mov eax, dword [0x1800e8178]
movdqa xmm7, xmmword [0x1800f7b20]
mov dword [rbp + 0x1f], eax
movzx eax, word [0x1800e817c]
mov word [rbp + 0x23], ax
movups xmm1, xmmword [0x1800e8168]
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm1
cmp r14d, 2
jl 0x18004fe89
movdqa xmm4, xmmword [str.33333333]
lea rcx, [rbp - 1]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm6
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm6
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm4
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x10
jl 0x18004fd90
cmp r8d, 0x13
jge 0x18004fed8
movsxd rax, r8d
lea r9, [rbp - 1]
lea r9, [r9 + rax*2]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x92492493
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, 0x38
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x33
xor word [r9 - 2], ax
cmp r8d, 0x13
jl 0x18004fea0
cmp byte [0x1800e8805], bl
mov eax, dword [0x1800e8800]
movsd xmm0, qword [0x1800e87f8]
mov dword [rbp - 0x21], eax
movzx eax, word [0x1800e8804]
mov word [rbp - 0x1d], ax
movsd qword [rbp - 0x29], xmm0
je 0x180050024
mov r8d, ebx
cmp r14d, 2
jl 0x18004ffe5
movdqa xmm2, xmmword [0x1800f7ab0]
movdqa xmm1, xmm6
punpckldq xmm1, xmm6
movdqa xmm0, xmm6
punpckhdq xmm0, xmm6
mov r8d, 8
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm6
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm7
psubd xmm6, xmm0
punpckldq xmm1, xmm2
andps xmm6, xmmword [0x1800f7bb0]
movd xmm0, dword [0x1800e87f8]
packuswb xmm6, xmm6
pmuldq xmm1, xmm5
packuswb xmm6, xmm6
paddb xmm6, xmmword [0x1800f7c00]
xorps xmm6, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rbp - 0x29], xmm6
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, dword [rbp - 0x25]
andps xmm2, xmmword [0x1800f7bb0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f7c00]
xorps xmm2, xmm0
movd dword [rbp - 0x25], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop
mov eax, 0x92492493
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x18004fff0
xorps xmm0, xmm0
mov qword [rbp - 9], rbx
lea rax, [rbp - 0x29]
mov ecx, 8
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0x67], rax
lea rsi, [rbp + 0x67]
call fcn.1800b0d10
mov r8d, 8
mov qword [rbp - 0x19], rax
mov rdx, rsi
mov qword [rbp - 0x11], rax
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rbp - 9], rcx
mov rcx, rax
call fcn.1800d7840
movsd xmm0, qword [str.tQA__NJTUSJ_]
lea rax, [rdi + 8]
mov qword [rbp - 0x11], rax
mov eax, dword [0x1800e83a8]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x1800e83ac]
mov byte [rbp - 0x2d], al
movsd qword [rbp - 0x39], xmm0
cmp r14d, 2
jl 0x18005018c
movdqa xmm3, xmmword [0x1800f7a90]
mov ebx, 8
movdqa xmm2, xmmword [0x1800f7ab0]
movdqa xmm1, xmm3
movdqa xmm5, xmmword [0x1800f7f30]
movdqa xmm0, xmm3
mov eax, dword [0x1800f7c00]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmmword [0x1800f7b20]
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmmword [0x1800f7bb0]
pmuldq xmm1, xmm5
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str.tQA__NJTUSJ_]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rbp - 0x39], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x35]
pmulld xmm0, xmmword [0x1800f7b20]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmmword [0x1800f7bb0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
movsxd rax, ebx
lea r8, [rbp - 0x39]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, bl
inc ebx
sub al, cl
add al, 0x33
xor byte [r8 - 1], al
cmp ebx, 0xd
jl 0x1800501a0
lea r8, [rbp - 1]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.18004c100
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret