Function at 0x440700
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x448632
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0xc0]
mov ebp, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
mov esi, eax
add esp, 8
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x10], 1
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x1c], ebx
push ebx
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0xbc], ebx
mov dword [esp + edx + 0x20], eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x20]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::init_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0xb8], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov ecx, dword [esp + 0x18]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x18], eax
mov eax, dword [esp + 0x70]
mov edi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
cmp eax, ebx
mov dword [esp + 0xb4], 3
jne 0x440816
lea ecx, [esp + 0x1c0]
push 0x21
push ecx
call dword [sym.imp.MSVCP60.dll_struct__iobuf____cdecl_std::__Fiopen_char_const___int_]
add esp, 8
cmp eax, ebx
je 0x440816
push 1
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Initcvt_void_]
lea edx, [esp + 0x20]
test edx, edx
jne 0x440835
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x1c]
or al, 2
mov edx, dword [esp + ecx + 0x40]
lea ecx, [esp + ecx + 0x18]
cmp edx, ebx
jne 0x440831
or al, 4
push ebx
push eax
call edi
mov edx, dword [esp + 0xbc]
lea ecx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x440873
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x440873
push 2
push ebx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea eax, [esp + 0x20]
test eax, eax
jne 0x44088f
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x1c]
lea ecx, [esp + edx + 0x18]
or al, 2
cmp dword [ecx + 0x28], ebx
jne 0x44088b
or al, 4
push ebx
push eax
call edi
mov ecx, dword [esp + 0xbc]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0xbc]
test ebx, ebx
jbe 0x4408ce
mov cl, byte [esp + 0x7c4]
mov bl, byte [eax + ebp]
xor bl, cl
mov byte [eax + ebp], bl
mov ebx, dword [esp + 0xbc]
inc eax
cmp eax, ebx
jb 0x4408b3
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x7d4]
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 4]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x7c4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x7c0]
mov byte [edx + 0x108], al
mov eax, dword [esp + 0x7cc]
mov dword [edx + 0x104], ecx
mov ecx, dword [esp + 0x7c8]
mov dword [edx + 0x114], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 0x110], ecx
mov ecx, dword [esp + 0x7d0]
mov dword [edx + 0x10c], ebx
test eax, eax
mov dword [edx], ebx
mov dword [edx + 0x118], ecx
je 0x44095c
push eax
call fcn.00442b1e
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x74]
mov dword [esp + 0x14], edx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x18], edx
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], 6
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [esp + 0x18]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xb4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x18], edx
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret