Function at 0x4c5570
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x665dae
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6d5ec0]
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.004b9bb0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.004b9bb0
add esp, 0x10
push 8
push 0
push 0x671494
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x4c56dc
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 0x4c56dc
mov ebx, dword [edi + 4]
mov ecx, ebx
mov edx, dword [edi]
sub ecx, edx
mov esi, dword [ebp - 0x50]
cmp esi, ecx
jae 0x4c565e
lea eax, [edx + esi]
jmp 0x4c5688
jbe 0x4c568b
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4c5677
lea eax, [ebp - 0x49]
mov ecx, edi
push eax
push esi
call fcn.00495200
jmp 0x4c568b
sub esi, ecx
push esi
push 0
push ebx
call fcn.006213c0
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x30]
cmova 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 0x4c56dc
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x4c56dc
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 0x4c56e9
push eax
call sub.bcrypt.dll_BCryptDestroyHash
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c56f8
push 0
push eax
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4c5728
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c571e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5788
push ecx
push edx
call fcn.0061ef9d
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, 0xf
jbe 0x4c576a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c5760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5788
push ecx
push edx
call fcn.0061ef9d
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.0061eb08
mov esp, ebp
pop ebp
ret
call fcn.0063629b
int3