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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x424400
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x41114f
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call ebx
push edi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x40]
mov esi, eax
mov dword [esp + 0x38], esi
lea eax, [edx*4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x28
mov ebp, eax
test ebp, ebp
push edi
jne 0x411117
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
push ecx
push 4
push esi
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
jne 0x41113f
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x411159
push ebp
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push edi
push eax
push 1
push esi
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jae 0x41118f
push ebp
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor eax, eax
test ecx, ecx
jbe 0x4111a7
mov bl, byte [eax + esi]
xor bl, 0x75
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jb 0x411195
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
jbe 0x4111cd
mov edx, dword [esp + 0x14]
mov eax, ebp
sub edx, ebp
mov ebx, dword [edx + eax]
add eax, 4
add ebx, esi
inc ecx
mov dword [eax - 4], ebx
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
jb 0x4111b9
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4111e3
mov dword [eax], ebp
jmp 0x4111e9
mov dword [0x42b01c], ebp
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
mov ebp, dword [ebp + 0xac8]
add esp, 4
mov esi, 0x424818
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41122b
test cl, cl
je 0x411227
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41122b
add eax, 2
add esi, 2
test cl, cl
jne 0x411203
xor eax, eax
jmp 0x411230
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x411240
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, 0x42481c
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x411281
test cl, cl
je 0x41126b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x411281
add eax, 2
add esi, 2
test cl, cl
jne 0x411247
mov ecx, dword [esp + 0x1c]
xor eax, eax
neg eax
sbb eax, eax
pop edi
not eax
pop esi
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret
sbb eax, eax
mov ecx, dword [esp + 0x1c]
sbb eax, 0xffffffff
pop edi
neg eax
sbb eax, eax
pop esi
not eax
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret