Function at 0x47ed30
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d80
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x607070]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x47ed6f
jmp dword [eax*4 + 0x47ef5c]
mov eax, str.SHA1
jmp 0x47ed90
mov eax, str.SHA256
jmp 0x47ed90
mov eax, str.SHA512
jmp 0x47ed90
mov eax, 0x59ac08
push 0
push 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js case.default.0x47ed6f
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 4
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push str.HashDigestLength
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jns 0x47ee01
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fef09
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x64], esi
push 0
test esi, esi
je 0x47edd8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jns 0x47ee59
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp case.default.0x47ed6f
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x47ee7a
mov ebx, dword [ebx]
lea edx, [ebp - 0x34]
mov ecx, ebx
call fcn.004ddc50
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push 0
test eax, eax
js 0x47eeb7
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x58]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x47eed9
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x34]
call fcn.00433430
jmp case.default.0x47ed6f
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push dword [ebp - 0x54]
push esi
push eax
call fcn.0047fd50
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 0x10
cmovae ecx, dword [ebp - 0x4c]
call fcn.004dde00
lea ecx, [ebp - 0x4c]
mov bl, 1
call fcn.00433430
jmp 0x47ef23
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x47ef33
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x47ef41
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x34]
call fcn.00433430
mov al, bl
jmp 0x47ede3