Function at 0x180005ae0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1804e4010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movzx eax, word [0x18005cb40]
movsd xmm0, qword [str.F___a_aC]
movzx r9d, byte [0x18005cb42]
mov word [rbp - 1], ax
mov eax, dword [0x18005cb30]
mov dword [rbp + 0x17], eax
movzx eax, word [0x18005cb34]
movsd qword [rbp - 9], xmm0
movups xmm0, xmmword [0x18005cb20]
mov word [rbp + 0x1b], ax
movzx eax, byte [0x18005cb36]
mov byte [rbp + 1], r9b
mov byte [rbp + 0x1d], al
movups xmmword [rbp + 7], xmm0
test al, al
je 0x180005d1f
xor ecx, ecx
cmp dword [0x1804e4018], 2
jl 0x180005cdd
movdqa xmm0, xmmword [str.11111111111111116666666666666666]
lea rdx, [rbp + 0xb]
movdqa xmm5, xmmword [0x1804d95c0]
mov eax, 5
movdqa xmm4, xmmword [0x1804d9800]
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x1804d9660]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, dword [rbp - 0x19]
movaps xmmword [rsp + 0x60], xmm8
movd xmm8, eax
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 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 ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1804d96a0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1804d96a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x180005bc0
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x17
jge 0x180005d1f
movsxd rax, ecx
lea r8, [rbp + 7]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x17
jl 0x180005cf0
test r9b, r9b
je 0x180005d54
xor byte [rbp - 9], 0x31
xor byte [rbp - 8], 0x32
xor byte [rbp - 7], 0x33
xor byte [rbp - 6], 0x34
xor byte [rbp - 5], 0x35
xor byte [rbp - 4], 0x36
xor byte [rbp - 3], 0x37
xor byte [rbp - 2], 0x38
xor byte [rbp - 1], 0x39
xor byte [rbp], 0x3a
xor r9b, 0x3b
mov byte [rbp + 1], r9b
lea rdx, [rbp + 7]
lea rcx, [rbp - 9]
call fcn.180005970
test rax, rax
jne 0x180005d6e
mov dword [0x1804e6068], eax
jmp 0x180005d77
mov eax, dword [rax + 4]
mov dword [0x1804e6068], eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180056ae0
add rsp, 0x90
pop rbp
ret