Function at 0x1005a016
Capabilities:
Hash data via bcrypt

Disassembly:
push 0x5c
mov eax, 0x1011e4ea
call fcn.1011094a
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.10063887
pop ecx
pop ecx
test al, al
je 0x1005a082
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x4c], ebx
push eax
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x1005a082
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push 4
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
push eax
push str.HashDigestLength
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptGetProperty
test eax, eax
jns 0x1005a08c
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
xor al, al
call fcn.10110897
ret 0xc
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x68], esi
push ebx
test esi, esi
je 0x1005a07a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCreateHash
test eax, eax
jns 0x1005a0d8
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1005a082
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x60]
call fcn.10063887
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
pop ecx
cmovae eax, dword [ebp - 0x2c]
pop ecx
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x50]
call sub.ncrypt.dll_BCryptHashData
push ebx
test eax, eax
jns 0x1005a147
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1005a082
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10063887
pop ecx
pop ecx
jmp 0x1005a082
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x50]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
jns 0x1005a15a
push ebx
jmp 0x1005a113
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
xor eax, eax
inc eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.10063887
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.10063887
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.1001524d
jmp 0x1005a19d
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 4], ebx
je 0x1005a1af
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x50], 0
je 0x1005a1bd
push dword [ebp - 0x50]
call sub.ncrypt.dll_BCryptDestroyHash
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1005a1e0
inc ecx
push ecx
push dword [ebp - 0x2c]
call fcn.10063887
pop ecx
pop ecx
mov al, byte [ebp - 0x5c]
jmp 0x1005a084