Function at 0x1004151f
Capabilities:
Hash data via bcrypt

Disassembly:
push 0x5c
mov eax, 0x100d27fb
call fcn.100c74ca
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.10061b32
pop ecx
pop ecx
test al, al
je 0x1004158b
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 0x1004158b
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 0x10041595
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
xor al, al
call fcn.100c7417
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 0x10041583
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 0x100415e1
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 0x1004158b
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.10061b32
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 0x10041650
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 0x1004158b
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10061b32
pop ecx
pop ecx
jmp 0x1004158b
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x50]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
jns 0x10041663
push ebx
jmp 0x1004161c
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.10061b32
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.10061b32
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.100090b6
jmp 0x100416a6
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 4], ebx
je 0x100416b8
push ebx
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x50], 0
je 0x100416c6
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 0x100416e9
inc ecx
push ecx
push dword [ebp - 0x2c]
call fcn.10061b32
pop ecx
pop ecx
mov al, byte [ebp - 0x5c]
jmp 0x1004158d