Function at 0x40d740
Capabilities:
Create thread
Encode data using xor
Hash data with md5
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a03
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x43500c]
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 ebx, ecx
mov dword [ebp - 0x8a4], ebx
mov edi, dword [ebp + 8]
push 0x430f70
push edi
mov dword [ebp - 0x898], edi
call fcn.0041c339
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d7d5
mov edx, str.Failed_to_open_file
call fcn.00402590
push edi
push eax
lea eax, [ebp - 0x83c]
push str._s:__s.
push eax
call fcn.00407610
add esp, 0xc
lea edx, [esi + 0x10]
mov eax, esp
push ecx
mov dword [eax], esi
lea ecx, [ebp - 0x83c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
call fcn.0040aae0
add esp, 8
jmp 0x40de98
push esi
call fcn.0041c1c6
add esp, 4
push eax
call fcn.0041bde7
mov edi, eax
add esp, 4
cmp edi, 0x410
ja 0x40d80a
push 0x10
push 0
push str.Bad_file_size.
push dword [ebx + 4]
call fcn.0040b060
add esp, 0x10
jmp 0x40de8f
push esi
push 0x10
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.0041c521
add esp, 0x10
cmp eax, 0x10
jne 0x40de82
sub edi, eax
push edi
mov dword [ebp - 0x8b0], edi
call fcn.0041c5d1
add esp, 4
mov dword [ebx + 0x822c], eax
test eax, eax
je 0x40de8f
push esi
push edi
push 1
push eax
call fcn.0041c521
add esp, 0x10
cmp edi, eax
jne 0x40de82
push esi
call fcn.0041bee0
add esp, 4
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x894], 0x67452301
mov dword [ebp - 0x890], 0xefcdab89
push dword [ebx + 0x822c]
mov dword [ebp - 0x88c], 0x98badcfe
mov dword [ebp - 0x888], 0x10325476
call fcn.0041c193
mov edx, dword [ebx + 0x822c]
lea ecx, [ebp - 0x894]
add esp, 4
push eax
call fcn.00401150
add esp, 4
lea edx, [ebp - 0x883]
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x1c], al
mov al, byte [edx - 4]
mov byte [ebp + ecx - 0x1b], al
mov al, byte [edx - 3]
mov byte [ebp + ecx - 0x1a], al
mov al, byte [edx - 2]
mov byte [ebp + ecx - 0x19], al
add ecx, 4
cmp ecx, 8
jb 0x40d8d0
mov edx, dword [ebp - 0x884]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
mov edx, 0x42fe48
cmovae eax, ecx
lea ecx, [ebp - 0x894]
push eax
call fcn.00401150
add esp, 4
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x894]
push 8
call fcn.00401150
add esp, 4
lea edx, [ebp - 0x893]
xor ecx, ecx
mov al, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x2c], al
mov al, byte [edx - 4]
mov byte [ebp + ecx - 0x2b], al
mov al, byte [edx - 3]
mov byte [ebp + ecx - 0x2a], al
mov al, byte [edx - 2]
mov byte [ebp + ecx - 0x29], al
add ecx, 4
cmp ecx, 0x10
jb 0x40d946
lea ecx, [ebp - 0x2c]
mov esi, 0xc
lea edx, [ebp - 0x3c]
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40de6c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40d980
mov edx, dword [ebx + 0x822c]
xor ecx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x898], ecx
test edi, edi
je 0x40da54
nop
and ecx, 0x3f
mov eax, 0x430450
add ecx, ecx
sub eax, ecx
movzx esi, word [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, word [eax]
mov ecx, esi
mov eax, dword [ebp - 0x898]
not ecx
mov ebx, eax
mov edx, edi
shl edx, 8
xor eax, 0x67452301
or ecx, edx
xor ebx, 0xefcdab89
and ecx, eax
or edx, esi
mov eax, dword [ebp - 0x898]
and edx, eax
or ecx, edx
shl esi, 8
mov edx, ecx
mov dword [ebp - 0x8b8], ecx
mov ecx, eax
and edx, ebx
xor eax, 0x10325476
or ecx, 0x5aa5
and ecx, eax
or esi, edi
mov edi, dword [ebp - 0x8b0]
or edx, ecx
mov ecx, dword [ebp - 0x898]
xor edx, esi
xor edx, ecx
mov eax, ecx
xor edx, 0x98badcfe
or eax, 0xa55a
or edx, ebx
xor edx, eax
mov eax, dword [ebp - 0x18]
xor byte [ecx + eax], dl
inc ecx
mov dword [ebp - 0x898], ecx
cmp ecx, edi
jb 0x40d9b0
mov ebx, dword [ebp - 0x8a4]
mov edx, dword [ebx + 0x822c]
push edi
lea ecx, [ebx + 0x825c]
call fcn.00403ea0
add esp, 4
test al, al
jne 0x40da80
push 0x10
push 0
push str.Bad_file.
push dword [ebx + 4]
call fcn.0040b060
add esp, 0x10
jmp 0x40de98
imul ecx, dword [ebx + 0x8220], 0x104
mov edx, dword [ebx + 4]
add ecx, 0xa0
add ecx, ebx
call fcn.0040b0f0
mov dword [ebx + 0x8228], eax
test eax, eax
je 0x40de98
mov ecx, ebx
call fcn.0040cf80
test al, al
je 0x40de98
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [ebx + 4]
call esi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x401
push dword [ebx + 4]
call esi
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0x8254], 1
jne 0x40de2b
mov ecx, dword [ebx + 0x8228]
mov eax, dword [ecx]
call dword [eax + 0x2e8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x8ac], ecx
mov ecx, dword [eax + 0xc]
xor eax, eax
and ecx, 0x1e000
or eax, ecx
je 0x40de2b
movsd xmm1, qword [0x431550]
mov eax, edi
movd xmm0, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov esi, dword [ebx + 0x822c]
push ecx
push 0x500
lea ecx, [ebp - 0x28]
addsd xmm0, qword [eax*8 + 0x431590]
divsd xmm1, xmm0
movsd qword [ebp - 0x8b4], xmm0
movsd qword [ebp - 0x1c], xmm1
call fcn.0040f4d0
push ecx
push 0x500
lea ecx, [ebp - 0x8ac]
mov dword [ebp - 4], 0
call fcn.0040f4d0
push edi
mov byte [ebp - 4], 1
push esi
mov esi, dword [ebp - 0x28]
push esi
call fcn.00413860
add esp, 0xc
push str.Writing
push 0
push 0x7e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebx + 0x8228]
push esi
push 0x500
push 0x45
mov eax, dword [ecx]
call dword [eax + 0x304]
mov dword [ebp - 0x898], eax
test eax, eax
jns 0x40dc3c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8ac]
test ecx, ecx
je 0x40dc01
mov edx, dword [ebp - 0x8a4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40dbf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40decd
push edx
push ecx
call fcn.0040ff97
add esp, 8
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40de12
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40de08
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded2
jmp 0x40de08
movsd xmm1, qword [ebp - 0x8b4]
mulsd xmm1, qword [ebp - 0x1c]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
movsd xmm0, qword [ebx + 0x8230]
push 0
push 0
addsd xmm0, xmm1
movsd qword [ebp - 0x8b4], xmm1
push 0x7e8
push dword [ebx + 4]
movsd qword [ebx + 0x8230], xmm0
call edi
push str.Reading
push 0
push 0x7e8
push dword [ebx + 4]
call edi
mov ecx, dword [ebx + 0x8228]
mov edi, dword [ebp - 0x8ac]
push edi
push 0x500
mov eax, dword [ecx]
push 0x45
call dword [eax + 0x308]
mov dword [ebp - 0x898], eax
test eax, eax
jns 0x40dce9
mov byte [ebp - 4], 0
test edi, edi
je 0x40dc01
mov ecx, dword [ebp - 0x8a4]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40dce2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded7
push ecx
push edi
jmp 0x40dbf9
cmp eax, 0x500
je 0x40dd6a
mov byte [ebp - 4], 0
test edi, edi
je 0x40dd28
mov ecx, dword [ebp - 0x8a4]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40dd1e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded2
push ecx
push edi
call fcn.0040ff97
add esp, 8
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40dd60
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40dd56
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded2
push ecx
push esi
call fcn.0040ff97
add esp, 8
mov eax, 0x80004005
jmp 0x40de18
movsd xmm0, qword [ebx + 0x8230]
addsd xmm0, qword [ebp - 0x8b4]
push 0
push 0
push 0x7e8
push dword [ebx + 4]
movsd qword [ebx + 0x8230], xmm0
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
mov dword [ebp - 0x898], 0x4fc
mov edx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40ddc3
add ecx, 4
add edx, 4
sub dword [ebp - 0x898], 4
jae 0x40dda2
mov dword [ebp - 0x898], 1
jmp 0x40ddcd
mov dword [ebp - 0x898], 0x80070017
mov byte [ebp - 4], 0
test edi, edi
je 0x40dc01
mov ecx, dword [ebp - 0x8a4]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40dce2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40dce2
jmp 0x40ded2
push ecx
push esi
call fcn.0040ff97
add esp, 8
mov eax, dword [ebp - 0x898]
push 0
push eax
push 0x7e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40de98
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x82d4], eax
lea eax, [ebp - 0x8a4]
push eax
push 0
push ebx
push 0x40cf60
push 0
push 0
call fcn.0041c0b4
add esp, 0x18
mov dword [ebx + 0x8224], eax
jmp 0x40de98
push 0x10
push 0
push str.Failed_to_verify_the_checksum.
push dword [ebx + 4]
call fcn.0040b060
add esp, 0x10
jmp 0x40de98
push dword [ebp - 0x898]
mov ecx, ebx
call fcn.0040e980
push esi
call fcn.0041bee0
add esp, 4
cmp dword [ebx + 0x8224], 0
mov ecx, ebx
jne 0x40deaa
call fcn.0040bbc0
jmp 0x40deaf
call fcn.0040b9d0
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.0040fcb7
mov esp, ebp
pop ebp
ret 4
call fcn.004160bc
call fcn.004160bc
call fcn.004160bc
int3