Function at 0x4f1470
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e8de0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x82f084]
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.0x4f14b3
jmp dword [eax*4 + 0x4f1734]
mov eax, str.SHA1
jmp 0x4f14d4
mov eax, 0x7810c0
jmp 0x4f14d4
mov eax, 0x7810a0
jmp 0x4f14d4
mov eax, 0x7812f0
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.0x4f14b3
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 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 0x4f152e
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp case.default.0x4f14b3
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 0x4f1520
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 0x4f1589
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.0x4f14b3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x4f15aa
mov ebx, dword [ebx]
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.0050cea0
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push 0
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push 0
test eax, eax
jns 0x4f163d
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]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb case.default.0x4f14b3
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f1613
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f172e
push edx
push ecx
call fcn.0067d913
add esp, 8
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.0067d681
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x58]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x4f1652
push 0
jmp 0x4f15d4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push dword [ebp - 0x54]
push esi
push eax
call fcn.005570d0
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.0050d0e0
mov edx, dword [ebp - 0x38]
mov bl, 1
cmp edx, 0x10
jb 0x4f16c8
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f16a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f1729
push edx
push ecx
call fcn.0067d913
add esp, 8
jmp 0x4f16c8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4f16d8
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4f16e6
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4f1722
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f1718
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f172e
push edx
push ecx
call fcn.0067d913
add esp, 8
mov al, bl
jmp 0x4f161f
call fcn.00692c95
call fcn.00692c95
nop
mov edx, 0xc1004f14
adc al, 79
add al, cl
adc al, 0x4f
add bh, cl
adc al, 0x4f
add ah, cl
int3