Function at 0x41bc80
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, 0x9c
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x94], ebx
push edi
test esi, esi
jne 0x41bcba
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004488a4
mov esp, ebp
pop ebp
ret
test byte [ebx + 0xc], 2
jne 0x41bcd6
mov eax, 0x800b0100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004488a4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x8c], 0
push eax
mov dword [ebp - 0x30], 0x455d50
mov dword [ebp - 0x34], 0
call fcn.00426e50
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x41bd37
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41bd83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x41bd79
test edi, 0xffff0000
jne 0x41be67
or edi, 0x80070000
jmp 0x41be67
mov edi, 0x80004005
jmp 0x41be67
lea eax, [ebp - 0x8c]
push eax
movzx eax, word [esi + 0xc]
push 0x41
push 0
push eax
push dword [esi + 8]
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x41bdb2
call fcn.0041390d
mov edi, eax
jmp 0x41be67
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
movzx eax, word [ebx + 8]
add ecx, ebx
add edx, eax
mov dword [ebp - 0x98], ecx
test byte [ebx + 0xc], 1
je 0x41bdd1
lea edx, [ebx + 8]
add edx, eax
lea eax, [edx + 4]
cmp ecx, eax
jae 0x41bde2
mov edi, 0x8007000b
jmp 0x41be67
mov eax, dword [edx]
mov dword [ebp - 0x90], eax
add eax, ebx
lea esi, [eax + 4]
cmp ecx, esi
jae 0x41bdfa
mov edi, 0x8007000b
jmp 0x41be67
movzx edi, word [eax + 2]
test di, di
jne 0x41be0a
mov edi, 0x800b0100
jmp 0x41be67
movzx ebx, word [eax]
add ebx, eax
cmp ecx, ebx
jae 0x41be1a
mov edi, 0x8007000b
jmp 0x41be67
mov eax, edi
xor edx, edx
mov dword [ebp - 0x84], eax
test eax, eax
je 0x41be62
lea ecx, [esi + 8]
cmp ebx, ecx
jb 0x41be13
movzx edi, word [esi + 2]
add edi, esi
cmp ecx, edi
ja 0x41be53
movzx ecx, word [esi + 6]
movzx eax, word [esi]
add ecx, edi
add eax, esi
cmp eax, ecx
jb 0x41be13
mov eax, 0x8004
cmp word [esi + 4], ax
je 0x41be77
movzx eax, word [esi]
inc edx
lea esi, [esi + eax*8]
cmp edx, dword [ebp - 0x84]
jne 0x41be28
mov edi, 0x80004001
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41bf9a
jmp 0x41bf6a
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41beaa
call fcn.0041390d
mov edi, eax
jmp 0x41be67
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x455d78
mov dword [ebp - 0xc], eax
call fcn.00411b06
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41bee1
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 0
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41bf56
mov eax, dword [ebp - 0x98]
push 0
sub eax, ebx
push eax
push ebx
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41bf56
movzx eax, word [esi + 6]
push 0
push 0
push dword [ebp - 0x8c]
push eax
push edi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov edi, eax
lea ecx, [ebp - 0x80]
neg edi
sbb edi, edi
and edi, 0x7ff8fdbf
add edi, 0x80070241
call fcn.00411ad6
jmp 0x41be67
call fcn.0041390d
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.00411ad6
jmp 0x41be67
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41bf87
mov esi, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
mov esp, ebp
pop ebp
ret
call fcn.00430d50
int3