Function at 0x4018f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406c6b
mov eax, dword fs:[0]
push eax
mov eax, 0x21fc
call fcn.00406bd0
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21a4], 0
mov dword [ebp - 0x2028], 0
mov dword [ebp - 0x2024], 0
mov dword [ebp - 0x21b0], 0
mov dword [ebp - 0x202c], 0x10
push 0xb0
lea ecx, [ebp - 0x20dc]
call fcn.004018d0
push 1
lea ecx, [ebp - 0x20dc]
call fcn.00402940
mov dword [ebp - 4], 0
push 0xb8
lea ecx, [ebp - 0x2194]
call fcn.004018d0
push 1
push 0x40
push 0x20
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2194]
call fcn.00401ff0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2194]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x2194]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
movzx eax, al
test eax, eax
je 0x4019dc
push str.Unable_to_open_file
lea ecx, [ebp - 0x21bc]
call fcn.004013e0
push 0x409538
lea ecx, [ebp - 0x21bc]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0x2028]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401a19
push str.CryptAcquireContext_failed
lea ecx, [ebp - 0x21c8]
call fcn.004013e0
push 0x409538
lea eax, [ebp - 0x21c8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0x2024]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x2028]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401a6a
push 0
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.CryptCreateHash_failed
lea ecx, [ebp - 0x21d4]
call fcn.004013e0
push 0x409538
lea ecx, [ebp - 0x21d4]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
push 0x2000
lea edx, [ebp - 0x2020]
push edx
lea ecx, [ebp - 0x2194]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov dword [ebp - 0x21a0], eax
mov eax, dword [ebp - 0x21a0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x21a0]
add edx, dword [ecx + 4]
mov ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
movzx eax, al
test eax, eax
je 0x401b13
push 0
lea ecx, [ebp - 0x2194]
call dword [sym.imp.MSVCP140.dll_public:_long_long___int64____thiscall_std::basic_istream_char__struct_std::char_traits_char__::gcount_void_const]
push eax
lea ecx, [ebp - 0x2020]
push ecx
mov edx, dword [ebp - 0x2024]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x401b0e
mov eax, dword [ebp - 0x2024]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0x2028]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x408404
lea ecx, [ebp - 0x21e0]
call fcn.004013e0
push 0x409538
lea edx, [ebp - 0x21e0]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x401a6a
lea ecx, [ebp - 0x2194]
call dword [sym.imp.MSVCP140.dll_public:_long_long___int64____thiscall_std::basic_istream_char__struct_std::char_traits_char__::gcount_void_const]
mov dword [ebp - 0x21ac], eax
mov dword [ebp - 0x21a8], edx
cmp dword [ebp - 0x21a8], 0
jl 0x401ba3
jg 0x401b3f
cmp dword [ebp - 0x21ac], 0
jbe 0x401ba3
push 0
lea ecx, [ebp - 0x2194]
call dword [sym.imp.MSVCP140.dll_public:_long_long___int64____thiscall_std::basic_istream_char__struct_std::char_traits_char__::gcount_void_const]
push eax
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp - 0x2024]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x401ba3
mov edx, dword [ebp - 0x2024]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.CryptHashData_failed
lea ecx, [ebp - 0x21ec]
call fcn.004013e0
push 0x409538
lea ecx, [ebp - 0x21ec]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea edx, [ebp - 0x202c]
push edx
lea eax, [ebp - 0x20]
push eax
push 2
mov ecx, dword [ebp - 0x2024]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401c52
mov dword [ebp - 0x2198], 0
jmp 0x401be2
mov edx, dword [ebp - 0x2198]
add edx, 1
mov dword [ebp - 0x2198], edx
mov eax, dword [ebp - 0x2198]
cmp eax, dword [ebp - 0x202c]
jae 0x401c50
mov ecx, dword [ebp - 0x2198]
movzx edx, byte [ebp + ecx - 0x20]
push edx
push 0x30
lea eax, [ebp - 0x2199]
push eax
call fcn.00405320
add esp, 8
push eax
push 0
push 2
lea ecx, [ebp - 0x2208]
push ecx
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
add esp, 0xc
push eax
push 0x401590
lea ecx, [ebp - 0x20cc]
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___class_std::ios_base_____cdecl___class_std::ios_base___]
push eax
call fcn.004052f0
add esp, 8
push eax
call fcn.00405340
add esp, 8
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___int_]
jmp 0x401bd3
jmp 0x401c8f
mov edx, dword [ebp - 0x2024]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.CryptGetHashParam_failed
lea ecx, [ebp - 0x21f8]
call fcn.004013e0
push 0x409538
lea ecx, [ebp - 0x21f8]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, dword [ebp - 0x2024]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20dc]
call fcn.004028a0
mov edx, dword [ebp - 0x21a4]
or edx, 1
mov dword [ebp - 0x21a4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2194]
call fcn.00401d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20dc]
call fcn.00401d10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405e67
mov esp, ebp
pop ebp
ret