Function at 0x406fd9
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x208c
call fcn.004085c0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2084], eax
push ebx
push ebp
push esi
push edi
mov edx, ecx
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x28]
push edx
mov dword [esp + 0x14], 0x8020
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCR110.dll__dup]
mov edi, eax
or ebp, 0xffffffff
pop ecx
cmp edi, ebp
jne 0x407036
mov eax, ebp
mov ecx, dword [esp + 0x2094]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0x208c
ret
push dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCR110.dll_malloc]
call ebx
mov esi, eax
pop ecx
test esi, esi
jne 0x407053
push edi
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
jmp 0x40701b
push dword [esp + 0x10]
call ebx
mov ebx, eax
pop ecx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x407075
push edi
call dword [sym.imp.MSVCR110.dll__close]
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x407050
push 2
push 0xfffffea2
push edi
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, ebp
jne 0x4070a5
push edi
call dword [sym.imp.MSVCR110.dll__close]
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
push ebx
call esi
add esp, 0xc
jmp 0x40701b
push dword [esp + 0x10]
push 0
push esi
call sub.MSVCR110.dll_memset
mov ebp, 0x15e
push ebp
push esi
push edi
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0x18
cmp eax, ebp
je 0x4070e4
push edi
call dword [sym.imp.MSVCR110.dll__close]
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
push ebx
call esi
add esp, 0xc
or eax, 0xffffffff
jmp 0x40701d
mov ebp, 0x15d
cmp byte [esi + ebp], 0x3a
je 0x4070f4
dec ebp
jns 0x4070e9
jmp 0x4070c6
lea eax, [esi + 1]
add eax, ebp
mov dword [esp + 0x18], eax
je 0x4070c6
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__fstat64i32]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4070c6
mov eax, dword [esp + 0x54]
add eax, 0xfffffea2
add eax, ebp
mov dword [esp + 0x20], eax
js 0x4070c6
push 0
push 0
push edi
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4070c6
call dword [sym.imp.libeay32.dll_EVP_MD_CTX_create]
mov ebp, eax
test ebp, ebp
je 0x4070c6
push 0
call dword [sym.imp.libeay32.dll_EVP_sha256]
push eax
push ebp
call dword [sym.imp.libeay32.dll_EVP_DigestInit_ex]
and dword [esp + 0x20], 0
jmp 0x407186
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
jge 0x4071a5
push ecx
lea eax, [esp + 0x94]
push eax
push ebp
call dword [sym.imp.libeay32.dll_EVP_DigestUpdate]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
push 0x2000
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__read]
mov ecx, eax
add esp, 0x18
test ecx, ecx
jg 0x407159
jmp 0x4071ba
sub eax, edx
push eax
lea eax, [esp + 0x94]
push eax
push ebp
call dword [sym.imp.libeay32.dll_EVP_DigestUpdate]
add esp, 0xc
push 0
lea eax, [esp + 0x74]
push eax
push ebp
call dword [sym.imp.libeay32.dll_EVP_DigestFinal_ex]
push ebp
call dword [sym.imp.libeay32.dll_EVP_MD_CTX_destroy]
push str.100002053
push str.14783905874077467090262228516557917570254599638376203532031989214105552847269687489771975792123442185817287694951949800908791527542017115600501303394778618535864845235700041590056318230102449612217458549016089313306591388590790796515819654102320725712300822356348724011232654837503241736177907784198700834440681124727060540035754699658105895050096576226753008596881698828185652424901921668758326578462003247906470982092298106789657211905488986281078346361469524484829559560886227198091995498440676639639830463593211386055065360288422394053998134458623712540683294034953818412458362198117811990006021989844180721010947
push dword [esp + 0x30]
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.libav.dll_Ordinal_44216]
add esp, 0x20
test eax, eax
jne 0x4070c6
push eax
push eax
push edi
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4070c6
xor ebx, ebx
xor ebp, ebp
lea eax, [esp + 0x90]
add eax, ebp
push 1
push eax
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0xc
test eax, eax
jle 0x407245
mov eax, dword [esp + 0x18]
inc ebp
cmp byte [eax], 0x3a
jne 0x40723d
inc ebx
cmp ebx, 3
je 0x407245
cmp ebp, 0x1fff
jl 0x40720f
mov ebx, dword [esp + 0x1c]
cmp ebp, 0x2000
jae 0x407421
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x94]
push str.ClamAV_Diff:_u:_u:
push eax
mov byte [esp + ebp + 0x9c], 0
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x4070c6
push 0x40df08
push edi
call dword [sym.imp.libav.dll_Ordinal_44292]
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x4070c6
mov edi, dword [esp + 0x24]
jmp 0x407387
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
cmp edi, ecx
cmovb ecx, eax
push ecx
push esi
push ebp
call dword [sym.imp.libav.dll_Ordinal_44291]
add esp, 0xc
test eax, eax
je 0x407405
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072c7
sub ecx, edx
sub edi, ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.libav.dll_Ordinal_44214]
pop ecx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072e3
sub ecx, edx
je 0x407387
cmp byte [esi], 0x23
jne 0x407370
push 6
push str.LSIZE
push esi
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x407387
lea eax, [esp + 0x10]
push eax
push str.LSIZE__u
push esi
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x407387
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x8020]
cmp eax, 0x9f7fe0
ja 0x407366
mov edi, dword [sym.imp.MSVCR110.dll_realloc]
push ecx
push esi
call edi
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
push ebx
call edi
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x4073c9
test edi, edi
je 0x4073c9
mov ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, eax
jmp 0x407387
mov dword [esp + 0x10], 0x8020
jmp 0x407387
push dword [esp + 0x10]
lea edx, [esp + 0x2c]
push ebx
mov ecx, esi
call fcn.00406eea
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x407405
test edi, edi
jne 0x4072a2
push ebp
call dword [sym.imp.libav.dll_Ordinal_44293]
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
push ebx
call esi
add esp, 0xc
cmp dword [esp + 0x28], edi
je 0x40741a
push dword [esp + 0x28]
push str.cdiff_apply:_File__s_was_not_properly_closed_n
call fcn.004077c4
pop ecx
pop ecx
lea ecx, [esp + 0x28]
call fcn.00406298
jmp 0x4070dc
lea ecx, [esp + 0x28]
call fcn.00406298
push ebp
call dword [sym.imp.libav.dll_Ordinal_44293]
mov eax, dword [esp + 0x18]
pop ecx
test eax, eax
jne 0x4073f2
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
test edi, edi
je 0x4073fb
push edi
jmp 0x4073fc
mov esi, dword [sym.imp.MSVCR110.dll_free]
push eax
call esi
push ebx
call esi
pop ecx
pop ecx
jmp 0x4070dc
lea ecx, [esp + 0x28]
call fcn.00406298
push ebp
call dword [sym.imp.libav.dll_Ordinal_44293]
jmp 0x4070cd
xor eax, eax
jmp 0x40701d
call fcn.00407d3c
int3