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

Disassembly:
sub esp, 0x44
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push ebx
push ebp
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
pop esi
push esi
push edi
push 1
mov dword [ebp], edi
mov edx, dword [eax]
mov eax, dword [eax + 4]
push 0x80000000
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42797e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
lea eax, [esp + 0x30]
push eax
push 0x10
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x44]
xor dword [eax], 0x12345678
lea eax, [eax + 4]
dec esi
jne 0x4277e1
sub edi, dword [esp + 0x48]
movzx esi, word [esp + 0x46]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
call fcn.00404d58
pop ecx
push 0
push 0
push dword [esp + 0x50]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
imul esi, esi, 0xc
push esi
call fcn.00404d58
push esi
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x30], eax
push edi
call fcn.004279a1
push edi
call fcn.00404d44
mov eax, dword [esp + 0x38]
add esp, 0x18
mov edx, dword [esp + 0x1c]
mov ecx, eax
xor esi, esi
mov dword [esp + 0x10], ecx
lea edi, [eax + edx*8]
mov dword [esp + 0x18], edi
test edx, edx
je 0x427970
mov eax, dword [esp + 0x14]
cmp dword [ecx], eax
jne 0x42795c
mov edi, dword [esp + 0x3c]
cmp dword [ecx + 4], edi
mov edi, dword [esp + 0x18]
jne 0x42795c
mov ecx, dword [edi + esi*4]
lea eax, [edx - 1]
cmp esi, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x4c]
je 0x42789d
mov eax, dword [edi + esi*4 + 4]
sub eax, ecx
mov dword [ebp], eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x28], eax
call fcn.00404d58
mov edi, eax
mov dword [esp + 0x34], edi
pop ecx
test edi, edi
je 0x427950
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x2c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp]
xor edi, edi
add eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x3c], eax
call fcn.00404d58
mov dword [esp + 0x2c], eax
pop ecx
test eax, eax
je 0x427942
push dword [esp + 0x38]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x3c]
call fcn.004279a1
add esp, 0x10
cmp eax, dword [esp + 0x38]
jne 0x427938
push dword [ebp]
call fcn.00404d58
push dword [ebp]
mov ecx, dword [esp + 0x30]
mov edi, eax
add ecx, dword [esp + 0x3c]
push ecx
push edi
call fcn.004be440
add esp, 0x10
push dword [esp + 0x28]
call fcn.00404d44
pop ecx
push dword [esp + 0x30]
call fcn.00404d44
pop ecx
test edi, edi
jne 0x427993
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add ecx, 8
inc esi
mov dword [esp + 0x10], ecx
cmp esi, edx
jb 0x42786e
mov eax, dword [esp + 0x20]
push eax
call fcn.00404d44
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x44
ret
push dword [esp + 0x20]
call fcn.00404d44
pop ecx
mov eax, edi
jmp 0x427980