Function at 0x4f11e0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0
test edi, edi
je 0x4f13f6
cmp dword [ebp + 0x18], 0
je 0x4f13f6
test eax, eax
je 0x4f13dc
mov eax, dword [eax + 0xc]
movups xmm0, xmmword [eax + 0x38]
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [eax + 0x48]
lea eax, [ebp - 0x30]
push eax
push 0
push 0
lea eax, [ebp - 0x20]
movq qword [ebp - 0x10], xmm0
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfoEx2]
test eax, eax
je 0x4f13dc
mov eax, dword [ebp + 0x1c]
dec eax
cmp eax, 3
ja case.default.0x4f125d
jmp dword [eax*4 + 0x4f1420]
mov eax, 0x7810c0
jmp 0x4f127e
mov eax, 0x7810b0
jmp 0x4f127e
mov eax, 0x7810a0
jmp 0x4f127e
mov eax, str.SHA1
push 0
push 0
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
je 0x4f12a1
push ecx
mov edx, eax
mov ecx, str.Unable_to_Open_Algorithm_Provider
jmp 0x4f13fe
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push str.HashDigestLength
push dword [ebp - 0x28]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
je 0x4f12d6
push ecx
mov edx, eax
mov ecx, str.Error_BCryptCreateHash
call fcn.004f0d50
mov eax, 0xe
jmp 0x4f1408
push dword [ebp - 0x24]
call fcn.0067db39
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f12fc
push ecx
xor edx, edx
mov ecx, str.Error_BCryptCreateHash
call fcn.004f0d50
lea eax, [esi + 0xe]
jmp 0x4f1408
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
je 0x4f1337
push ecx
mov edx, eax
mov ecx, str.Error_BCryptCreateHash
call fcn.004f0d50
add esp, 4
push esi
call fcn.0067d944
mov eax, 0xe
jmp 0x4f1408
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x4f136c
push ecx
mov edx, eax
mov ecx, str.CryptHashData_failed_with
call fcn.004f0d50
add esp, 4
push esi
call fcn.0067d944
mov eax, 0xd
jmp 0x4f1408
push 0
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jne 0x4f1317
push 2
push dword [ebp + 0x18]
lea eax, [ebp - 0x34]
push edi
push dword [ebp - 0x24]
push esi
push eax
push dword [ebp - 0x30]
call dword [sym.imp.bcrypt.dll_BCryptVerifySignature]
test eax, eax
je 0x4f13b7
push ecx
mov edx, eax
mov ecx, str.CryptVerifySignature_failed
call fcn.004f0d50
add esp, 4
push esi
call fcn.0067d944
mov eax, 0xa
jmp 0x4f1408
push esi
call fcn.0067d944
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0x18
push ecx
mov ecx, str.Unsupported_Hash_Algorithm
jmp 0x4f13fc
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.Error_fetching_public_key_in_GetRSAKeyFromCert
call fcn.004f0d50
mov eax, 0xf
jmp 0x4f1408
push ecx
mov ecx, str.Invalid_pSignature
xor edx, edx
call fcn.004f0d50
mov eax, 1
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0x18