Function at 0x1400211a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rcx
call fcn.140038000
movups xmm0, xmmword [str.ZVLT]
movups xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [0x14009a0b0]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x14009a0b8]
mov word [rsp + 0x38], ax
cmp byte [0x14009a0b9], 0
je 0x14002136c
xor ecx, ecx
cmp dword [0x1400d0550], 2
jl 0x140021332
movdqa xmm5, xmmword [0x14009b7a0]
movdqa xmm4, xmmword [0x14009b7f0]
movdqa xmm6, xmmword [0x14009b7c0]
movdqa xmm0, xmmword [str.9999999999999999]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x24]
mov r8d, dword [rsp + 0x40]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009b7d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009b7d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x140021230
cmp ecx, 0x1a
jge 0x14002136c
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1a
jl 0x140021340
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140021390
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140006680
nop
lea rcx, [rsp + 0x40]
call fcn.140064a30
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400213f6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400213f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400213f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089268
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
xor r8d, r8d
lea rdx, [0x140098a75]
lea rcx, [rsp + 0x20]
call fcn.140006680
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140059e0c
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14002146a
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021465
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021465
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089268
mov rax, qword [0x1400d96d8]
cmp rax, 5
jb 0x1400214b0
lea rbx, [0x1400d96c0]
cmp rax, 0xf
cmova rbx, qword [0x1400d96c0]
mov qword [0x1400d96d0], 5
mov r8d, 5
lea rdx, str.valid
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 5], 0
jmp 0x1400214cb
lea r9, str.valid
xor r8d, r8d
lea edx, [r8 + 5]
lea rcx, [0x1400d96c0]
call fcn.140009b80
nop
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
ret