Function at 0x4054ff
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push 0x58
mov eax, 0x41a8f5
call fcn.004093bd
mov ebx, ecx
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x10]
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
push ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x18]
call esi
test eax, eax
jne 0x405533
xor al, al
jmp 0x40571e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x64]
call fcn.00402944
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push dword [ebp - 0x64]
mov dword [ebp - 4], ecx
push ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call esi
test eax, eax
je 0x405712
push dword [ebp - 0x10]
lea ecx, [ebp - 0x64]
call fcn.00405310
lea eax, [ebp - 0x28]
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push 0x8000
push dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
push dword [ebp - 0x64]
push 8
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x405712
mov edi, dword [ebp - 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push eax
call esi
test eax, eax
jne 0x4055e7
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x4055e7
xor bl, bl
jmp 0x405701
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], fcn.004054ef
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push 1
push esi
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x40560f
xor bl, bl
jmp 0x4056f2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x40], eax
push dword [ebx]
mov byte [ebp - 4], 3
call fcn.00406af9
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x405649
xor bl, bl
jmp 0x4056e0
mov edi, dword [ebp - 0x20]
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
push 0
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x405672
xor bl, bl
jmp 0x4056ce
mov ecx, dword [ebp + 0x10]
xor eax, eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00405487
cmp byte [ebx + 4], 0
mov ebx, dword [ebp - 0x54]
je 0x4056aa
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x58]
call fcn.004054b7
add esp, 0xc
sub ebx, dword [ebp - 0x58]
push 0
push 0
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x58]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
lea ecx, [ebp - 0x58]
setne bl
call fcn.00403cbf
mov byte [ebp - 4], 3
test edi, edi
je 0x4056dd
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x4056f2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov byte [ebp - 4], 1
test esi, esi
je 0x405701
push esi
call fcn.004054ef
pop ecx
mov byte [ebp - 4], 0
test edi, edi
je 0x405714
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x405714
xor bl, bl
lea ecx, [ebp - 0x64]
call fcn.00403cbf
mov al, bl
call fcn.0040938b
ret 0x18