Function at 0x140046700
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov r15, r8
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140046b44
mov ecx, dword [0x14017a0f4]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
xor ebx, ebx
lea r12d, [rbx + 4]
lea r13d, [rbx + 0x1f]
mov edi, dword [0x1401798c0]
mov eax, dword [r8 + rdx]
cmp dword [0x140179f38], eax
jg 0x140046c08
mov r8, qword [0x140179f30]
test r8, r8
jne 0x140046b70
mov rax, qword [0x14008e860]
mov qword [rbp - 0x79], rax
cmp byte [0x14008e867], r8b
je 0x140046910
cmp edi, 2
jl 0x1400468d2
movdqa xmm4, xmmword [0x1400b0990]
movd xmm6, r12d
movd xmm5, r13d
movdqa xmm2, xmmword [0x1400b0940]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400b0960]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
mov eax, dword [str.5555555555555555YYP]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x79]
pxor xmm2, xmm1
movd dword [rbp - 0x79], xmm2
movdqa xmm3, xmmword [0x1400b0950]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400b0960]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x75]
pxor xmm2, xmm1
movd dword [rbp - 0x75], xmm2
jmp 0x140046910
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
lea rax, [rbp - 0x31]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
je 0x140046b9f
jmp 0x1400468c2
lea r9, [rbp - 0x79]
mov r8d, ebx
nop dword [rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x1400468e0
mov r9d, 0x40
lea r8d, [r9 - 0x36]
lea rdx, [rbp - 0x79]
lea rsi, str.h_a_v_
mov rcx, rsi
call fcn.140048930
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b7008]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pubsetbuf_char____ptr64__long_long___int64_____ptr64]
movups xmm0, xmmword [0x14008e868]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [0x14008e878]
movups xmmword [rbp - 0x59], xmm1
movups xmm0, xmmword [0x14008e888]
movups xmmword [rbp - 0x49], xmm0
movzx eax, word [0x14008e898]
mov word [rbp - 0x39], ax
movzx eax, byte [0x14008e89a]
mov byte [rbp - 0x37], al
cmp edi, 2
jl 0x140046ac2
movdqa xmm5, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
movd xmm6, r12d
movdqa xmm7, xmmword [0x1400b0960]
movd xmm8, r13d
movdqa xmm0, xmmword [str.5555555555555555YYP]
movdqa xmmword [rbp - 0x79], xmm0
lea rcx, [rbp - 0x65]
mov edx, dword [rbp - 0x79]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ebx
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, 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
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x30
jl 0x1400469c0
cmp ebx, 0x33
jge 0x140046afc
movsxd rax, ebx
lea r8, [rbp - 0x69]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x35
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x33
jl 0x140046ad0
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.140020d00
lea rdx, [0x140020ed0]
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, [0x1400b7008]
call fcn.1400207b0
test rax, rax
jne 0x140046b44
mov rax, qword [str.h_a_v_]
movsxd rcx, dword [rax + 4]
add rcx, rsi
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor eax, eax
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], r15
mov r9, rsi
lea rdx, [rbp - 0x79]
mov rcx, r14
call fcn.140027ec0
test al, al
je 0x140046b44
mov rax, qword [rbp - 0x79]
jmp 0x140046b46
lea rcx, [0x140179f38]
call fcn.14008293c
jmp 0x140046775
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x69]
call fcn.140030830
nop
lea r8, [rbp - 0x69]
mov rdx, qword [0x140179e78]
mov rcx, r14
call fcn.140040ce0
mov qword [0x140179f30], rax
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140046b8e
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046dd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046dd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x140179f38]
call fcn.14008299c
cmp dword [0x140179f38], 0xffffffff
jne 0x140046775
movups xmm0, xmmword [str.gB_tVUPIMS___0]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [0x14008e850]
movups xmmword [rbp - 0x21], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x1400468a8
cmp edi, 2
jl 0x140046d94
movdqa xmm5, xmmword [0x1400b0940]
mov edx, ebx
movdqa xmm4, xmmword [0x1400b0990]
movd xmm6, r12d
movdqa xmm7, xmmword [0x1400b0960]
movd xmm8, r13d
movdqa xmm0, xmmword [str.5555555555555555YYP]
movdqa xmmword [rbp - 0x79], xmm0
lea rcx, [rbp - 0x2d]
mov r8d, dword [rbp - 0x79]
nop word [rax + rax]
movd xmm2, edx
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, 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
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x20
jl 0x140046c90
jmp 0x1400468a8
lea r9, [rbp - 0x31]
mov r8d, ebx
nop dword [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x20
jl 0x140046da0
jmp 0x1400468a8
call fcn.1400825b4
jmp 0x140046b8e