Function at 0x4071c0
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 0x4192d8
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 0x407225
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.00406f70
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 0x407410
push dword [ebp - 0x10]
lea ecx, [ebp - 0x68]
call fcn.00406440
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 0x407410
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 0x4072ea
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 0x4072ea
xor bl, bl
jmp 0x4073fc
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], fcn.004071b0
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 0x407312
xor bl, bl
jmp 0x4073eb
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.00407490
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 0x40734e
xor bl, bl
jmp 0x4073d9
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 0x40737b
xor bl, bl
jmp 0x4073c7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00407100
cmp byte [ebx + 4], 0
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
je 0x4073a6
push ebx
push eax
call fcn.00407160
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.00403590
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
test eax, eax
je 0x4073d9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x4073eb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov byte [ebp - 4], 1
test edi, edi
je 0x4073fc
push edi
call fcn.004071b0
add esp, 4
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0
test eax, eax
je 0x407412
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x407412
xor bl, bl
test esi, esi
je 0x40741f
push esi
call fcn.00407821
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