Function at 0x42af10
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
push 0xffffffffffffffff
push 0x5095e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5503dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x38], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
test eax, eax
je 0x42b165
mov edi, dword [ebp + 8]
test edi, edi
je 0x42b165
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x30]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ecx
push eax
mov dword [ebp - 0x30], ecx
call ebx
test eax, eax
jne 0x42afd4
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
jne 0x42afd4
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00407c90
lea ecx, [ebp - 0x28]
call fcn.00407750
jmp 0x42b198
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42afa9
push 0
push edi
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42afa9
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x3c]
push 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 4
push dword [ebp - 0x2c]
mov dword [ebp - 0x3c], 4
call edi
test eax, eax
je 0x42b12e
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
cmp ebx, ecx
ja 0x42b058
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x42b109
or eax, 0xffffffff
sub ebx, ecx
sub eax, ecx
cmp eax, ebx
ja 0x42b06d
push str.string_too_long
call fcn.0044934c
lea edx, [ecx + ebx]
mov dword [ebp - 0x38], edx
test ebx, ebx
je 0x42b109
cmp edx, 0x7ffffffe
jbe 0x42b08d
push str.string_too_long
call fcn.0044934c
cmp dword [ebp - 0x14], edx
jae 0x42b0be
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408650
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
test edx, edx
je 0x42b109
lea eax, [ebp - 0x28]
cmp ebx, 1
jne 0x42b0d7
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
xor ebx, ebx
mov word [eax + ecx*2], bx
jmp 0x42b0f5
test edx, edx
jne 0x42b0a6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x42b109
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
lea edi, [eax + ecx*2]
xor eax, eax
mov ecx, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], cx
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push 0
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x42b143
lea ecx, [ebp - 0x28]
call fcn.0042c9c0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00407790
lea ecx, [ebp - 0x28]
call fcn.00407750
jmp 0x42b198
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, esi
call fcn.0042ae00
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00407750
jmp 0x42b198
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00407c90
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42b198
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9018
mov esp, ebp
pop ebp
ret