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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x444094]
test eax, eax
jne 0x40b621
call fcn.004019c0
mov ecx, eax
test ecx, ecx
je 0x40b848
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_LockFileEx]
mov esi, eax
test esi, esi
setne byte [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.004019c0
mov ecx, eax
test esi, esi
jne 0x40b6a6
test ecx, ecx
je 0x40b852
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
cmp byte [ebp - 0x34], 0
mov dword [esi], eax
je 0x40b690
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
je 0x40b85c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [0x444094]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x40b6e7
call fcn.00409640
test eax, eax
js 0x40b7e1
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
ja 0x40b7e1
jb 0x40b700
cmp ebx, 0x7fffffff
ja 0x40b7e1
mov eax, ebx
and eax, 1
or eax, 0
jne 0x40b7e1
mov edi, ebx
shrd edi, ecx, 1
shr ecx, 1
test edi, edi
js 0x40b866
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40b73b
push edi
lea ecx, [ebp - 0x10]
call fcn.00409100
mov esi, dword [ebp - 0x10]
push 0
push 0
push 0
mov ecx, 0x444094
call fcn.004094e0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push esi
push dword [0x444094]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7ac
call fcn.00409640
test eax, eax
js 0x40b7b1
xor eax, eax
test edi, edi
jle 0x40b789
mov ecx, 0xdead
mov edi, edi
xor word [esi + eax*2], cx
inc eax
cmp eax, edi
jl 0x40b780
push edi
lea ecx, [ebp - 0x10]
call fcn.00408d20
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40b79b
mov dword [eax], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push eax
push edi
call fcn.0040bac0
jmp 0x40b7fd
cmp dword [ebp - 0x14], ebx
je 0x40b773
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00408d70
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b7d7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x34]
call fcn.0040ae10
jmp 0x40b832
call fcn.004019c0
mov ecx, eax
test ecx, ecx
je 0x40b870
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b819
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x34], 0
je 0x40b832
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
push 0x80070057
call fcn.004093b0
push 0x80004005
call fcn.004093b0
int3