Function at 0x401a60
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1074
call fcn.0045ef20
mov eax, dword [0x476400]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
push edi
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ebx, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CryptAcquireContext_failed:
call fcn.00403150
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov edx, 0x4724b4
mov ecx, eax
call fcn.00403150
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0045e62e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CryptCreateHash_failed:
call fcn.00403150
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov edx, 0x4724b4
mov ecx, eax
call fcn.00403150
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0045e62e
mov esp, ebp
pop ebp
ret
push 0x472568
lea eax, [esp + 0x14]
push str.autoupdate_new.exe
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x401d57
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401d57
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
push 0x1000
lea eax, [esp + 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x401bee
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop word [eax + eax]
push 0
push eax
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x24]
call edi
test eax, eax
je 0x401c3f
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push 0x1000
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x401bc0
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [esp + 0x1c]
push 0
push eax
lea eax, [esp + 0x28]
push eax
push 2
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x401c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CryptGetHashParam_failed:
call fcn.00403150
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
jmp 0x401d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CryptHashData_failed:
call fcn.00403150
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov edx, 0x4724b4
mov ecx, eax
call fcn.00403150
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x401d7f
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x401cb0
lea edi, [esp + 0x54]
nop dword [eax]
movzx eax, byte [esp + esi + 0x20]
push eax
push str._02x
push 3
push edi
call fcn.00401050
inc esi
add esp, 0x10
add edi, 2
cmp esi, dword [esp + 0x1c]
jb 0x401c90
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea eax, [esp + 0x30]
xor edi, edi
sub ebx, eax
nop
lea esi, [esp + 0x30]
add esi, edi
movsx eax, byte [ebx + esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
inc edi
mov byte [esi], al
add esp, 4
cmp edi, 0x20
jl 0x401cd0
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x30]
lea eax, [esp + 0x54]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401d38
test dl, dl
je 0x401d1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401d38
add eax, 2
add ecx, 2
test dl, dl
jne 0x401d00
xor eax, eax
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0045e62e
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0045e62e
mov esp, ebp
pop ebp
ret
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Could_not_open_file_for_hashing:
call fcn.00403150
mov edx, str.autoupdate_new.exe
mov ecx, eax
call fcn.00403150
mov edx, 0x4724b4
mov ecx, eax
call fcn.00403150
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x107c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045e62e
mov esp, ebp
pop ebp
ret