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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x41c280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], 1
push edi
mov dword [ebp - 0x11c], esi
lea edx, [ebp - 0x108]
jle 0x401040
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401034
jmp 0x401051
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401047
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401060
sub eax, edx
je 0x40109f
jmp 0x401070
movsx edx, byte [ebp + esi - 0x108]
push edx
call fcn.00401d15
mov byte [ebp + esi - 0x108], al
lea eax, [ebp - 0x108]
add esp, 4
inc esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401092
sub eax, edx
cmp esi, eax
jb 0x401070
lea eax, [ebp - 0x108]
push str..EXE
push eax
call fcn.00401320
add esp, 8
test eax, eax
jne 0x4010d9
lea eax, [ebp - 0x108]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4010c0
mov ecx, dword [str..EXE]
mov dl, byte [0x40b19c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x108]
push 0x40b194
push eax
call fcn.00401b61
mov edi, eax
add esp, 8
mov dword [ebp - 0x110], edi
test edi, edi
jne 0x40110d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d41
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call fcn.004019b1
add esp, 4
cmp eax, 0xffffffff
je 0x401187
lea ecx, [ecx]
movsx ecx, byte [esi + str..ZrK3sFm5nM]
cmp eax, ecx
jne 0x401162
inc esi
cmp esi, 0xc
jl 0x401174
push edi
push 1
lea eax, [ebp - 0x10c]
push 2
push eax
call fcn.00401994
add esp, 0x10
cmp eax, 1
je 0x40119f
mov eax, 0xfffffffd
push eax
push str._a_n__error_status__d___n
call fcn.0040168d
add esp, 8
jmp 0x4012ef
movsx edx, byte [str..ZrK3sFm5nM]
xor esi, esi
cmp eax, edx
jne 0x401174
mov esi, 1
push edi
call fcn.004019b1
add esp, 4
cmp eax, 0xffffffff
jne 0x401120
cmp esi, 0xc
jge 0x401131
mov eax, 0xfffffffe
push eax
push str._a_n__error_status__d___n
call fcn.0040168d
add esp, 8
jmp 0x4012ef
push edi
push 1
lea ecx, [ebp - 0x118]
push 2
push ecx
call fcn.00401994
add esp, 0x10
cmp eax, 1
je 0x4011d0
mov eax, 0xfffffffc
push eax
push str._a_n__error_status__d___n
call fcn.0040168d
add esp, 8
jmp 0x4012ef
cmp word [ebp - 0x10c], 1
jge 0x4011ec
push str._____no_entries_available______n
call fcn.0040168d
add esp, 4
jmp 0x4012ef
push 0x101
call fcn.004015f9
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401217
mov eax, 0xfffffffb
push eax
push str._a_n__error_status__d___n
call fcn.0040168d
add esp, 8
jmp 0x4012ef
mov di, word [ebp - 0x11c]
xor edx, edx
mov byte [ebx + 0x100], 0
mov dword [ebp - 0x114], 0
cmp dx, word [ebp - 0x10c]
jge 0x4012bd
mov edi, edi
mov eax, dword [ebp - 0x110]
push eax
push 0x100
push ebx
call fcn.004014c1
add esp, 0xc
test eax, eax
je 0x4012e1
mov eax, ebx
mov ecx, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401264
sub eax, esi
lea edx, [eax - 1]
test edx, edx
jle 0x40127d
mov eax, edx
xor byte [ecx], 0xaa
inc ecx
dec eax
jne 0x401276
xor eax, eax
test edx, edx
jle 0x401297
movzx esi, byte [eax + ebx]
mov ecx, eax
and ecx, 3
shl si, cl
inc eax
xor di, si
cmp eax, edx
jl 0x401283
push ebx
push 0x40b150
call fcn.0040168d
mov eax, dword [ebp - 0x114]
movsx ecx, word [ebp - 0x10c]
inc eax
add esp, 8
mov dword [ebp - 0x114], eax
cmp eax, ecx
jl 0x401240
cmp di, word [ebp - 0x118]
je 0x4012e9
mov eax, 0xfffffffa
mov edi, dword [ebp - 0x110]
push eax
push str._a_n__error_status__d___n
call fcn.0040168d
add esp, 8
jmp 0x4012ef
mov eax, dword [ebp - 0x114]
jmp 0x4012cb
mov edi, dword [ebp - 0x110]
push edi
call fcn.0040144d
add esp, 4
test ebx, ebx
je 0x401305
push ebx
call fcn.004013a6
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401d41
mov esp, ebp
pop ebp
ret