Function at 0x4862b0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x726800
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x857060]
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.0x4862f3
jmp dword [eax*4 + 0x486574]
mov eax, str.SHA1
jmp 0x486314
mov eax, 0x79b548
jmp 0x486314
mov eax, 0x79b568
jmp 0x486314
mov eax, 0x79cc38
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.0x4862f3
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 0x48636e
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp case.default.0x4862f3
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 0x486360
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 0x4863c9
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.0x4862f3
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 0x4863ea
mov ebx, dword [ebx]
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.0053b970
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 0x48647d
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.0x4862f3
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x486453
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48656e
push edx
push ecx
call fcn.006d0bf7
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.006d0965
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 0x486492
push 0
jmp 0x486414
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push dword [ebp - 0x54]
push esi
push eax
call fcn.00487380
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.0053bbc0
mov edx, dword [ebp - 0x38]
mov bl, 1
cmp edx, 0x10
jb 0x486508
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4864e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x486569
push edx
push ecx
call fcn.006d0bf7
add esp, 8
jmp 0x486508
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x486518
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x486526
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 0x486562
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x486558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48656e
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov al, bl
jmp 0x48645f
call fcn.006f1bea
call fcn.006f1bea
nop
cli
bound ecx, qword [eax]
add dword [ebx + 0x48], esp
add byte [eax], cl
arpl word [eax], cx
packsswb mm1, qword [eax]
int3