Function at 0x4079b6
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x208c
call fcn.00408c60
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 0x407a13
mov eax, ebp
mov ecx, dword [esp + 0x2094]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401000
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 0x407a30
push edi
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
jmp 0x4079f8
push dword [esp + 0x10]
call ebx
mov ebx, eax
pop ecx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x407a52
push edi
call dword [sym.imp.MSVCR110.dll__close]
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x407a2d
push 2
push 0xfffffea2
push edi
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, ebp
jne 0x407a82
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 0x4079f8
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 0x407ac1
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 0x4079fa
mov ebp, 0x15d
cmp byte [esi + ebp], 0x3a
je 0x407ad1
dec ebp
jns 0x407ac6
jmp 0x407aa3
lea eax, [esi + 1]
add eax, ebp
mov dword [esp + 0x18], eax
je 0x407aa3
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__fstat64i32]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x407aa3
mov eax, dword [esp + 0x54]
add eax, 0xfffffea2
add eax, ebp
mov dword [esp + 0x20], eax
js 0x407aa3
push 0
push 0
push edi
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407aa3
call dword [sym.imp.libeay32.dll_EVP_MD_CTX_create]
mov ebp, eax
test ebp, ebp
je 0x407aa3
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 0x407b63
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 0x407b82
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 0x407b36
jmp 0x407b97
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 0x407aa3
push eax
push eax
push edi
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407aa3
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 0x407c22
mov eax, dword [esp + 0x18]
inc ebp
cmp byte [eax], 0x3a
jne 0x407c1a
inc ebx
cmp ebx, 3
je 0x407c22
cmp ebp, 0x1fff
jl 0x407bec
mov ebx, dword [esp + 0x1c]
cmp ebp, 0x2000
jae 0x407dfe
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 0x407aa3
push 0x40ded8
push edi
call dword [sym.imp.libav.dll_Ordinal_44292]
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x407aa3
mov edi, dword [esp + 0x24]
jmp 0x407d64
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 0x407de2
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407ca4
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 0x407cc0
sub ecx, edx
je 0x407d64
cmp byte [esi], 0x23
jne 0x407d4d
push 6
push str.LSIZE
push esi
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x407d64
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 0x407d64
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x8020]
cmp eax, 0x9f7fe0
ja 0x407d43
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 0x407da6
test edi, edi
je 0x407da6
mov ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, eax
jmp 0x407d64
mov dword [esp + 0x10], 0x8020
jmp 0x407d64
push dword [esp + 0x10]
lea edx, [esp + 0x2c]
push ebx
mov ecx, esi
call fcn.00406c6a
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x407de2
test edi, edi
jne 0x407c7f
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 0x407df7
push dword [esp + 0x28]
push str.cdiff_apply:_File__s_was_not_properly_closed_n
call fcn.004089d4
pop ecx
pop ecx
lea ecx, [esp + 0x28]
call fcn.0040792d
jmp 0x407ab9
lea ecx, [esp + 0x28]
call fcn.0040792d
push ebp
call dword [sym.imp.libav.dll_Ordinal_44293]
mov eax, dword [esp + 0x18]
pop ecx
test eax, eax
jne 0x407dcf
push esi
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
test edi, edi
je 0x407dd8
push edi
jmp 0x407dd9
mov esi, dword [sym.imp.MSVCR110.dll_free]
push eax
call esi
push ebx
call esi
pop ecx
pop ecx
jmp 0x407ab9
lea ecx, [esp + 0x28]
call fcn.0040792d
push ebp
call dword [sym.imp.libav.dll_Ordinal_44293]
jmp 0x407aaa
xor eax, eax
jmp 0x4079fa
call fcn.00401145
int3