Function at 0x4018e0
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, 0x34
push ebx
push 0xf0000000
push 1
xor ebx, ebx
lea eax, [ebp - 0xc]
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401b62
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], ebx
push eax
push ebx
push ebx
push ebx
push str._____BEGIN_PUBLIC_KEY_____MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs17VfdKL8mJPxn33ZKWqxoXcCa1JikFCrr8VZuXtYLvVx6Oo865X_J9ufk8NOldE5hl7EtlLDq8WuM91YRTIOGD0nKk2TEtL8MZxA3GepE6sdo86V0XIe4sqUzvdavHkxp3DhzEXkmH1lGwu9hbTUbvyjAZvpgrN6wG80LdwIDAQAB_____END_PUBLIC_KEY_____
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call edi
test eax, eax
je 0x401b44
push dword [ebp - 4]
lea ecx, [ebp - 0x24]
call fcn.00402d50
test al, al
je 0x401b44
push esi
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push str._____BEGIN_PUBLIC_KEY_____MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs17VfdKL8mJPxn33ZKWqxoXcCa1JikFCrr8VZuXtYLvVx6Oo865X_J9ufk8NOldE5hl7EtlLDq8WuM91YRTIOGD0nKk2TEtL8MZxA3GepE6sdo86V0XIe4sqUzvdavHkxp3DhzEXkmH1lGwu9hbTUbvyjAZvpgrN6wG80LdwIDAQAB_____END_PUBLIC_KEY_____
call edi
test eax, eax
je 0x401b43
xor edi, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
push esi
push 8
push 0x10001
call ebx
test eax, eax
je 0x401b37
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.00402d50
mov edi, dword [ebp - 0x20]
test al, al
je 0x401b37
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push 0
push dword [ebp - 4]
push esi
push 8
push 0x10001
call ebx
test eax, eax
je 0x401b37
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [edi + 0xc]
mov dword [ebp - 0x20], 0
push dword [edi + 0x10]
push 0x13
push 0x10001
call ebx
test eax, eax
je 0x401b2c
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00402d50
test al, al
je 0x401b2c
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
push dword [edi + 0xc]
push dword [edi + 0x10]
push 0x13
push 0x10001
call ebx
test eax, eax
je 0x401b2c
lea eax, [ebp - 8]
push eax
push 0x40
push 0
push dword [ebp - 0x10]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x401b2c
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 4
push eax
push 8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x401b1c
shr dword [ebp - 0x1c], 3
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401b1c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401b13
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
push ebx
mov dword [ebp + 0xc], 0
call fcn.00402d50
mov esi, dword [ebp + 0xc]
mov edx, ebx
push ebx
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403bb0
add esp, 8
push ebx
push esi
call fcn.00401b70
push 0
push 0
push dword [ebp - 8]
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
xor ecx, ecx
mov edx, 1
test eax, eax
push esi
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
call fcn.00458d52
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 - 0x20]
call fcn.00458d52
add esp, 4
push edi
call fcn.00458d52
mov ebx, dword [ebp - 0x30]
add esp, 4
pop esi
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x24]
mov dword [ebp - 0xc], 0
call fcn.00458d52
add esp, 4
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10