Function at 0x407f30
Capabilities:
Encode data using xor
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4237cc]
push ebp
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407f64
pop esi
xor eax, eax
pop ebp
add esp, 0x6c
ret 0x14
push ebx
push edi
push esi
push ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
jbe 0x40815d
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x14]
mov esi, 4
push 0
push edx
lea eax, [esp + 0x24]
push esi
push eax
push ebp
lea edi, [esp + 0x30]
call ebx
test eax, eax
je 0x407fd5
mov eax, dword [esp + 0x14]
cmp esi, eax
je 0x407fdb
test eax, eax
je 0x407fdb
lea ecx, [esp + 0x14]
sub esi, eax
push 0
add edi, eax
push ecx
push esi
push edi
push ebp
call ebx
test eax, eax
jne 0x407fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x18]
mov esi, 0x54
push 0
push edx
lea eax, [esp + 0x30]
push esi
push eax
push ebp
lea edi, [esp + 0x3c]
call ebx
test eax, eax
je 0x408018
mov eax, dword [esp + 0x18]
cmp esi, eax
je 0x40801e
test eax, eax
je 0x40801e
lea ecx, [esp + 0x18]
sub esi, eax
push 0
add edi, eax
push ecx
push esi
push edi
push ebp
call ebx
test eax, eax
jne 0x407ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dl, byte [esp + 0x28]
mov al, 0x7a
test dl, dl
lea ecx, [esp + 0x28]
je 0x408040
xor dl, al
inc al
mov byte [ecx], dl
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x40802c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dl, byte [esp + 0x4c]
lea ecx, [esp + 0x4c]
test dl, dl
je 0x408060
xor dl, al
inc al
mov byte [ecx], dl
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x40804c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x80]
lea esi, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40808f
test cl, cl
je 0x40808b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40808f
add eax, 2
add esi, 2
test cl, cl
jne 0x40806b
xor eax, eax
jmp 0x408094
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4080d0
mov eax, dword [esp + 0x84]
lea esi, [esp + 0x4c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4080c7
test cl, cl
je 0x4080c3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4080c7
add eax, 2
add esi, 2
test cl, cl
jne 0x4080a3
xor eax, eax
jmp 0x4080cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4080ee
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax + 4]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x407f82
jmp 0x40815d
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov dword [edx], eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x80]
push 0
lea esi, [eax*4]
push edx
push esi
push edi
push ebp
mov dword [esp + 0x34], 1
mov dword [ecx], eax
call ebx
test eax, eax
je 0x408157
mov eax, dword [esp + 0x80]
cmp esi, eax
je 0x40815d
test eax, eax
je 0x40815d
add edi, eax
sub esi, eax
lea eax, [esp + 0x80]
push 0
push eax
push esi
push edi
push ebp
call ebx
test eax, eax
jne 0x408131
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x6c
ret 0x14