Function at 0x408240
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
push 0xffffffffffffffff
push 0x426780
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x90]
push eax
mov ebx, ecx
mov esi, edx
call edi
test eax, eax
jne 0x408320
push 0xf0000008
push 1
push eax
push eax
lea ecx, [ebp - 0x90]
push ecx
call edi
test eax, eax
jne 0x408320
push 0x27
xor esi, esi
push str.Failed_to_acquire_verification_context.
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.00407e50
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], vtable.Exception.0
mov eax, edx
cmp ecx, 0x10
jae 0x4082e3
lea eax, [ebp - 0x30]
add eax, dword [ebp - 0x20]
cmp ecx, 0x10
mov ecx, edx
jae 0x4082f0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
xor edx, edx
mov word [ebp - 0x4c], dx
mov edx, dword [ebp - 0x90]
push edx
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00408080
push 0x42e2c8
lea ecx, [ebp - 0x50]
push ecx
call fcn.00415646
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x94]
push edx
xor edi, edi
push edi
push edi
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push edi
test eax, eax
jne 0x4083b5
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x16
push str.Failed_to_create_hash.
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
call fcn.00407e50
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], vtable.Exception.0
mov ecx, edx
cmp eax, 0x10
jae 0x40838a
lea ecx, [ebp - 0x30]
add ecx, dword [ebp - 0x20]
cmp eax, 0x10
mov eax, edx
jae 0x408397
lea eax, [ebp - 0x30]
xor edx, edx
mov word [ebp - 0x4c], dx
mov edx, dword [ebp - 0x90]
push edx
push ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
push eax
jmp 0x408309
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x94]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40843d
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x90]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x1a
push str.Failed_to_hash_plain_data.
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
call fcn.00407e50
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], vtable.Exception.0
mov eax, edx
cmp ecx, 0x10
jae 0x408421
lea eax, [ebp - 0x30]
add eax, dword [ebp - 0x20]
cmp ecx, 0x10
mov ecx, edx
jae 0x40842e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
jmp 0x4082fa
mov edx, dword [ebp - 0x94]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push edi
push esi
push edi
push 2
push edx
mov dword [esi], edi
call ebx
test eax, eax
jne 0x4084b2
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x90]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x19
push str.Failed_to_get_hash_value.
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x6c], 0
call fcn.00407e50
lea eax, [ebp - 0x6c]
lea edi, [ebp - 0x8c]
mov dword [ebp - 4], 3
call fcn.00407fe0
push 0x42e2c8
mov edx, edi
push edx
jmp 0x40831b
mov eax, dword [esi]
push eax
call fcn.00411c88
mov ecx, dword [ebp - 0x94]
add esp, 4
push 0
push esi
mov edi, eax
push edi
push 2
push ecx
call ebx
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x90]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret