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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418db8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x4231e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x10]
push 0
push 0
push eax
push 0
push 0
push dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0
push dword [ebp + 0x18]
call edi
test eax, eax
jne 0x406ff5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0x10]
lea ecx, [ebp - 0x68]
call fcn.00406d50
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x10]
push 0
push 0
push eax
push esi
push 0
push dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push dword [ebp + 0x18]
call edi
test eax, eax
je 0x4071e0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x68]
call fcn.00406150
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x8000
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
push esi
push 8
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x4071e0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x34], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x14]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push eax
mov dword [ebp - 0x14], 0
call edi
test eax, eax
jne 0x4070ba
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
jne 0x4070ba
xor bl, bl
jmp 0x4071cc
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], fcn.00406f80
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push 1
push edi
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x4070e2
xor bl, bl
jmp 0x4071bb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x44], eax
push dword [ebx]
mov byte [ebp - 4], 3
call fcn.00407260
add esp, 4
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 0x40711e
xor bl, bl
jmp 0x4071a9
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
push 0
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40714b
xor bl, bl
jmp 0x407197
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00406ed0
cmp byte [ebx + 4], 0
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
je 0x407176
push ebx
push eax
call fcn.00406f30
mov eax, dword [ebp - 0x5c]
add esp, 8
push 0
push 0
push dword [ebp - 0x1c]
sub ebx, eax
push ebx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
lea ecx, [ebp - 0x5c]
setne bl
call fcn.00405850
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
test eax, eax
je 0x4071a9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x4071bb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov byte [ebp - 4], 1
test edi, edi
je 0x4071cc
push edi
call fcn.00406f80
add esp, 4
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0
test eax, eax
je 0x4071e2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4071e2
xor bl, bl
test esi, esi
je 0x4071ef
push esi
call fcn.004075f1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18