Function at 0x140058300
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
movaps xmmword [rax - 0x18], xmm6
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rax - 0x30], xmm0
lea rsi, [rsp + 0x78]
movabs rbp, 0xff00ff00ff00ff00
mov qword [rax - 0x28], rbp
mov qword [rax - 0x20], rsi
mov rbx, qword [rsi]
xor rbx, rbp
mov qword [rax - 0x30], rbx
xor ecx, ecx
mov qword [rsi], rcx
cmp byte [0x1400e2c30], cl
je 0x14005850d
movups xmm0, xmmword [0x1400c1390]
movups xmmword [rax - 0x48], xmm0
mov eax, dword [0x1400c13a0]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400c13a4]
mov word [rsp + 0x44], ax
cmp byte [0x1400c13a5], cl
je 0x1400584ec
cmp dword [0x1400e2798], 2
jl 0x1400584b6
movdqa xmm4, xmmword [0x140070170]
movdqa xmm3, xmmword [0x1400c2190]
movdqa xmm5, xmmword [0x1400c2160]
movdqa xmm0, xmmword [0x1400c21c0]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x34]
movdqa xmm6, xmmword [0x1400c2170]
mov r8d, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, ecx
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, 1
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, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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, 1
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, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
mov eax, ecx
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x1400583d0
cmp eax, 0x16
jge 0x1400584ec
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x16
jl 0x1400584c1
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140048bb0
lea rdx, [0x140049660]
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]
lea rcx, [rdi + 0x2e8]
call fcn.140049780
movaps xmm6, xmm0
lea rcx, [rdi + 0x2f0]
call fcn.140049780
addss xmm0, dword [0x1400709b8]
comiss xmm0, xmm6
setae al
xor rbx, rbp
mov qword [rsi], rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [rsp + 0x60]
mov rsp, r11
pop rdi
ret