Function at 0x404890
Capabilities:
Encode data using xor
Get file size
Get graphical window text
Read file on windows

Disassembly:
sub esp, 0x1f0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
sub eax, 0
je 0x404e33
dec eax
jne 0x4050f2
mov eax, dword [0x4237cc]
push 0
push 0x80
push 4
push 0
push 3
push reloc.WS2_32.dll_bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4050f2
xor edi, edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
jbe 0x404a74
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x20]
mov edi, 4
push 0
push edx
lea eax, [esp + 0x24]
push edi
push eax
push ebp
lea ebx, [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40494b
mov eax, dword [esp + 0x20]
cmp edi, eax
je 0x404951
test eax, eax
je 0x404951
lea ecx, [esp + 0x20]
sub edi, eax
push 0
add ebx, eax
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404927
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
mov edi, 0x54
push 0
push edx
lea eax, [esp + 0x34]
push edi
push eax
push ebp
lea ebx, [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404996
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x40499c
test eax, eax
je 0x40499c
lea ecx, [esp + 0x10]
sub edi, eax
push 0
add ebx, eax
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [esp + 0x2c]
mov dl, 0x7a
test cl, cl
lea eax, [esp + 0x2c]
je 0x4049b8
xor cl, dl
inc dl
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4049aa
mov edi, dword [esi + 0xc]
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4049e7
test cl, cl
je 0x4049e3
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4049e7
add eax, 2
add edi, 2
test cl, cl
jne 0x4049bf
xor eax, eax
jmp 0x4049ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404a0e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax + 4]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4048f6
jmp 0x404a74
mov edx, dword [esp + 0x7c]
lea eax, [edx*4]
push eax
call fcn.004150af
mov ecx, dword [esp + 0x80]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esp + 0x24], eax
lea edi, [ecx*4]
push 0
push edx
push edi
push eax
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404a6e
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x404a74
test eax, eax
je 0x404a74
add ebx, eax
sub edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4050f2
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + 4]
push 0
push ecx
push 0x412
push edx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and eax, 1
push 0
push eax
push 0xf1
push 0x1b84
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 4]
shr edx, 1
and edx, 1
push 0
push edx
push 0xf1
push 0x1b85
push eax
call edi
push eax
call ebx
mov ecx, dword [esp + 0x74]
mov edx, dword [esi + 4]
shr ecx, 2
and ecx, 1
push 0
push ecx
push 0xf1
push 0x1b86
push edx
call edi
push eax
call ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 4]
shr eax, 3
and eax, 1
push 0
push eax
push 0xf1
push 0x1b87
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 4]
shr edx, 4
and edx, 1
push 0
push edx
push 0xf1
push 0x1b88
push eax
call edi
push eax
call ebx
mov ecx, dword [esp + 0x74]
mov edx, dword [esi + 4]
shr ecx, 5
and ecx, 1
push 0
push ecx
push 0xf1
push 0x1b89
push edx
call edi
push eax
call ebx
push 0
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 4]
shr eax, 6
and eax, 1
push eax
push 0xf1
push 0x1b8a
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 4]
shr edx, 7
and edx, 1
push 0
push edx
push 0xf1
push 0x1b8b
push eax
call edi
push eax
call ebx
mov ecx, dword [esp + 0x74]
mov edx, dword [esi + 4]
shr ecx, 8
and ecx, 1
push 0
push ecx
push 0xf1
push 0x1b8c
push edx
call edi
push eax
call ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 4]
shr eax, 9
and eax, 1
push 0
push eax
push 0xf1
push 0x1b8d
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 4]
shr edx, 0xa
and edx, 1
push 0
push edx
push 0xf1
push 0x1b8e
push eax
call edi
push eax
call ebx
mov ecx, dword [esp + 0x74]
mov edx, dword [esi + 4]
shr ecx, 0xb
and ecx, 1
push 0
push ecx
push 0xf1
push 0x1b8f
push edx
call edi
push eax
call ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 4]
shr eax, 0xc
and eax, 1
push 0
push eax
push 0xf1
push 0x1b90
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 4]
shr edx, 0xd
and edx, 1
push 0
push edx
push 0xf1
push 0x1b91
push eax
call edi
push eax
call ebx
mov ecx, dword [esp + 0x74]
mov edx, dword [esi + 4]
shr ecx, 0x18
and ecx, 1
push 0
push ecx
push 0xf1
push 0x1b92
push edx
call edi
push eax
call ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 4]
shr eax, 0x19
and eax, 1
push 0
push eax
push 0xf1
push 0x1b93
push ecx
call edi
push eax
call ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 4]
shr edx, 0x1a
and edx, 1
push 0
push edx
push 0xf1
push 0x1b94
push eax
call edi
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x410
push ecx
call edi
mov edx, dword [esi + 4]
push 0x40f
push edx
mov dword [esp + 0x18], eax
call edi
mov ecx, dword [0x4237c4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x180]
push 0x80
push eax
push 0x7d
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [esi + 4]
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push 0
mov edi, eax
push 0
push 0x1004
push edi
call ebx
mov dword [esp + 0x28], eax
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x404e1b
jmp 0x404d37
mov ebp, dword [esp + 0x14]
push 0
lea eax, [esp + 0x104]
push ebp
push eax
push edi
call fcn.00401e00
push 2
lea ecx, [esp + 0x94]
push ebp
push ecx
push edi
call fcn.00401e00
lea edx, [esp + 0xa0]
push edx
call fcn.004154ad
mov esi, eax
push 3
lea eax, [esp + 0xa8]
push ebp
push eax
push edi
call fcn.00401e00
lea ecx, [esp + 0xb4]
push ecx
call fcn.004154ad
mov ebp, eax
add esp, 0x38
cmp esi, ebp
jg 0x404e06
mov eax, 1
sub eax, esi
mov dword [esp + 0x18], eax
jmp 0x404da0
mov eax, dword [esp + 0x18]
add eax, esi
push esi
lea edx, [esp + 0x104]
push eax
push edx
lea eax, [esp + 0x18c]
push esi
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.004151c1
mov ecx, dword [esp + 0x94]
add esp, 0x18
xor eax, eax
test ecx, ecx
jle 0x404de3
mov edx, dword [esp + 0x24]
mov edx, dword [edx + eax*4]
inc edx
cmp edx, esi
je 0x404de3
inc eax
cmp eax, ecx
jl 0x404dd2
cmp eax, ecx
mov eax, dword [esp + 0x10]
je 0x404def
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x80]
push ecx
push 0
push 0x180
push eax
call ebx
inc esi
cmp esi, ebp
jle 0x404d9c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x404d33
mov edx, dword [esp + 0x24]
push edx
call fcn.00415417
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f0
ret
mov eax, dword [esi + 4]
push 0
push 5
push 0x412
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 1
push 0xf1
push 0x1b84
push ecx
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b85
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b86
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b87
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b88
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b89
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b8a
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b8b
push edx
call ebx
push eax
call edi
push 0
mov eax, dword [esi + 4]
push 1
push 0xf1
push 0x1b8c
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b8d
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b8e
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b8f
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b90
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b91
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b92
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b93
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 1
push 0xf1
push 0x1b94
push edx
call ebx
push eax
call edi
push 0x410
mov eax, dword [esi + 4]
push eax
call ebx
mov edx, dword [0x4237c4]
lea ecx, [esp + 0x100]
push 0x80
push ecx
push 0x7d
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esi + 4]
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
push 0
mov ebx, eax
push 0
push 0x1004
push ebx
mov dword [esp + 0x38], ebx
call edi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4050f2
jmp 0x40503c
mov ebx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x184]
push ebp
push ecx
push ebx
call fcn.00401e00
push 2
lea edx, [esp + 0x94]
push ebp
push edx
push ebx
call fcn.00401e00
lea eax, [esp + 0xa0]
push eax
call fcn.004154ad
push 3
lea ecx, [esp + 0xa8]
push ebp
push ecx
push ebx
mov esi, eax
call fcn.00401e00
lea edx, [esp + 0xb4]
push edx
call fcn.004154ad
mov ebx, eax
add esp, 0x38
cmp esi, ebx
jg 0x4050e5
mov eax, 1
sub eax, esi
mov dword [esp + 0x18], eax
jmp 0x4050a5
mov eax, dword [esp + 0x18]
add eax, esi
push esi
push eax
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x10c]
push esi
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.004151c1
mov ecx, dword [esp + 0x34]
add esp, 0x18
lea eax, [esp + 0x80]
push eax
push 0
push 0x180
push ecx
call edi
inc esi
cmp esi, ebx
jle 0x4050a1
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x405038
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f0
ret