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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x443340]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1b8], edx
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x1bc], 0x94
cmp ecx, edx
jne 0x42ffc9
mov esi, 0x80004003
jmp 0x430270
mov eax, dword [ecx + 0x10]
push ebx
push edi
cmp dword [eax], edx
je 0x43022a
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x43022a
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov ebx, dword [eax + 4]
cmp dword [ebx + 0xc], edx
jne 0x42fff9
mov esi, 0x80070057
jmp 0x43026e
xor eax, eax
lea edi, [ebp - 0x1c8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x1dc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x1c8]
push eax
push ecx
push 1
mov dword [ebp - 0x1c8], 0xc
mov dword [ebp - 0x1c4], 0xf11
mov dword [ebp - 0x1dc], 0x14
call dword [sym.imp.CRYPT32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x43018a
mov esi, dword [ebp - 0x1d8]
test esi, esi
jl 0x43022f
lea eax, [ebp - 0x1ac]
push eax
push ebx
call fcn.0042fefd
mov esi, eax
test esi, esi
jl 0x43022f
mov ax, word [ebp - 0x1ac]
rol ax, 8
mov ecx, 0x1a8
cmp ax, cx
jne 0x430223
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0xc]
push 0xe
mov esi, 0x40af44
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4300a5
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x430223
mov edi, dword [eax + 0x38]
push 0x15
mov esi, 0x40af2c
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4300c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x430223
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push 0
push dword [eax + 0x44]
push dword [eax + 0x48]
push 0x13
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObject]
test eax, eax
je 0x430223
cmp dword [ebp - 0x1bc], 0x94
jne 0x430223
push dword [ebp - 0x188]
call fcn.0042f711
cmp dword [ebp - 0x260], eax
jne 0x43018a
xor edi, edi
xor esi, esi
push dword [ebp + esi - 0x180]
push dword [ebp + esi - 0x184]
call fcn.0042fe59
mov ecx, dword [ebp + esi - 0x25c]
cmp ecx, eax
jne 0x43018a
mov eax, dword [ebp + esi - 0x258]
cmp eax, edx
jne 0x43018a
add esi, 8
cmp esi, 0x80
jb 0x43011d
push 0xf0000040
push 1
push 0x40ada0
push edi
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x430194
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x430183
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x43022f
mov esi, 0x80070005
jmp 0x43022f
lea eax, [ebp - 0x1b8]
push eax
push edi
push edi
push 0x114
push 0x40ae00
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x43016f
lea eax, [ebp - 0x1b4]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43016f
push edi
push 0xa8
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp - 0x1b4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43016f
push 1
push edi
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [ebp - 0x1b4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x43016f
xor esi, esi
jmp 0x43022f
mov esi, 0x80090327
jmp 0x43022f
mov esi, 0x80070057
xor edi, edi
cmp dword [ebp - 0x1b4], edi
je 0x430245
push dword [ebp - 0x1b4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1b8], edi
je 0x430259
push dword [ebp - 0x1b8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x1b0], edi
je 0x43026e
push edi
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004217ea
leave
ret 4