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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525446
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x57a0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x344], esi
mov dword [ebp - 0x314], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
push eax
push ecx
lea ecx, [ebp - 0x314]
call fcn.0040be60
push 0xf0000000
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4076a3
push 0xb0
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004f7830
add esp, 0xc
mov dword [ebp - 0xe4], 0x553254
mov dword [ebp - 0xd4], 0x55324c
mov dword [ebp - 0x7c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x320], 2
call fcn.0040a290
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
lea eax, [ebp - 0xcc]
mov ecx, eax
mov dword [ebp - 0x318], eax
call fcn.0040ac10
mov dword [ebp - 0xcc], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 5
push str.couldnt_acquire_crypt_context
push eax
call fcn.0040be80
add esp, 8
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0xe4]
push eax
call fcn.00408590
cmp dword [eax + 0x14], 0x10
jb 0x40762b
mov eax, dword [eax]
mov dword [ebp - 0x31c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x33c]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x31c]
movq qword [ebp - 0x33c], xmm0
push eax
mov byte [ebp - 0x318], 1
call fcn.004f6a34
movaps xmm0, xmmword [0x5592f0]
add esp, 8
movups xmmword [ebp - 0x330], xmm0
mov dword [ebp - method.Exception.virtual_0], vtable.Exception.0
mov dword [ebp - method.Exception.1.virtual_0], vtable.Exception.1.0
push 0x109
push str.srcgenerator.cpp
mov edx, str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______cdecl_Generator::Md5Hash_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x340]
call fcn.0040c130
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40781f
push 0xb0
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004f7830
add esp, 0xc
mov dword [ebp - 0x194], 0x553254
mov dword [ebp - 0x184], 0x55324c
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x320], 4
call fcn.0040a290
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x194]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x198], eax
lea eax, [ebp - 0x17c]
mov ecx, eax
mov dword [ebp - 0x318], eax
call fcn.0040ac10
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 0xb
push str.couldnt_create_hash
push eax
call fcn.0040be80
add esp, 8
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x194]
push eax
call fcn.00408590
cmp dword [eax + 0x14], 0x10
jb 0x4077a7
mov eax, dword [eax]
mov dword [ebp - 0x31c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x33c]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x31c]
movq qword [ebp - 0x33c], xmm0
push eax
mov byte [ebp - 0x318], 1
call fcn.004f6a34
movaps xmm0, xmmword [0x5592f0]
add esp, 8
movups xmmword [ebp - 0x330], xmm0
mov dword [ebp - method.Exception.virtual_0], vtable.Exception.0
mov dword [ebp - method.Exception.1.virtual_0], vtable.Exception.1.0
push 0x10d
push str.srcgenerator.cpp
mov edx, str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______cdecl_Generator::Md5Hash_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x340]
call fcn.0040c130
push 0x4e9f
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.00449500
add esp, 4
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
push 0
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4079b5
push 0xb0
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.004f7830
add esp, 0xc
mov dword [ebp - 0x244], 0x553254
mov dword [ebp - 0x234], 0x55324c
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x320], 8
call fcn.0040a290
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x244]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x248], eax
lea eax, [ebp - 0x22c]
mov ecx, eax
mov dword [ebp - 0x318], eax
call fcn.0040ac10
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x12
push str.couldnt_crypt_hash_data
push eax
call fcn.0040be80
add esp, 8
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x244]
push eax
call fcn.00408590
cmp dword [eax + 0x14], 0x10
jb 0x40793d
mov eax, dword [eax]
mov dword [ebp - 0x31c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x33c]
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
push eax
lea eax, [ebp - 0x31c]
movq qword [ebp - 0x33c], xmm0
push eax
mov byte [ebp - 0x318], 1
call fcn.004f6a34
movaps xmm0, xmmword [0x5592f0]
add esp, 8
movups xmmword [ebp - 0x330], xmm0
mov dword [ebp - method.Exception.virtual_0], vtable.Exception.0
mov dword [ebp - method.Exception.1.virtual_0], vtable.Exception.1.0
push 0x112
push str.srcgenerator.cpp
mov edx, str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______cdecl_Generator::Md5Hash_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x340]
call fcn.0040c130
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x1c], 0x10
mov dword [esi + 0x10], 0
jb 0x4079e2
mov eax, dword [esi]
jmp 0x4079e4
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x10], 0x10
mov dword [ebp - 0x320], 1
jb 0x407a14
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0x10
jb 0x407a0c
mov eax, dword [esi]
mov byte [eax + 0x10], 0
jmp 0x407a26
mov eax, esi
mov byte [eax + 0x10], 0
jmp 0x407a26
mov eax, 0x10
mov ecx, esi
sub eax, dword [esi + 0x10]
push 0
push eax
call fcn.00409ce0
cmp dword [esi + 0x14], 0x10
jb 0x407a30
mov eax, dword [esi]
jmp 0x407a32
mov eax, esi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x407b50
push 0xb0
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.004f7830
add esp, 0xc
mov dword [ebp - 0x2f4], 0x553254
mov dword [ebp - 0x2e4], 0x55324c
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x320], 0x11
call fcn.0040a290
mov dword [ebp - 4], 0x16
mov eax, dword [ebp - 0x2f4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2f8], eax
lea eax, [ebp - 0x2dc]
mov ecx, eax
mov dword [ebp - 0x318], eax
call fcn.0040ac10
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
lea eax, [ebp - 0x2e4]
mov byte [ebp - 4], 0x18
push str.couldnt_crypt_get_hash_param
push eax
call fcn.0040be80
add esp, 8
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x2f4]
push eax
call fcn.00408590
push eax
lea ecx, [ebp - 0x340]
call fcn.00414420
push 0x11a
push str.srcgenerator.cpp
mov edx, str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______cdecl_Generator::Md5Hash_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____
mov byte [ebp - 4], 0x1a
mov ecx, eax
call fcn.0040c130
lea ecx, [ebp - 0x34]
call fcn.00408440
lea ecx, [ebp - 0x314]
call fcn.004034d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004927a4
mov esp, ebp
pop ebp
ret