Function at 0x403f80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

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 0x471014
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x48d030]
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, edx
mov edi, ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0x24], edi
push 0xf0000000
push 0x18
push 0
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
push 0
mov dword [ebp - 0xd8], 0
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x404043
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
je 0x40403a
push dword [ebx + 8]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40406a
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
push 0x480254
mov dword [edi + 0x14], 0
call fcn.004170d0
jmp 0x404187
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 4
push eax
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40402f
mov ecx, dword [ebp - 0x20]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xd0], ecx
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x4040fc
push ecx
lea ecx, [ebp - 0x30]
call fcn.004186a0
push dword [ebp - 0xd0]
push esi
mov esi, dword [ebp - 0x30]
push esi
mov dword [ebp - 0xd4], esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xd0]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xcc], eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push esi
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4041a7
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x480254
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.004170d0
test esi, esi
je 0x404187
mov ecx, dword [ebp - 0xcc]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40417d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404357
push ecx
push esi
call fcn.0046ff2c
add esp, 8
mov eax, edi
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.0046f931
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x98
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x4834c0
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xd8], 4
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 4
mov byte [ebp - 4], 3
cmp esi, dword [ebp - 0x2c]
je 0x4042be
mov edi, dword [ebp - 0x2c]
nop dword [eax]
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push 0x403790
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x88], 0x30
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], 2
mov dword [ebp + eax - 0xa4], 0
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___]
movzx ecx, byte [esi]
push ecx
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_]
inc esi
cmp esi, edi
jne 0x404260
mov edi, dword [ebp - 0xdc]
mov esi, dword [ebp - 0xd4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
lea ecx, [ebp - 0xc4]
call fcn.00413e30
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.00411970
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
test esi, esi
je 0x404187
mov ecx, dword [ebp - 0xcc]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40417d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40417d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3