Function at 0x140046d40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0xf8]
sub rsp, 0x1f0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword [0x14011f040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [str.w_de_YQ9f__GXRgiyd]
mov qword [rsp + 0x30], rax
movdqa xmm7, xmmword [0x140112570]
xor ebx, ebx
mov edi, dword [0x14011f090]
cmp byte [0x1401107bf], bl
je 0x140046ed9
mov r8d, ebx
cmp edi, 2
jl 0x140046ea5
movdqa xmm4, xmmword [0x1401128b0]
movdqa xmm2, xmmword [0x1401124f0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.11117777]
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401125a0]
movd xmm0, dword [rsp + 0x30]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x140112500]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.11117777]
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1401125a0]
movd xmm0, dword [rsp + 0x34]
xorps xmm3, xmm0
movd dword [rsp + 0x34], xmm3
jmp 0x140046ed9
lea r9, [rsp + 0x30]
nop word [rax + rax]
mov eax, 0x5397829d
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140046eb0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140098ce0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400474a1
movups xmm2, xmmword [0x140110678]
movups xmmword [rsp + 0x58], xmm2
mov edx, dword [str._00_G]
mov dword [rsp + 0x68], edx
movzx eax, word [0x14011068c]
mov word [rsp + 0x6c], ax
movdqa xmm4, xmmword [0x140112530]
movdqa xmm5, xmmword [0x140112520]
movdqa xmm6, xmmword [0x140112510]
movdqa xmm8, xmmword [0x140112500]
movdqa xmm9, xmmword [0x1401124f0]
movdqa xmm11, xmmword [0x1401125a0]
movdqa xmm10, xmmword [str.11117777]
movdqa xmm3, xmmword [0x1401128b0]
cmp byte [0x14011068d], 0
je 0x1400471c0
mov r8d, ebx
cmp edi, 2
jl 0x14004717c
movdqa xmm1, xmm9
punpckldq xmm1, xmm9
pmuldq xmm1, xmm3
movdqa xmm0, xmm9
punpckhdq xmm0, xmm9
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm1, xmm9
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd ecx, xmm11
movd xmm0, ecx
paddb xmm1, xmm0
movd eax, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movd dword [rsp + 0x58], xmm1
movdqa xmm1, xmm8
punpckldq xmm1, xmm8
pmuldq xmm1, xmm3
movdqa xmm0, xmm8
punpckhdq xmm0, xmm8
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm2, xmm8
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x5c]
xorps xmm2, xmm1
movd dword [rsp + 0x5c], xmm2
movdqa xmm1, xmm6
punpckldq xmm1, xmm6
pmuldq xmm1, xmm3
movdqa xmm0, xmm6
punpckhdq xmm0, xmm6
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm2, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x60]
xorps xmm2, xmm1
movd dword [rsp + 0x60], xmm2
movdqa xmm1, xmm5
punpckldq xmm1, xmm5
pmuldq xmm1, xmm3
movdqa xmm0, xmm5
punpckhdq xmm0, xmm5
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm2, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x64]
xorps xmm2, xmm1
movd dword [rsp + 0x64], xmm2
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
pmuldq xmm1, xmm3
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm2, xmm4
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, edx
xorps xmm2, xmm1
movd dword [rsp + 0x68], xmm2
mov r8d, 0x14
mov eax, r8d
lea r9, [rsp + 0x58]
add r9, 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 ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x16
jl 0x140047190
movzx eax, word [0x140110510]
mov word [rsp + 0x50], ax
movzx eax, byte [0x140110512]
movsd xmm0, qword [0x140110508]
movups xmm2, xmmword [0x1401104f8]
mov byte [rsp + 0x52], al
movsd qword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm2
cmp edi, 2
jl 0x14004744c
movdqa xmm1, xmm9
punpckldq xmm1, xmm9
pmuldq xmm1, xmm3
movdqa xmm0, xmm9
punpckhdq xmm0, xmm9
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm9, xmm0
andps xmm9, xmm7
packuswb xmm9, xmm9
packuswb xmm9, xmm9
movd ecx, xmm11
movd xmm0, ecx
paddb xmm9, xmm0
movd eax, xmm2
movd xmm0, eax
xorps xmm9, xmm0
movd dword [rsp + 0x38], xmm9
movdqa xmm1, xmm8
punpckldq xmm1, xmm8
pmuldq xmm1, xmm3
movdqa xmm0, xmm8
punpckhdq xmm0, xmm8
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm8, xmm0
andps xmm8, xmm7
packuswb xmm8, xmm8
packuswb xmm8, xmm8
movd xmm0, ecx
paddb xmm8, xmm0
movd xmm1, dword [rsp + 0x3c]
xorps xmm8, xmm1
movd dword [rsp + 0x3c], xmm8
movdqa xmm1, xmm6
punpckldq xmm1, xmm6
pmuldq xmm1, xmm3
movdqa xmm0, xmm6
punpckhdq xmm0, xmm6
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm6, xmm0
andps xmm6, xmm7
packuswb xmm6, xmm6
packuswb xmm6, xmm6
movd xmm0, ecx
paddb xmm6, xmm0
movd xmm1, dword [rsp + 0x40]
xorps xmm6, xmm1
movd dword [rsp + 0x40], xmm6
movdqa xmm1, xmm5
punpckldq xmm1, xmm5
pmuldq xmm1, xmm3
movdqa xmm0, xmm5
punpckhdq xmm0, xmm5
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm5, xmm0
andps xmm5, xmm7
packuswb xmm5, xmm5
packuswb xmm5, xmm5
movd xmm0, ecx
paddb xmm5, xmm0
movd xmm1, dword [rsp + 0x44]
xorps xmm5, xmm1
movd dword [rsp + 0x44], xmm5
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
pmuldq xmm1, xmm3
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
movd xmm0, ecx
paddb xmm4, xmm0
movd xmm1, dword [rsp + 0x48]
xorps xmm4, xmm1
movd dword [rsp + 0x48], xmm4
movdqa xmm2, xmmword [0x140112540]
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, xmm10
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x4c]
xorps xmm2, xmm1
movd dword [rsp + 0x4c], xmm2
mov ebx, 0x18
mov eax, ebx
lea r8, [rsp + 0x38]
add r8, rax
nop word [rax + rax]
mov eax, 0x5397829d
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
sub al, cl
add al, 0x32
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1b
jl 0x140047460
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [0x1413ecb8e]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecbac]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
lea rdx, [0x1413ecb44]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb92]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb94]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecbb8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
lea rdx, [0x1413ecb96]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb97]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecbb0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
lea rdx, [0x1413ecb9f]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb9d]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb88]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb8f]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb4f]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb89]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb8d]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb48]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb4d]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb42]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb95]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb93]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rdx, [0x1413ecb3c]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___bool____ptr64____ptr64]
lea rcx, [rbp - 0x80]
call fcn.140099a00
test rax, rax
jne 0x14004765b
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x80]
call fcn.140098c70
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14009e740
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop rbp
ret