Function at 0x42f915
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x30
mov eax, 0x435fd1
call fcn.004327ba
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, ecx
cmp dword [ebp + 0x14], ecx
mov dword [ebp - 0x20], ecx
setne al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ecx
test al, al
jne 0x42f94a
mov esi, 0x80070057
jmp 0x42fa05
cmp dword [ebx], ecx
jne 0x42f958
mov esi, 0xc004f100
jmp 0x42fa05
cmp dword [ebx + 4], ecx
je 0x42f94e
push 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x42f974
mov esi, 0x8007000e
jmp 0x42f9dc
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10000
lea edi, [eax + 8]
mov dword [eax + 4], ecx
mov edx, eax
push 6
pop ecx
mov dword [eax], 4
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x10]
push ecx
call fcn.0042fce3
mov esi, eax
test esi, esi
js 0x42f9d0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebx + 4]
push 0x8009
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x42fa22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042f63a
mov esi, eax
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x42f9eb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x42f9f6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0
je 0x42fa05
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x42fa18
call fcn.00401e9c
mov eax, esi
call fcn.0043278e
ret 0x14
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
xor ebx, ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 5
push dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0x8004
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x42f9c1
mov edi, dword [ebp - 0x14]
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x42fa76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042f63a
mov esi, eax
jmp 0x42f9d3
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x42fa62
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x42faa7
mov esi, 0x8007000e
jmp 0x42f9d3
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x42faca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042f63a
mov esi, eax
jmp 0x42fb28
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
call dword [eax + 0x58]
mov esi, eax
test esi, esi
js 0x42fb28
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x42faef
mov esi, 0xc004f101
jmp 0x42fb28
cmp ecx, 0x10
ja 0x42fafb
mov esi, 0x8007000d
jmp 0x42fb28
mov eax, dword [ebp - 0x18]
cmp dword [eax], ecx
jne 0x42faf4
cmp dword [eax + 4], 2
jne 0x42faf4
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + 8], ecx
jne 0x42faf4
push ecx
add eax, 0xc
push ebx
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
mov ecx, 0xc004f027
test eax, eax
cmovne esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42f9d3