Function at 0x4010c0
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 esi
push 0xf0000000
push 1
xor esi, esi
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push esi
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401349
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str._____BEGIN_PUBLIC_KEY_____MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs17VfdKL8mJPxn33ZKWqxoXcCa1JikFCrr8VZuXtYLvVx6Oo865X_J9ufk8NOldE5hl7EtlLDq8WuM91YRTIOGD0nKk2TEtL8MZxA3GepE6sdo86V0XIe4sqUzvdavHkxp3DhzEXkmH1lGwu9hbTUbvyjAZvpgrN6wG80LdwIDAQAB_____END_PUBLIC_KEY_____
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x40132e
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402da0
test al, al
je 0x40132e
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 4]
push ecx
push edx
push esi
push esi
push str._____BEGIN_PUBLIC_KEY_____MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCs17VfdKL8mJPxn33ZKWqxoXcCa1JikFCrr8VZuXtYLvVx6Oo865X_J9ufk8NOldE5hl7EtlLDq8WuM91YRTIOGD0nKk2TEtL8MZxA3GepE6sdo86V0XIe4sqUzvdavHkxp3DhzEXkmH1lGwu9hbTUbvyjAZvpgrN6wG80LdwIDAQAB_____END_PUBLIC_KEY_____
call edi
test eax, eax
je 0x40132e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push ecx
push edx
push 8
push 0x10001
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
call edi
test eax, eax
je 0x401322
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402da0
mov ebx, dword [ebp - 0x24]
test al, al
je 0x401322
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
push ebx
push esi
push esi
push edx
push eax
push 8
push 0x10001
call edi
test eax, eax
je 0x401322
lea ecx, [ebp - 0x14]
push ecx
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
push edx
push eax
push 0x13
push 0x10001
mov dword [ebp - 0x1c], esi
call edi
test eax, eax
je 0x401316
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402da0
test al, al
je 0x401316
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebx + 0x10]
push eax
push esi
push esi
push ecx
push edx
push 0x13
push 0x10001
call edi
test eax, eax
je 0x401316
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0x40
push esi
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x401316
mov eax, dword [ebp - 8]
push esi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
push 8
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x401309
mov edx, dword [ebp - 0xc]
shr dword [ebp - 0x24], 3
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
push 0x8004
push edx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401309
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
push esi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4012ff
mov edi, dword [ebp + 0x14]
push edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
call fcn.00402da0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push eax
push edi
push ecx
call fcn.0042f21b
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, esi
je 0x4012d6
mov esi, edi
mov edi, eax
call fcn.00401360
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edx, dword [ebp - 8]
push esi
push esi
push edx
push edi
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x4012f3
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0042f1bf
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042f1bf
add esp, 4
push ebx
call fcn.0042f1bf
mov ebx, dword [ebp - 0x30]
add esp, 4
mov edx, dword [ebp - 0xc]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0xc], esi
call fcn.0042f1bf
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10