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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412c3e
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4187bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x410
lea eax, [ebp - 0x422]
push 0
push eax
mov word [ebp - 0x424], 0
call fcn.00408110
push 0x419898
push 0x10000
call fcn.00408313
mov ebx, eax
xor eax, eax
add esp, 0x14
cmp ebx, eax
mov dword [ebp - 0x43c], ebx
je 0x40168a
lea ecx, [ebx + 0x10000]
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], ebx
jmp 0x4016a4
xor ebx, ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
lea edx, [ebp - 0x424]
push 0x208
push edx
mov dword [ebp - 4], eax
call fcn.00401030
add esp, 8
test eax, eax
je 0x4016cf
push ebx
call fcn.00408318
mov eax, 0xcb
jmp 0x401a38
push esi
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x428], eax
jne 0x401714
push ebx
call fcn.00408318
mov eax, 2
jmp 0x401a38
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x401a20
cmp esi, 0xffffffff
je 0x401a20
cmp esi, 0x10000
jbe 0x40175a
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x43c]
call fcn.00401c10
mov eax, 0x570
jmp 0x401a3b
lea eax, [esi + 1]
push eax
call fcn.00408c39
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40178c
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x43c]
call fcn.00401c10
lea eax, [ebx + 0xe]
jmp 0x401a3b
mov eax, dword [ebp - 0x428]
push 0
lea edx, [ebp - 0x440]
push edx
push esi
push ebx
push eax
mov dword [ebp - 0x440], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x428]
push ecx
mov dword [ebp - 0x42c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x42c], 0
je 0x401a05
cmp dword [ebp - 0x440], esi
jne 0x401a05
mov edx, dword [ebx]
mov eax, 4
cmp esi, eax
mov dword [ebp - 0x428], edx
jbe 0x4017fb
jmp 0x4017f0
xor byte [eax + ebx], 0x2b
add eax, 1
cmp eax, esi
jb 0x4017f0
sub esi, 4
lea eax, [ebx + 4]
push esi
push eax
call fcn.00401000
add esp, 8
cmp dword [ebp - 0x428], eax
jne 0x4019e8
lea eax, [ebx + 4]
movzx ecx, si
add ecx, eax
mov dword [ebp - 0x434], ecx
push edi
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x430], eax
call fcn.00401d80
lea edx, [edi + 4]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea edx, [edi + 0x10]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea ecx, [edi + 0x18]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea edx, [edi + 0x1c]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea ecx, [edi + 0x24]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00401d80
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x42c]
xor esi, esi
push eax
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
call fcn.00401cd0
test al, al
je 0x401911
mov ecx, dword [ebp - 0x42c]
cmp ecx, esi
je 0x401911
mov eax, dword [ebp - 0x428]
cmp ax, si
je 0x401911
movzx edx, ax
push edx
push ecx
lea ecx, [edi + 0x28]
call fcn.004021a0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
call fcn.00401cd0
test al, al
je 0x40195c
mov ecx, dword [ebp - 0x42c]
cmp ecx, esi
je 0x40195c
mov eax, dword [ebp - 0x428]
cmp ax, si
je 0x40195c
movzx edx, ax
push edx
push ecx
lea ecx, [edi + 0x44]
call fcn.004021a0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
call fcn.00401cd0
test al, al
je 0x4019a7
mov ecx, dword [ebp - 0x42c]
cmp ecx, esi
je 0x4019a7
mov eax, dword [ebp - 0x428]
cmp ax, si
je 0x4019a7
movzx edx, ax
push edx
push ecx
lea ecx, [edi + 0x60]
call fcn.004021a0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00401cd0
test al, al
je 0x4019ed
mov ecx, dword [ebp - 0x42c]
cmp ecx, esi
je 0x4019ed
mov eax, dword [ebp - 0x428]
cmp ax, si
je 0x4019ed
movzx edx, ax
push edx
push ecx
lea ecx, [edi + 0x7c]
call fcn.004021a0
jmp 0x4019ed
mov esi, 0x65d
push ebx
call fcn.00408b5c
add esp, 4
lea ecx, [ebp - 0x43c]
call fcn.00401c10
mov eax, esi
jmp 0x401a3b
push ebx
call fcn.00408b5c
add esp, 4
lea ecx, [ebp - 0x43c]
call fcn.00401c10
mov eax, 0x3ee
jmp 0x401a3b
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00408318
mov eax, 0x570
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004080f8
mov esp, ebp
pop ebp
ret