Function at 0x40eeb0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cdf0
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x5d0000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov esi, dword [ebx]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x40ef48
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40ef3d
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x40ef3d
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x14], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40ef36
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x40ef48
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.0040a5a0
lea ecx, [ebp - 0xb4]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.00407280
mov byte [ebp - 4], 3
call fcn.0042d02f
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40f527
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 6
call fcn.0042d02f
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x40f531
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x3c], edi
push 0x40
mov byte [ebp - 4], 7
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.0040dfb0
test eax, eax
je 0x40f471
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
xor edx, edx
add edx, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], edx
adc ecx, 0
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jg 0x40f066
jl 0x40eff8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
jae 0x40f06c
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff0
lea ecx, [ebx + 4]
call fcn.0040e1c0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebx + 8]
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
not dword [ebp - 0x20]
lea eax, [ebp - 0x14]
not dword [ebp - 0x1c]
push 0
push eax
push 8
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor eax, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp + 0x10], ecx
jmp 0x40f069
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
add edx, 0xffffffe8
mov dword [ebp - 0x34], edx
adc dword [ebp - 0x30], 0xffffffff
cmp ecx, dword [ebp - 0x30]
ja 0x40f455
jb 0x40f090
cmp eax, edx
jae 0x40f455
nop dword [eax]
push 0
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.0040e1c0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x40]
mov eax, ecx
mov dword [ebp - 0x10], ecx
shr eax, 0x18
shr ecx, 0x10
xor al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xf]
xor byte [ebp - 0xe], al
xor al, cl
mov byte [ebp - 0xf], al
not cl
mov byte [ebp - 0x10], cl
mov eax, dword [ebp - 0x10]
add eax, 0xfffcea1c
push 1
push eax
mov dword [ebp - 0x10], eax
call fcn.0055648e
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.0055648e
mov ecx, eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x40f13d
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0054f9f0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor edx, edx
test ecx, ecx
je 0x40f187
mov ebx, dword [ebp - 0x28]
mov esi, edx
mov edi, ecx
nop dword [eax + eax]
mov al, byte [esi + 0x5b2a20]
xor ecx, ecx
xor byte [ebx + edx], al
inc edx
cmp esi, 0x17
lea eax, [esi + 1]
cmovne ecx, eax
mov esi, ecx
cmp edx, edi
jb 0x40f160
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor eax, eax
add ecx, dword [ebp - 0x24]
adc eax, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov ecx, dword [edx + 4]
adc eax, 0
mov dword [ebp - 0x80], eax
mov eax, dword [edx]
mov dword [ebp - 0xb4], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [edx + 0x38]
mov dword [ebp - 0xa0], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [edx + 0x40]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
add edx, 0x44
jne 0x40f1f7
xor ecx, ecx
jmp 0x40f210
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f200
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.0040a5a0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x28]
add ecx, 0x46
mov edx, dword [eax - 0xc]
lea edx, [ecx + edx*2]
test edx, edx
jne 0x40f237
xor ecx, ecx
jmp 0x40f250
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f240
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.0040a5a0
mov eax, dword [ebp - 0xac]
add dword [ebx + 0x30], eax
mov eax, dword [ebp - 0xa8]
adc dword [ebx + 0x34], eax
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0xb0]
adc edx, dword [ebp - 0x80]
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x2c], edx
sbb edx, dword [ebp - 0x90]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x88], edx
push eax
call fcn.00409470
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x40f53b
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, dword [ebp - 0x10]
or ecx, edx
jge 0x40f2f1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040a530
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push eax
call fcn.00556132
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x40f53b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax - 0xc]
add ecx, ecx
cmp dword [eax - 4], 1
mov dword [ebp - 0x1c], ecx
jle 0x40f342
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040a2c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
or edx, 0xffffffff
or eax, 0xffffffff
test ecx, ecx
je 0x40f37d
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, edx
shrd edx, eax, 8
movzx ecx, cl
shr eax, 8
xor edx, dword [ecx*8 + 0x5b2220]
xor eax, dword [ecx*8 + 0x5b2224]
sub edi, 1
jne 0x40f352
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebx + 0x60]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
cmp ecx, dword [ebx + 0x64]
je 0x40f396
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [ebx + 0x60], 8
jmp 0x40f3a3
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00410430
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x20]
cmp eax, dword [ebx + 0x28]
je 0x40f3c2
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.00408e60
add dword [ebx + 0x24], 0x68
jmp 0x40f3cf
lea edx, [ebp - 0xb4]
push edx
push eax
call fcn.00410590
add dword [ebx + 0x10], 1
push dword [ebp - 0x28]
adc dword [ebx + 0x14], 0
call fcn.00552bd3
push dword [ebp - 0x14]
call fcn.00552bd3
mov edx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov eax, edx
or eax, ecx
je 0x40f402
cmp dword [ebx + 0x14], ecx
ja 0x40f43a
jb 0x40f402
cmp dword [ebx + 0x10], edx
jae 0x40f43a
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f421
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
ja 0x40f455
mov eax, dword [ebp - 0x24]
jb 0x40f090
cmp eax, dword [ebp - 0x34]
jmp 0x40f083
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f455
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40f46a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov ebx, 1
jmp 0x40f473
xor ebx, ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f48b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f4a5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x98]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40f511
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00402740
push 0x80004005
call fcn.00402740
push 0x80070057
call fcn.00402740
int3