Function at 0x1400402b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400406b4
mov ecx, dword [0x14017a0f4]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140179ef8], ecx
jg 0x140040765
mov r8, qword [0x140179ef0]
test r8, r8
jne 0x1400406dc
mov rax, qword [0x14008e5c8]
mov qword [rbp - 0x39], rax
xor ebx, ebx
lea r14d, [r8 + 4]
lea r15d, [r8 + 0x1f]
mov edi, dword [0x1401798c0]
cmp byte [0x14008e5cf], bl
je 0x1400404a0
cmp edi, 2
jl 0x140040460
movdqa xmm4, xmmword [0x1400b0990]
movd xmm6, r14d
movd xmm5, r15d
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
paddb xmm2, xmmword [str.5555555555555555YYP]
movd xmm0, dword [rbp - 0x39]
pxor xmm2, xmm0
movd dword [rbp - 0x39], 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
paddb xmm2, xmmword [str.5555555555555555YYP]
movd xmm0, dword [rbp - 0x35]
pxor xmm2, xmm0
movd dword [rbp - 0x35], xmm2
jmp 0x1400404a0
inc r8
cmp byte [rax + r8], 0
je 0x1400406fc
jmp 0x140040450
lea r9, [rbp - 0x39]
mov r8d, ebx
nop word [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, 8
jl 0x140040470
mov r9d, 0x40
lea r8d, [r9 - 0x36]
lea rdx, [rbp - 0x39]
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 [0x14008e5d0]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [0x14008e5e0]
movups xmmword [rbp - 0x19], xmm1
movzx eax, word [0x14008e5f0]
mov word [rbp - 9], ax
cmp edi, 2
jl 0x140040632
movdqa xmm5, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1400b0960]
movd xmm8, r15d
movdqa xmm0, xmmword [str.5555555555555555YYP]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x25]
mov edx, dword [rbp - 0x39]
nop
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, 0x20
jl 0x140040530
cmp ebx, 0x22
jge 0x14004066c
movsxd rax, ebx
lea r8, [rbp - 0x29]
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, 0x22
jl 0x140040640
lea rdx, [rbp - 0x29]
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 0x1400406b4
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 al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r9, rbx
xor edx, edx
mov rcx, rdi
call fcn.14002c360
jmp 0x1400406b6
lea rcx, [0x140179ef8]
call fcn.14008293c
jmp 0x14004030c
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.140030830
nop
lea r8, [rbp - 0x29]
mov rdx, qword [0x140179e78]
mov rcx, rdi
call fcn.140040ce0
mov qword [0x140179ef0], rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1400406eb
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400407eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400407eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x140179ef8]
call fcn.14008299c
cmp dword [0x140179ef8], 0xffffffff
jne 0x14004030c
movsd xmm0, qword [str.pNqJ_kSRR_]
movsd qword [rbp - 0x39], xmm0
movzx ecx, word [0x14008e5c0]
mov word [rbp - 0x31], cx
movzx eax, byte [0x14008e5c2]
mov byte [rbp - 0x39], 0x45
xor byte [rbp - 0x38], 0x36
xor byte [rbp - 0x37], 0x37
xor byte [rbp - 0x36], 0x38
xor byte [rbp - 0x35], 0x39
xor byte [rbp - 0x34], 0x3a
xor byte [rbp - 0x33], 0x3b
xor byte [rbp - 0x32], 0x3c
xor cl, 0x3d
mov byte [rbp - 0x31], cl
xor byte [rbp - 0x30], 0x3e
xor al, 0x3f
mov byte [rbp - 0x2f], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea rax, [rbp - 0x39]
mov r8, 0xffffffffffffffff
jmp 0x140040450
call fcn.1400825b4
jmp 0x1400406eb