Function at 0x4576c0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49354e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4bc8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
call fcn.004229d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.004229d0
add esp, 0x10
push 8
push 0
push 0x49ba3c
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x45782c
push 0
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push str.HashDigestLength
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x45782c
mov ebx, dword [edi + 4]
mov ecx, ebx
mov edx, dword [edi]
sub ecx, edx
mov esi, dword [ebp - 0x50]
cmp esi, ecx
jae 0x4577ae
lea eax, [edx + esi]
jmp 0x4577d8
jbe 0x4577db
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4577c7
lea eax, [ebp - 0x49]
mov ecx, edi
push eax
push esi
call fcn.00424cc0
jmp 0x4577db
sub esi, ecx
push esi
push 0
push ebx
call fcn.0046b870
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
js 0x45782c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x45782c
push 0
push dword [ebp - 0x50]
push dword [edi]
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptFinishHash
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x457839
push eax
call sub.bcrypt.dll_BCryptDestroyHash
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x457848
push 0
push eax
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x457878
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45786e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578d8
push ecx
push edx
call fcn.004697ab
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4578ba
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4578b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578d8
push ecx
push edx
call fcn.004697ab
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046977a
mov esp, ebp
pop ebp
ret
call fcn.0046e96f
int3