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

Disassembly:
push 0x98
mov eax, 0x1006f667
call fcn.1006c23a
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 0x10059f3c
dec eax
jne 0x10059f3c
push 0x14
jmp 0x10059f3e
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.10019ea5
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 0x10059f8a
lea eax, [ebp - 0xa0]
cmp edi, eax
je 0x10059fa6
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 0x10059fd8
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.1006c312
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 0x10059fc5
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10059fc5
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 0x10059fc5
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 0x1005a0af
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 [0x10085f84]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov al, byte [esi + eax]
cmp al, bl
jne 0x1005a073
push 0x100978f8
lea ecx, [ebp - 0x18]
call dword [0x10085ee0]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call dword [0x10085f74]
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 0x1005a090
cmp al, 0xf
movzx eax, al
push eax
lea eax, [ebp + 0x10]
ja 0x1005a085
push str._02x
jmp 0x1005a08a
push 0x10097904
push eax
call edi
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
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 0x1005a031
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 [0x10085f74]
cmp dword [ebp - 0x10], ebx
je 0x1005a0d3
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 0x1005a0e4
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
je 0x1005a0f2
push dword [ebp - 0x14]
call sub.mfc90u.dll_delete__
pop ecx
xor ebx, ebx
inc ebx
jmp 0x10059fc5