Function at 0x18001a220
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
vmovaps xmmword [rsp + 0x50], xmm6
mov rdi, rcx
vmovaps xmmword [rsp + 0x40], xmm7
vmovaps xmmword [rsp + 0x30], xmm8
test rcx, rcx
je 0x18001a52d
cmp rcx, qword [0x180b5ef08]
je 0x18001a52d
cmp byte [0x1802386ab], 0
mov ebx, 8
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [0x1802386a0]
mov r10, qword [rax + 0x208]
mov eax, dword [0x1802386a8]
mov dword [rsp + 0x28], eax
vmovsd qword [rsp + 0x20], xmm0
je 0x18001a38a
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm6, xmmword [0x1802498c0]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, dword [0x1802386a0]
vpxor xmm1, xmm2, xmm0
vmovd dword [rsp + 0x20], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vmovd xmm1, dword [rsp + 0x24]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vpxor xmm0, xmm2, xmm1
vmovd dword [rsp + 0x24], xmm0
mov r8d, ebx
lea r9, [rsp + 0x28]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x18001a360
lea rdx, [rsp + 0x20]
mov rcx, rdi
call r10
test eax, eax
je 0x18001a52d
mov rax, qword [0x180b60468]
mov ecx, 1
mov qword [rsp + 0x70], rsi
mov rdx, qword [rax + 0xd0]
call rdx
cmp byte [0x1802386ab], 0
mov rsi, rax
mov rcx, qword [0x180b60468]
vmovsd xmm0, qword [0x1802386a0]
mov r9, qword [rcx + 0x48]
mov ecx, dword [0x1802386a8]
mov dword [rsp + 0x28], ecx
vmovsd qword [rsp + 0x20], xmm0
je 0x18001a4e6
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm7, xmmword [0x1802498c0]
mov eax, dword [str.22222222222222223333333333333333]
lea r8, [rsp + 0x28]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, eax
vpaddb xmm1, xmm4, xmm0
vmovd xmm0, dword [0x1802386a0]
vpxor xmm1, xmm1, xmm0
vmovd dword [rsp + 0x20], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vmovd xmm1, dword [rsp + 0x24]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovd xmm0, eax
vpaddb xmm2, xmm4, xmm0
vpxor xmm0, xmm2, xmm1
vmovd dword [rsp + 0x24], xmm0
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
mul ebx
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0xc
jl 0x18001a4c0
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call r9
cmp rsi, rax
mov rbx, rax
sete dil
test rsi, rsi
je 0x18001a510
mov rdx, qword [0x180b60468]
mov rcx, rsi
call qword [rdx + 0x40]
mov rsi, qword [rsp + 0x70]
test rbx, rbx
je 0x18001a527
mov rdx, qword [0x180b60468]
mov rcx, rbx
call qword [rdx + 0x40]
movzx eax, dil
jmp 0x18001a52f
xor al, al
mov rbx, qword [rsp + 0x78]
vmovaps xmm6, xmmword [rsp + 0x50]
vmovaps xmm7, xmmword [rsp + 0x40]
vmovaps xmm8, xmmword [rsp + 0x30]
add rsp, 0x60
pop rdi
ret