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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cc20
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x5cf000]
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 0x40ef6c
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x40ef61
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x40ef61
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 0x40ef5a
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 0x40ef6c
push dword [edx + 4]
mov ecx, ebx
push eax
call fcn.0040a5a0
lea ecx, [ebp - 0xb4]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.00407240
mov byte [ebp - 4], 3
call fcn.0042d054
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40f546
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 6
call fcn.0042d054
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x40f550
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.0040dfa0
test eax, eax
je 0x40f490
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 0x40f08a
jl 0x40f01c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
jae 0x40f090
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff0
lea ecx, [ebx + 4]
call fcn.0040e1b0
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 0x40f08d
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 0x40f474
jb 0x40f0b0
cmp eax, edx
jae 0x40f474
nop dword [eax]
push 0
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.0040e1b0
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.005562b1
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.005562b1
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 0x40f15d
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.0054f810
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor edx, edx
test ecx, ecx
je 0x40f1a7
mov ebx, dword [ebp - 0x28]
mov esi, edx
mov edi, ecx
nop dword [eax + eax]
mov al, byte [esi + 0x5b29f0]
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 0x40f180
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 0x40f217
xor ecx, ecx
jmp 0x40f230
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f220
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 0x40f257
xor ecx, ecx
jmp 0x40f270
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f260
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 0x40f55a
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, dword [ebp - 0x10]
or ecx, edx
jge 0x40f311
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.00555f52
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x40f55a
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
cmp dword [eax - 4], 1
mov edx, dword [eax - 0xc]
lea ecx, [edx + edx]
mov dword [ebp - 0x1c], ecx
jle 0x40f361
push edx
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 0x40f39c
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 + 0x5b21f0]
xor eax, dword [ecx*8 + 0x5b21f4]
sub edi, 1
jne 0x40f371
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 0x40f3b5
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [ebx + 0x60], 8
jmp 0x40f3c2
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00410450
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x20]
cmp eax, dword [ebx + 0x28]
je 0x40f3e1
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.00408e60
add dword [ebx + 0x24], 0x68
jmp 0x40f3ee
lea edx, [ebp - 0xb4]
push edx
push eax
call fcn.004105b0
add dword [ebx + 0x10], 1
push dword [ebp - 0x28]
adc dword [ebx + 0x14], 0
call fcn.005529f3
push dword [ebp - 0x14]
call fcn.005529f3
mov edx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov eax, edx
or eax, ecx
je 0x40f421
cmp dword [ebx + 0x14], ecx
ja 0x40f459
jb 0x40f421
cmp dword [ebx + 0x10], edx
jae 0x40f459
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 0x40f440
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 0x40f474
mov eax, dword [ebp - 0x24]
jb 0x40f0b0
cmp eax, dword [ebp - 0x34]
jmp 0x40f0a7
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f474
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40f489
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov ebx, 1
jmp 0x40f492
xor ebx, ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f4aa
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 0x40f4c4
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 0x40f4de
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 0x40f4fb
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 0x40f518
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 0x40f530
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