Function at 0x409870
Capabilities:
Check if file exists
Hash data via wincrypt
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ea64
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10d8
call fcn.0041dee0
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10dc], esi
push 0x709
mov dword [ebp - 0x10a0], 0
call fcn.0040c3b7
add esp, 4
mov dword [ebp - 0x10e4], eax
push 0xe12
call fcn.0040c3b7
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x10e4]
mov dword [ebp - 0x10e8], edi
test eax, eax
je 0x409920
push 0x709
push 0
push eax
call fcn.0040dbe0
add esp, 0xc
push 0x708
push dword [ebp - 0x10e4]
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test edi, edi
je 0x409946
push 0x70a
push 0
push edi
call fcn.0040dbe0
add esp, 0xc
push 0x708
push edi
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
movups xmm0, xmmword [str.0123456789abcdef]
mov al, byte [0x42b914]
mov byte [ebp - 0x18], al
movups xmmword [ebp - 0x28], xmm0
call fcn.004084c0
mov ecx, eax
test ecx, ecx
je 0x40a240
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1098], edi
push dword [ebp - 0x10e4]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1070]
mov dword [ebp - 0x1070], 0
call fcn.0040ac20
mov byte [ebp - 4], 1
call fcn.004084c0
mov ecx, eax
test ecx, ecx
je 0x40a24a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x107c], eax
mov eax, 0x42a436
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x107c]
test eax, 0xffff0000
jne 0x4099de
movzx eax, ax
push eax
call fcn.0040af80
jmp 0x4099ea
push 0
push 0x42a436
call fcn.0040b150
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1070]
call fcn.0040a990
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x42b91c
push dword [ebp - 0x1070]
call fcn.00411b44
add esp, 8
test eax, eax
je 0x409b42
mov ecx, dword [ebp - 0x1070]
sub eax, ecx
mov dword [ebp - 0x10e0], ecx
cmp eax, 0xffffffff
je 0x409b42
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0x106c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409a71
lea ecx, [ebp - 0x10a4]
mov dword [ebp - 0x10a4], 0
push ecx
call eax
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x10e0]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x109c], eax
cmp eax, 0xffffffff
je 0x409b42
lea ecx, [ebp - 0x1084]
call fcn.00405820
test al, al
je 0x409b42
push 0
lea eax, [ebp - 0x106c]
push eax
push 0x400
lea eax, [ebp - 0x1068]
push eax
push dword [ebp - 0x109c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409b36
nop word [eax + eax]
mov ecx, dword [ebp - 0x106c]
test ecx, ecx
je 0x409cc9
mov eax, dword [ebp - 0x1080]
test eax, eax
je 0x409b42
push 0
push ecx
lea ecx, [ebp - 0x1068]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x409c92
push 0
lea eax, [ebp - 0x106c]
push eax
push 0x400
lea eax, [ebp - 0x1068]
push eax
push dword [ebp - 0x109c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409ae0
push dword [ebp - 0x109c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x42b970
push 0x3ef
push esi
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
call esi
push 0x42a436
push 0x3f1
push dword [ebp - 0x10dc]
call esi
push str.STD_CTIME:
push 0x3f3
push dword [ebp - 0x10dc]
call esi
push str.STD_MTIME:
push 0x3f4
push dword [ebp - 0x10dc]
call esi
push str.MFT_CTIME:
push 0x3f6
push dword [ebp - 0x10dc]
call esi
push str.MFT_MTIME:
push 0x3f7
push dword [ebp - 0x10dc]
call esi
push str.MFT_METIME:
push 0x3f9
push dword [ebp - 0x10dc]
call esi
push str.MFT_ATIME:
push 0x3f5
push dword [ebp - 0x10dc]
call esi
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x107c]
call fcn.0040ab40
mov eax, dword [ebp - 0x10e4]
test eax, eax
je 0x409bf8
push eax
call fcn.0040bc7e
add esp, 4
mov eax, dword [ebp - 0x10e8]
test eax, eax
je 0x409c0b
push eax
call fcn.0040bc7e
add esp, 4
mov esi, dword [ebp - 0x107c]
mov ecx, esi
call fcn.004087a0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409c34
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x1070]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409c58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x409c74
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bc0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x1084]
test eax, eax
je 0x409caf
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x1084], 0
mov eax, dword [ebp - 0x1080]
test eax, eax
je 0x409b42
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x409b42
test eax, eax
je 0x409b36
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x1084]
call fcn.004058a0
test al, al
je 0x409b42
mov eax, dword [ebp - 0x109c]
test eax, eax
je 0x409cf8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.FILE
push 0x3ef
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
xor eax, eax
mov dword [ebp - 0x1074], eax
movzx ecx, byte [ebp + eax - 0x68]
mov eax, ecx
shr ecx, 4
and eax, 0xf
movsx eax, byte [ebp + eax - 0x28]
push eax
movsx eax, byte [ebp + ecx - 0x28]
push eax
lea eax, [ebp - 0x1078]
push str._c_c
push eax
call fcn.0040ba90
lea ecx, [ebp - 0x1078]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d47
mov esi, dword [edi - 0xc]
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x109c], eax
sub eax, edi
sub ecx, edx
mov dword [ebp - 0x10a8], eax
mov dword [ebp - 0x10e0], esi
js 0x40a236
push ecx
lea eax, [ebp - 0x1078]
push eax
call fcn.00411ed4
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x10a4], edx
add esp, 8
cmp ecx, esi
jl 0x40a236
add esi, edx
js 0x40a236
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x409dcb
push esi
lea ecx, [ebp - 0x1098]
call fcn.0040b280
mov edi, dword [ebp - 0x1098]
mov edx, dword [ebp - 0x10a4]
mov eax, dword [ebp - 0x10e0]
mov ecx, dword [ebp - 0x10a8]
cmp ecx, eax
ja 0x409ddf
add ecx, edi
jmp 0x409de5
mov ecx, dword [ebp - 0x109c]
push edx
push ecx
lea ecx, [eax + edi]
call fcn.00405950
add esp, 8
cmp esi, dword [edi - 8]
jg 0x40a236
mov eax, dword [ebp - 0x1074]
inc eax
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov dword [ebp - 0x1074], eax
cmp eax, 0x20
jb 0x409d11
call fcn.004084c0
mov ecx, eax
test ecx, ecx
je 0x40a254
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1074], eax
mov eax, str.https:__www.virustotal.com__file_
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1074]
test eax, 0xffff0000
jne 0x409e58
movzx eax, ax
push eax
call fcn.0040af80
jmp 0x409e64
push 0x22
push str.https:__www.virustotal.com__file_
call fcn.0040b150
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x1074]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x106c], 0
mov dword [ebp - 0x1080], eax
test ecx, ecx
je 0x409e95
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x409ead
call fcn.004084c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x40a25e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push dword [edi - 0xc]
add eax, 0x10
mov dword [ebp - 0x10a0], 1
push edi
push dword [esi - 0xc]
mov edx, esi
mov dword [ebp - 0x106c], eax
lea ecx, [ebp - 0x106c]
call fcn.0040af00
add esp, 0xc
lea eax, [ebp - 0x106c]
lea ecx, [ebp - 0x107c]
push eax
call fcn.0040ab40
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x106c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409f12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10e8]
test esi, esi
je 0x40a1ee
mov dword [ebp - 0x10a0], 0
mov dword [ebp - 0x10a8], 0
mov dword [ebp - 0x109c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
mov dword [ebp - 0x10a4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409f7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x40a0a4
push 0
push 0x42f860
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x40a08b
push 0
push 0
lea eax, [ebp - 0x109c]
push eax
push esi
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
test eax, eax
je 0x40a07d
push dword [ebp - 0x109c]
push 0
push dword [ebp - 0x10a4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10e0], eax
push 0
test eax, eax
je 0x40a065
push eax
lea eax, [ebp - 0x109c]
push eax
push esi
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
test eax, eax
je 0x40a039
lea eax, [ebp - 0x10a8]
push eax
push 0
push dword [ebp - 0x109c]
push dword [ebp - 0x10e0]
push dword [ebp - 0x10a0]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
mov dword [ebp - 0x10a8], eax
push 0
test eax, eax
je 0x40a03b
push eax
push dword [ebp - 0x10a0]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push 0
push dword [ebp - 0x10a0]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
mov eax, 1
jmp 0x40a049
push 0
push dword [ebp - 0x10a0]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
xor eax, eax
mov dword [ebp - 0x106c], eax
push dword [ebp - 0x10e0]
push 0
push dword [ebp - 0x10a4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40a093
push dword [ebp - 0x10a0]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
mov dword [ebp - 0x106c], 0
jmp 0x40a093
push 0
push dword [ebp - 0x10a0]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
xor eax, eax
mov dword [ebp - 0x106c], eax
test esi, esi
je 0x40a09e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x106c]
test ecx, ecx
jne 0x40a1b7
mov eax, dword [ebp - 0x10e8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10c0], eax
lea eax, [ebp - 0x10d8]
push eax
lea eax, [ebp - 0x1094]
mov dword [ebp - 0x28], 0x10
push eax
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x1094], 0xaac56b
mov dword [ebp - 0x1090], 0x11d0cd44
mov dword [ebp - 0x108c], 0xc000c28c
mov dword [ebp - 0x1088], 0xee95c24f
mov dword [ebp - 0x10b0], ecx
mov dword [ebp - 0x10d8], 0x30
mov dword [ebp - 0x10d4], ecx
mov dword [ebp - 0x10d0], ecx
mov dword [ebp - 0x10cc], 2
mov dword [ebp - 0x10c8], ecx
mov dword [ebp - 0x10c4], 1
mov dword [ebp - 0x10bc], 1
mov dword [ebp - 0x10b8], ecx
mov dword [ebp - 0x10b4], ecx
mov dword [ebp - 0x10ac], ecx
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov esi, eax
mov dword [ebp - 0x10bc], 2
lea eax, [ebp - 0x10d8]
push eax
lea eax, [ebp - 0x1094]
push eax
push 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test esi, esi
je 0x40a1b7
mov esi, dword [ebp - 0x10dc]
mov eax, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x42b960
push 0x3f1
push esi
mov dword [0x430cb0], 0
call eax
push 0x3f1
push 0
push 0x138
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a1f4
mov esi, dword [ebp - 0x10dc]
mov eax, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push str.VERIFIED
push 0x3f1
push esi
mov dword [0x430cb0], 1
call eax
push 0x3f1
push 1
push 0x138
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a1f4
mov esi, dword [ebp - 0x10dc]
mov edx, dword [ebp - 0x10e8]
mov ecx, esi
call fcn.00409570
mov edx, dword [ebp - 0x10e4]
mov ecx, esi
call fcn.00408ba0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x1080]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409be5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409be5
push 0x80070057
call fcn.004082f0
push 0x80004005
call fcn.004082f0
push 0x80004005
call fcn.004082f0
push 0x80004005
call fcn.004082f0
push 0x80004005
call fcn.004082f0
int3