Function at 0x401260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4041d0
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x26c], eax
push dword [eax + 8]
call fcn.00402950
mov dword [ebp - 4], 0
sub esp, 0x18
movups xmm0, xmmword [ebp - 0x4c]
mov eax, esp
push 0x40529c
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [eax + 0x10], xmm0
call fcn.00401020
push 0xb8
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
mov dword [ebp - 0x104], 0x4053c0
cmp dword [ebp - 0x38], 0xf
lea esi, [ebp - 0x4c]
lea ecx, [ebp - 0x94]
cmova esi, dword [ebp - 0x4c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x274], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x108], eax
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xac], 0
mov byte [ebp - 0xb7], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x408678]
mov ecx, dword [0x40867c]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xbc], 0
push ecx
push 0x25
push esi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.00402d80
test eax, eax
jne 0x4013e6
push eax
mov eax, dword [ebp - 0x104]
lea ecx, [ebp - 0x104]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x108], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa8], 0
jne 0x40143c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x4030d0
call fcn.00402ec0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, 1
jmp 0x401a11
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [ebp - 0x270], ecx
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0x268], ecx
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov eax, dword [ebp - 0x270]
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x401513
cmp eax, 0x7fffffff
ja 0x401b08
cmp eax, 0x1000
jb 0x4014dc
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401b0d
push ecx
call fcn.00403404
add esp, 4
test eax, eax
je 0x4017fc
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4014e7
push eax
call fcn.00403404
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x270]
push eax
push 0
push esi
lea edi, [esi + eax]
mov dword [ebp - 0x1c], esi
mov ecx, edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x14], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x270]
add esp, 0xc
mov dword [ebp - 0x18], edi
push dword [ebp - 0x268]
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 5
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xf4]
call fcn.00402ca0
test eax, eax
jne 0x401552
push eax
mov eax, dword [ebp - 0x104]
lea ecx, [ebp - 0x104]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x4052c8
call fcn.00401020
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x278], ecx
cmp dword [ebp - 0x268], ecx
jl 0x4015b6
jg 0x401579
cmp dword [ebp - 0x270], ecx
jbe 0x4015b6
mov edi, dword [ebp - 0x270]
nop
movzx eax, byte [esi + ecx]
push eax
push str.x_02x
call fcn.00401020
mov ecx, dword [ebp - 0x278]
add esp, 8
inc ecx
mov eax, ecx
mov dword [ebp - 0x278], ecx
cdq
cmp edx, dword [ebp - 0x268]
jl 0x401580
jg 0x4015b0
cmp eax, edi
jb 0x401580
mov edi, dword [ebp - 0x274]
mov eax, dword [ebp - 0x26c]
mov ecx, 0x4052e8
mov eax, dword [eax + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015e4
test dl, dl
je 0x4015e0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015e4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015c4
xor eax, eax
jmp 0x4015e9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401802
push 0x4052ec
call fcn.00401020
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x34]
add esp, 4
push dword [eax + 0xc]
call fcn.00402950
mov eax, edi
mov byte [ebp - 4], 6
sub eax, esi
xor ecx, ecx
mov edx, eax
mov dword [ebp - 0x268], eax
xor eax, eax
cmp esi, edi
cmova edx, eax
mov eax, esi
test edx, edx
je 0x401680
cmp edx, 0x40
jb 0x401680
movaps xmm2, xmmword [str.UUUUUUUUUUUUUUUU]
and edx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [eax]
add ecx, 0x40
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax], xmm1
movups xmm0, xmmword [eax + 0x10]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax + 0x10], xmm1
movups xmm0, xmmword [eax + 0x20]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax + 0x20], xmm1
movups xmm0, xmmword [eax + 0x30]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax + 0x30], xmm1
add eax, 0x40
cmp ecx, edx
jne 0x401640
cmp eax, edi
je 0x40168c
xor byte [eax], 0x55
inc eax
cmp eax, edi
jne 0x401684
push 0xb0
lea eax, [ebp - 0x1b4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.00401ca0
push 0
push dword [ebp - 0x268]
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 7
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x1b0]
call fcn.00402ca0
test eax, eax
jne 0x4016ee
push eax
mov eax, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1b4]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x405300
call fcn.00401020
xor edi, edi
add esp, 4
cmp dword [ebp - 0x268], edi
jbe 0x401720
movzx eax, byte [esi + edi]
push eax
push str.x_02x
call fcn.00401020
inc edi
add esp, 8
cmp edi, dword [ebp - 0x268]
jb 0x401705
mov eax, dword [ebp - 0x1b4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1b8], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x164], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x40178e
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x174]
cmp dword [eax], ecx
jne 0x40178e
mov edx, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x160]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x194]
mov dword [eax], ecx
mov eax, dword [ebp - 0x184]
mov dword [eax], edx
cmp byte [ebp - 0x168], 0
je 0x4017a2
lea ecx, [ebp - 0x1b0]
call fcn.00402ca0
lea ecx, [ebp - 0x1b0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x4019da
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4019d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4019d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x405320
call fcn.00401020
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x34]
add esp, 4
push dword [eax + 0xc]
call fcn.00402950
mov eax, edi
mov byte [ebp - 4], 9
sub eax, esi
xor ecx, ecx
mov edx, eax
mov dword [ebp - 0x26c], eax
xor eax, eax
cmp esi, edi
cmova edx, eax
mov eax, esi
test edx, edx
je 0x401884
cmp edx, 0x40
jb 0x401884
movaps xmm1, xmmword [str.UUUUUUUUUUUUUUUU]
and edx, 0xffffffc0
nop
movups xmm0, xmmword [eax]
add ecx, 0x40
xorps xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
xorps xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
xorps xmm0, xmm1
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
xorps xmm0, xmm1
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
cmp ecx, edx
jne 0x401850
cmp eax, edi
je 0x401890
xor byte [eax], 0x55
inc eax
cmp eax, edi
jne 0x401888
push 0xb0
lea eax, [ebp - 0x264]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401ca0
push 0
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xa
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x260]
call fcn.00402ca0
test eax, eax
jne 0x4018f2
push eax
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x264]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x405334
call fcn.00401020
xor edi, edi
add esp, 4
cmp dword [ebp - 0x26c], edi
jbe 0x40192b
nop dword [eax]
movzx eax, byte [esi + edi]
push eax
push str.x_02x
call fcn.00401020
inc edi
add esp, 8
cmp edi, dword [ebp - 0x26c]
jb 0x401910
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x268], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x214], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x401999
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x224]
cmp dword [eax], ecx
jne 0x401999
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x244]
mov dword [eax], ecx
mov eax, dword [ebp - 0x234]
mov dword [eax], edx
cmp byte [ebp - 0x218], 0
je 0x4019ad
lea ecx, [ebp - 0x260]
call fcn.00402ca0
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x25c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1fc]
jmp 0x4017c0
push ecx
push edx
call fcn.00403434
add esp, 8
xor edi, edi
mov byte [ebp - 4], 4
test esi, esi
je 0x401a11
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x401a07
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017fc
push ecx
push esi
call fcn.00403434
add esp, 8
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x108], eax
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0xa8], 0
mov dword [ebp - 0xf4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x401a7f
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xb8]
cmp dword [eax], ecx
jne 0x401a7f
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xd8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc8]
mov dword [eax], edx
cmp byte [ebp - 0xac], 0
je 0x401a93
lea ecx, [ebp - 0xf4]
call fcn.00402ca0
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x401aeb
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401ae1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017fc
push ecx
push edx
call fcn.00403434
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004033f6
mov esp, ebp
pop ebp
ret
call fcn.00403350
call fcn.00401110
int3