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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af380
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x100c6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xb0], ecx
push 0x318
call fcn.1008c0dc
mov ebx, eax
push 0x100
mov dword [ebp - 0xa8], ebx
push 0
lea edi, [ebx + 0xc]
mov dword [ebx], vtable.CMemScript.0
push edi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.1008e1e0
push edi
lea eax, [ebx + 0x218]
push str.__s__The_file_were_not_configured_correctly
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push str..Checksum.premium
push 0x100
push edi
call fcn.10095482
add esp, 0x28
push 0
push 0x20
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1008092d
push edi
lea eax, [ebx + 0x218]
push str.__s__Could_not_open_file
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0xc
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008c0ce
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x10080950
push eax
call fcn.1008c83b
add esp, 4
mov dword [ebx + 4], 0
push dword [ebx + 8]
call fcn.1008c832
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0
push 0
push ecx
push dword [ebx + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100809a3
push edi
lea eax, [ebx + 0x218]
push str.__s__Could_not_read_file
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10080907
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
cmp dword [ebx + 8], edx
jbe 0x100809d1
mov ecx, dword [ebx + 4]
mov eax, edx
shr eax, 8
xor al, 0x15
add byte [ecx + edx], al
mov ecx, dword [ebx + 4]
mov al, byte [ecx + edx]
xor al, dl
xor al, 0xda
mov byte [ecx + edx], al
inc edx
cmp edx, dword [ebx + 8]
jb 0x100809b1
mov dword [ebx + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x214], eax
mov dword [ebp - 4], 0
nop
mov ecx, ebx
call fcn.1006cdd0
cmp eax, 2
je 0x10080ad0
lea esi, [ebx + 0x114]
mov ecx, 0x100b984c
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10080a30
test dl, dl
je 0x10080a2c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10080a30
add ecx, 2
add eax, 2
test dl, dl
jne 0x10080a10
xor eax, eax
jmp 0x10080a35
sbb eax, eax
or eax, 1
test eax, eax
je 0x10080ad0
push esi
lea eax, [ebp - 0xa4]
push 0x80
push eax
call fcn.10095482
add esp, 0xc
mov ecx, ebx
call fcn.1006cdd0
push esi
lea eax, [ebp - 0x20]
push 0xb
push eax
call fcn.10095482
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x20]
push 0x100bb578
push eax
call fcn.1006d230
mov eax, dword [ebp - 0xa8]
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax + 0x20e0d8]
cmp edx, dword [eax + 0x20e0dc]
je 0x10080ab8
mov ecx, 0x21
lea esi, [ebp - 0xa4]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x20e0d8], 0x84
jmp 0x100809f0
lea ecx, [ebp - 0xa4]
push ecx
push edx
lea ecx, [eax + 0x20e0d4]
call fcn.10080c40
jmp 0x100809f0
test ebx, ebx
je 0x1008090f
jmp 0x10080907