Function at 0x6e8c81a0
Capabilities:
Hash data via bcrypt

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
test byte [0x6e926040], 8
mov dword [ebp - 0x28], 0
mov ebx, dword [ecx]
mov dword [ebp - 0x30], esi
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x34], edx
mov edi, dword [ecx + 4]
mov dword [ebp - 0x24], 0
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], esi
mov esi, dword [eax + 0x18]
jne 0x6e8c82b8
mov dword [esp + 4], ebx
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], edi
mov dword [esp], eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x6e8c8270
xor edi, edi
cmp eax, 0xc0000002
mov edx, dword [ebp - 0x28]
je 0x6e8c83b0
test edx, edx
je 0x6e8c8231
mov dword [esp], edx
call sub.bcrypt.dll_BCryptDestroyHash
sub esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6e8c8249
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
sub esp, 8
test ebx, ebx
je 0x6e8c8256
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.bcrypt.dll_BCryptCreateHash
sub esp, 0x1c
test eax, eax
je 0x6e8c8320
mov edx, dword [ebp - 0x28]
xor edi, edi
mov ebx, eax
jmp 0x6e8c8222
mov dword [ebp - 0x38], ecx
mov edx, 0xffffffff
mov eax, ebx
call fcn.6e8c5c40
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x28], esi
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x14], edi
mov dword [esp], 3
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, str.__s___08x___p___p___d___p___p__n
mov dword [esp + 0xc], eax
mov eax, str.CryptHashCertificate2
mov dword [esp + 8], eax
mov eax, 0x6e926040
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
call fcn.6e8c5b50
jmp 0x6e8c81ee
lea eax, [ebp - 0x1c]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, str.HashDigestLength
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x14], edi
mov dword [esp], eax
call sub.bcrypt.dll_BCryptGetProperty
sub esp, 0x18
test eax, eax
mov edi, eax
jne 0x6e8c83c0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
test ecx, ecx
je 0x6e8c8400
cmp dword [esi], eax
mov ebx, 0xea
jb 0x6e8c8222
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call sub.bcrypt.dll_BCryptHashData
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x6e8c83d0
mov edx, dword [ebp - 0x28]
jmp 0x6e8c8222
mov ebx, 0xc0000225
jmp 0x6e8c8222
mov edx, dword [ebp - 0x28]
mov ebx, eax
xor edi, edi
jmp 0x6e8c8222
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.bcrypt.dll_BCryptFinishHash
sub esp, 0x10
test eax, eax
mov ebx, eax
sete al
movzx edi, al
jmp 0x6e8c839f
mov dword [esi], eax
mov edi, 1
jmp 0x6e8c8222