Function at 0x41f5c0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4264b0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x78], ebx
mov edi, edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x50], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [ebp + 8], 0
mov esi, 1
mov dword [ebp - 4], esi
je 0x41f8ad
cmp dword [ebp + 0x10], 0
je 0x41f8ad
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push esi
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x70], esi
jne 0x41f660
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x50], 1
jmp 0x41f8bc
xor edi, edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x54]
push edx
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f80f
cmp dword [ebp - 0x54], 4
jne 0x41f80f
mov eax, dword [ebp - 0x4c]
lea ecx, [eax - 5]
cmp ecx, 0xfffa
ja 0x41f80f
cmp dword [ebp - 0x58], eax
jae 0x41f6cf
mov ebx, eax
push edi
mov dword [ebp - 0x58], ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
mov eax, dword [ebp - 0x4c]
add esp, 4
push 0
mov dword [edi], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x54]
push edx
add eax, 0xfffffffc
push eax
lea ecx, [edi + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f80f
mov eax, dword [ebp - 0x4c]
lea edx, [eax - 4]
cmp dword [ebp - 0x54], edx
jne 0x41f80f
movzx ecx, word [edi + 0x38]
cmp ecx, eax
jae 0x41f80f
movzx ebx, word [edi + 0x3a]
cmp ebx, eax
jae 0x41f80f
movzx edx, word [edi + 0x3c]
cmp edx, eax
jae 0x41f80f
movzx ecx, word [edi + 0x3e]
cmp ecx, eax
ja 0x41f80f
mov edx, dword [ebp + 8]
cmp dword [edi + 0x30], edx
jne 0x41f675
lea ecx, [ebp - 0x48]
add ebx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x100
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::reserve_unsigned_int_]
mov ax, word [ebx]
xor ax, word [0x436170]
xor esi, esi
movzx eax, ax
test ax, ax
je 0x41f796
lea ecx, [ecx]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
add esi, 1
mov ecx, esi
and ecx, 0x3f
mov dx, word [ecx*2 + 0x436170]
xor dx, word [ebx + esi*2]
movzx eax, dx
test ax, ax
jne 0x41f770
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x41f7bc
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x41f7ad
lea ecx, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
jbe 0x41f7fa
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0x5c], ecx
jb 0x41f7cc
lea esi, [ebp - 0x6c]
call fcn.0041f960
mov edx, dword [ebp - 0x4c]
push edx
push edi
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.0041f9a0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [ebp - 0x70]
jmp 0x41f675
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
lea ebx, [eax + edi]
cmp edi, ebx
jbe 0x41f833
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, edi
cmp edi, ebx
jbe 0x41f83f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebx
je 0x41f87a
mov edi, esi
jb 0x41f84d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x64]
cmp eax, esi
ja 0x41f858
mov edi, esi
sub edi, eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + edi*4]
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp esi, ebx
jb 0x41f872
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x60]
add esi, 1
jmp 0x41f835
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 1
call fcn.0041fc30
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
jmp 0x41f8cb
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x50], esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret