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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4473f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x1a4], edi
mov dword [ebp - 0x1ac], edi
push 0xb8
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1c0], edi
push 0
push eax
mov dword [ebp - 0x1a8], 0
call sub.VCRUNTIME140.dll_memset
push esi
lea ecx, [ebp - 0x1a0]
call fcn.004087d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x144], 0
je 0x40315f
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40315f
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40315f
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
push 0x1023
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00445c47
add esp, 4
test eax, eax
je 0x403159
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x1000
push 0
push edi
lea esi, [edi + 0x1000]
mov dword [ebp - 0x1ac], edi
mov dword [edi - 4], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x34], esi
push 0
push 0x1000
push edi
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
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 ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x402ddf
nop dword [eax]
cmp dword [ebp - 0x194], 0
jl 0x402ddf
mov eax, dword [ebp - 0x198]
jg 0x402da5
test eax, eax
je 0x402ddf
push 0
push eax
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402e7e
mov eax, esi
lea ecx, [ebp - 0x1a0]
push 0
sub eax, edi
push eax
push edi
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 ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x402d90
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x24]
test eax, eax
jne 0x402ef9
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x1a4]
xorps xmm0, xmm0
push 0
push 0x4530ad
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00409bf0
mov ecx, dword [ebp - 0x30]
sub ecx, edi
cmp ecx, 0x1000
jb 0x402e62
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x403159
mov edi, edx
push ecx
push edi
call fcn.00445c77
add esp, 8
lea ecx, [ebp - 0x1a0]
call fcn.004031b0
mov eax, esi
jmp 0x40318e
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x1a4]
xorps xmm0, xmm0
push 0
push 0x4530ad
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00409bf0
mov ecx, dword [ebp - 0x30]
sub ecx, edi
cmp ecx, 0x1000
jb 0x402edd
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x403159
mov edi, edx
push ecx
push edi
call fcn.00445c77
add esp, 8
lea ecx, [ebp - 0x1a0]
call fcn.004031b0
mov eax, esi
jmp 0x40318e
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xb0
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe8], 0x453390
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xd8], 0x4532c8
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x1a8], 8
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xec], eax
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
xor edx, edx
mov dword [ebp - 0xd0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], edx
jbe 0x403024
xor edi, edi
push 0x401930
lea ecx, [ebp - 0xd8]
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 0
mov esi, eax
lea eax, [ebp - 0x1bc]
push 2
push eax
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0x18
mov ecx, esi
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
movzx eax, byte [ebp + edi - 0x20]
push 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 edi
cmp edi, dword [ebp - 0x2c]
jb 0x402fc1
mov edx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x1ac]
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov esi, dword [ebp - 0x1a4]
mov eax, edx
and al, 0x22
mov dword [ebp - 0x1a8], 0xc
movq qword [ebp - 0x1b8], xmm0
mov dword [ebp - 0x1b0], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp al, 2
je 0x40309c
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
test ecx, ecx
je 0x40309c
mov eax, dword [ebp - 0xc0]
cmp ecx, dword [ebp - 0x98]
cmovb ecx, dword [ebp - 0x98]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4030cd
test dl, 4
jne 0x4030c1
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4030c1
mov eax, dword [ebp - 0xc4]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0xa4]
add ecx, dword [eax]
jmp 0x4030cd
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1b8]
test edx, edx
je 0x4030da
push ecx
push edx
mov ecx, esi
call fcn.004090a0
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xec], eax
lea ecx, [ebp - 0xd0]
call fcn.00407c20
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x30]
sub ecx, edi
cmp ecx, 0x1000
jb 0x403140
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x403159
mov edi, edx
push ecx
push edi
call fcn.00445c77
add esp, 8
lea ecx, [ebp - 0x1a0]
call fcn.004031b0
mov eax, esi
jmp 0x40318e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push 0x4530ad
mov dword [edi + 0x14], 0
call fcn.00409bf0
lea ecx, [ebp - 0x1a0]
call fcn.004031b0
mov eax, edi
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.00445c39
mov esp, ebp
pop ebp
ret