Function at 0x140009a40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x14002d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r10, rdx
movups xmm0, xmmword [0x1400251a0]
movups xmmword [rsp + 0x20], xmm0
mov eax, dword [0x1400251b0]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1400251b4]
mov word [rsp + 0x34], ax
cmp byte [0x1400251b5], 0
je 0x140009c10
xor r8d, r8d
cmp dword [0x14002d090], 2
jl 0x140009bc7
movdqa xmm4, xmmword [0x140025bc0]
movdqa xmm3, xmmword [0x140025c10]
movdqa xmm5, xmmword [0x140025be0]
movdqa xmm0, xmmword [0x140025c00]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x24]
movdqa xmm6, xmmword [0x140025bf0]
mov edx, dword [rsp + 0x40]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140009ae0
cmp r8d, 0x16
jge 0x140009c10
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, r8b
sub al, dl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x16
jl 0x140009be0
lea rdx, [rsp + 0x20]
mov rcx, r10
call fcn.140016be0
mov rbx, rax
lea rdx, [rsp + 0x40]
call fcn.1400093e0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140009c38
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140018800
lea rdx, [0x140016dc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140009c93
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009c8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009c8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021eb4
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021970
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
ret