Function at 0x1004cf0e
Capabilities:
Hash data via bcrypt

Disassembly:
push 0x58
mov eax, 0x100dc9e8
call fcn.100d393a
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call fcn.10042e1e
pop ecx
pop ecx
test al, al
je 0x1004cf7a
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push ebx
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
push eax
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x1004cf7a
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push str.HashDigestLength
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptGetProperty
test eax, eax
jns 0x1004cf84
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
xor al, al
call fcn.100d3887
ret 0xc
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x64], esi
push ebx
test esi, esi
je 0x1004cf72
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
push eax
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCreateHash
test eax, eax
jns 0x1004cfd0
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 0x1004cf7a
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x5c]
call fcn.10042e1e
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
pop ecx
cmovae eax, dword [ebp - 0x30]
pop ecx
push ebx
push dword [ebp - 0x20]
push eax
push dword [ebp - 0x54]
call sub.ncrypt.dll_BCryptHashData
push ebx
test eax, eax
jns 0x1004d036
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]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.10042e1e
jmp 0x1004cf7a
push dword [ebp - 0x50]
push esi
push dword [ebp - 0x54]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
jns 0x1004d067
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]
mov dword [ebp - 4], 2
jmp 0x1004d0e6
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.10042e1e
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push edi
push eax
call fcn.10042e1e
pop ecx
pop ecx
mov byte [ebp - 0x55], 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.10042e1e
jmp 0x1004d0ad
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 4], ebx
je 0x1004d0bf
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x54], 0
je 0x1004d0cd
push dword [ebp - 0x54]
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 bl, byte [ebp - 0x55]
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.10042e1e
mov al, bl
jmp 0x1004cf7c