Function at 0x14003fad0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xfa8]
mov eax, 0x10a8
call fcn.140082bc0
sub rsp, rax
movaps xmmword [rsp + 0x1090], xmm6
movaps xmmword [rsp + 0x1080], xmm7
movaps xmmword [rsp + 0x1070], xmm8
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rsi, r9
mov rdi, r8
mov r14, rdx
test r8, r8
je 0x140040276
mov r9d, 0x1000
lea rdx, [rsp + 0x60]
call fcn.140043c10
xor ebx, ebx
test al, al
jne 0x14003fea7
cmp byte [0x14008ec67], bl
lea esi, [rbx + 4]
mov rax, qword [0x14008ec60]
lea r14d, [rbx + 0x1f]
mov r15d, dword [0x1401798c0]
mov qword [rsp + 0x20], rax
je 0x14003fcb1
cmp r15d, 2
jl 0x14003fc73
movdqa xmm2, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400b0950]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, esi
movd xmm5, r14d
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
movd xmm0, dword [rsp + 0x20]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555YYP]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, 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
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555YYP]
pxor xmm2, xmm0
movd dword [rsp + 0x24], xmm2
jmp 0x14003fcb1
lea r9, [rsp + 0x20]
mov r8d, ebx
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x14003fc80
mov r9d, 0x40
lea rdi, str.h_a_v_
lea rdx, [rsp + 0x20]
mov rcx, rdi
lea r8d, [r9 - 0x36]
call fcn.140048930
xor r8d, r8d
lea rcx, [0x1400b7008]
xor edx, edx
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]
cmp byte [0x14008ec85], bl
movups xmm0, xmmword [0x14008ec68]
mov eax, dword [0x14008ec80]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14008ec84]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x4c], ax
movsd xmm0, qword [0x14008ec78]
movsd qword [rsp + 0x40], xmm0
je 0x14003fe9d
cmp r15d, 2
jl 0x14003fe64
movdqa xmm0, xmmword [str.5555555555555555YYP]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
movdqa xmm7, xmmword [0x1400b0960]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movd xmm6, esi
movd xmm8, r14d
nop
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, 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
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x18
jl 0x14003fd60
cmp ebx, 0x1e
jge 0x14003fe9d
movsxd rax, ebx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x35
xor byte [r8 - 1], al
cmp ebx, 0x1e
jl 0x14003fe70
lea rdx, [rsp + 0x30]
jmp 0x140040232
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.1400522c0
test rax, rax
je 0x14003fee1
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14003fee1
test rsi, rsi
je 0x14003fed1
mov dword [rsi], ecx
lea rcx, [rsp + 0x60]
sub rdi, rcx
add rax, rdi
jmp 0x140040278
cmp byte [0x14008ec8f], bl
mov esi, 4
mov rax, qword [0x14008ec88]
mov r15d, dword [0x1401798c0]
mov qword [rsp + 0x20], rax
lea r14d, [rsi + 0x1b]
je 0x140040051
cmp r15d, 2
jl 0x140040018
movdqa xmm2, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400b0950]
movdqa xmm0, xmm2
mov eax, dword [str.5555555555555555YYP]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, esi
movd xmm5, r14d
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]
movd xmm1, dword [rsp + 0x20]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
pxor xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
pmuldq xmm1, 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]
movd xmm1, dword [rsp + 0x24]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
pxor xmm2, xmm1
movd dword [rsp + 0x24], xmm2
jmp 0x140040051
lea r9, [rsp + 0x20]
mov r8d, ebx
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140040020
mov r9d, 0x40
lea rdi, str.h_a_v_
lea rdx, [rsp + 0x20]
mov rcx, rdi
lea r8d, [r9 - 0x36]
call fcn.140048930
xor r8d, r8d
lea rcx, [0x1400b7008]
xor edx, edx
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]
mov eax, dword [0x14008eca0]
mov dword [rsp + 0x40], eax
movzx eax, word [0x14008eca4]
mov word [rsp + 0x44], ax
movzx eax, byte [0x14008eca6]
mov byte [rsp + 0x46], al
movups xmm0, xmmword [0x14008ec90]
movups xmmword [rsp + 0x30], xmm0
cmp r15d, 2
jl 0x1400401f4
movdqa xmm0, xmmword [str.5555555555555555YYP]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
movdqa xmm7, xmmword [0x1400b0960]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movd xmm6, esi
movd xmm8, r14d
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, 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
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x1400400f0
cmp ebx, 0x17
jge 0x14004022d
movsxd rax, ebx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x35
xor byte [r8 - 1], al
cmp ebx, 0x17
jl 0x140040200
lea rdx, [rsp + 0x30]
mov rcx, rdi
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 0x140040276
mov rax, qword [str.h_a_v_]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
add rcx, rdi
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
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.140082c20
lea r11, [rsp + 0x10a8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret