Function at 0x418ffb
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor esi, esi
push esi
push 1
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push dword [0x432060]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call edi
cmp eax, esi
jne 0x41904f
push 8
push 1
push ebx
push dword [0x432060]
lea eax, [ebp - 0xc]
push eax
call edi
mov edi, eax
cmp edi, esi
je 0x419263
lea eax, [ebp - 8]
push eax
push 0x4000001
push 0xa400
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
mov edi, eax
cmp edi, esi
je 0x419263
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptExportKey]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 6
push esi
push dword [ebp - 8]
call ebx
mov edi, eax
cmp edi, esi
je 0x419263
mov eax, 0x94
cmp dword [ebp - 0x18], eax
je 0x41909f
xor edi, edi
jmp 0x419263
push eax
mov eax, dword [0x4339ac]
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x419098
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push 6
push esi
push dword [ebp - 8]
call ebx
mov edi, eax
cmp edi, esi
je 0x41923e
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 7
push esi
push dword [ebp - 8]
call ebx
mov edi, eax
cmp edi, esi
je 0x41923e
mov eax, 0x254
cmp dword [ebp - 0x28], eax
je 0x4190f7
xor edi, edi
jmp 0x41923e
push eax
mov eax, dword [0x4339ac]
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x20], eax
jne 0x419115
xor edi, edi
jmp 0x419228
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
push 7
push esi
push dword [ebp - 8]
call ebx
mov edi, eax
cmp edi, esi
je 0x419228
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, eax
cmp edi, esi
je 0x419228
push esi
push 0x800
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, eax
cmp edi, esi
je 0x419228
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
mov edi, eax
cmp edi, esi
je 0x419228
mov ebx, 0x80
cmp dword [ebp - 0x1c], ebx
jne 0x41910e
mov eax, dword [0x4339ac]
push ebx
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x41910e
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push esi
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
mov edi, eax
cmp edi, esi
je 0x419228
lea eax, [ebp - 0x14]
push eax
push 1
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov edi, eax
cmp edi, esi
je 0x419228
push esi
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x4191f9
xor edi, edi
inc edi
jmp 0x419228
push 2
pop edi
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0041cde0
push 0x94
push dword [ebp - 0x24]
push dword [ebp + 0x10]
call fcn.0041cde0
push 0x254
push dword [ebp - 0x20]
push dword [ebp + 0x14]
call fcn.0041cde0
cmp dword [ebp - 0x20], esi
je 0x41923e
push dword [ebp - 0x20]
mov eax, dword [0x4339ac]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x24]
mov eax, dword [0x4339ac]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push dword [eax]
call ebx
cmp dword [ebp - 0x10], esi
je 0x419263
push dword [ebp - 0x10]
mov eax, dword [0x4339ac]
push esi
push dword [eax]
call ebx
cmp dword [ebp - 4], esi
je 0x419271
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
je 0x419281
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x14], esi
je 0x41928b
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0xc], esi
je 0x41929a
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10