Function at 0x1004f58d
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x98
mov eax, 0x10056077
call fcn.100514bc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
sub eax, 0x8003
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
je 0x1004f5b8
dec eax
jne 0x1004f5b8
push 0x14
jmp 0x1004f5ba
push 0x10
pop eax
push eax
mov dword [ebp - 0x20], eax
call sub.mfc90u.dll_new__
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
lea eax, [esi + esi + 2]
push eax
call sub.mfc90u.dll_new__
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push 3
push dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.10017100
mov edi, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x18]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004f606
lea eax, [ebp - 0xa0]
cmp edi, eax
je 0x1004f622
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1004f654
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
call fcn.10051594
ret 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1004f641
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1004f641
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1004f641
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
xor esi, esi
cmp dword [ebp - 0x20], ebx
jbe 0x1004f72b
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov al, byte [esi + eax]
cmp al, bl
jne 0x1004f6ef
push 0x100718bc
lea ecx, [ebp - 0x18]
call dword [0x10061dbc]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x1004f70c
cmp al, 0xf
movzx eax, al
push eax
lea eax, [ebp + 0x10]
ja 0x1004f701
push str._02x
jmp 0x1004f706
push 0x100718c8
push eax
call edi
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call dword [0x10061c98]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x1004f6ad
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeUpper]
mov ecx, dword [ebp + 0xc]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
cmp dword [ebp - 0x10], ebx
je 0x1004f74f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x10], ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x1004f760
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
je 0x1004f76e
push dword [ebp - 0x14]
call sub.mfc90u.dll_delete__
pop ecx
xor ebx, ebx
inc ebx
jmp 0x1004f641