Function at 0x4010e0
Capabilities:
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, 0x2c
push ebx
push 0xf0000000
push 1
xor ebx, ebx
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40134e
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push str._____BEGIN_PUBLIC_KEY_____MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs17VfdKL8mJPxn33ZKWqxoXcCa1JikFCrr8VZuXtYLvVx6Oo865X_J9ufk8NOldE5hl7EtlLDq8WuM91YRTIOGD0nKk2TEtL8MZxA3GepE6sdo86V0XIe4sqUzvdavHkxp3DhzEXkmH1lGwu9hbTUbvyjAZvpgrN6wG80LdwIDAQAB_____END_PUBLIC_KEY_____
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
call esi
test eax, eax
je 0x401331
push dword [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.004022d0
mov edi, dword [ebp - 0x20]
test al, al
je 0x401331
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push str._____BEGIN_PUBLIC_KEY_____MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs17VfdKL8mJPxn33ZKWqxoXcCa1JikFCrr8VZuXtYLvVx6Oo865X_J9ufk8NOldE5hl7EtlLDq8WuM91YRTIOGD0nKk2TEtL8MZxA3GepE6sdo86V0XIe4sqUzvdavHkxp3DhzEXkmH1lGwu9hbTUbvyjAZvpgrN6wG80LdwIDAQAB_____END_PUBLIC_KEY_____
call esi
test eax, eax
je 0x401331
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
push edi
push 8
push 0x10001
mov dword [ebp - 0x20], esi
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x401328
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.004022d0
mov esi, dword [ebp - 0x20]
test al, al
je 0x401328
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push dword [ebp - 4]
push edi
push 8
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x401328
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], ebx
push dword [esi + 0x10]
push 0x13
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x40131d
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.004022d0
test al, al
je 0x40131d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push dword [esi + 0xc]
push dword [esi + 0x10]
push 0x13
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x40131d
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x40131d
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 8
push dword [ebp - 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x40130d
shr dword [ebp - 0x20], 3
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40130d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401304
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x14]
push ebx
lea ecx, [ebp + 0xc]
call fcn.004022d0
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.0041fe58
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x4012db
push ebx
mov ecx, eax
call fcn.00401360
mov eax, dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 8]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
push dword [ebp + 0xc]
xor ebx, ebx
mov ecx, 1
test eax, eax
cmovne ebx, ecx
call fcn.00420566
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 8], 0
push dword [ebp - 0x18]
call fcn.00420566
add esp, 4
push esi
call fcn.00420566
add esp, 4
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
mov dword [ebp - 0xc], 0
call fcn.00420566
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10