Function at 0x4db7b0
Capabilities:
Hash data using sha1
Import public key
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x5d7c6e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
je 0x4db803
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [esp + 0xbc], edi
mov dword [esi + 8], edi
mov byte [esi + 0x10], 0
je 0x4dc062
push edi
mov ecx, esi
call fcn.004d1ed0
cmp eax, edi
je 0x4dc062
mov ecx, dword [eax + 4]
push eax
call fcn.00477410
mov esi, eax
cmp esi, edi
je 0x4dc062
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp eax, 5
jne 0x4dc062
push str.SubFilter
lea ecx, [esp + 0x50]
call fcn.0048cd50
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov dword [esp + 0xb8], 1
call fcn.004b7a60
or ebx, 0xffffffff
cmp dword [esp + 0x68], 0x10
mov ebp, eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x4c], 0x5f1558
jb 0x4db898
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004274fc
add esp, 4
cmp ebp, edi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
mov dword [esp + 0x4c], 0x5f13d0
je 0x4dc062
push 0x5faf98
lea ecx, [esp + 0x70]
call fcn.0048cd50
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
mov dword [esp + 0xb8], 2
call fcn.004b7a90
lea ecx, [esp + 0x6c]
mov edi, eax
mov dword [esp + 0xb4], ebx
call fcn.004b36e0
test edi, edi
je 0x4dc062
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.004b5b40
push str.ByteRange
lea ecx, [esp + 0x70]
mov dword [esp + 0x2c], eax
call fcn.0048cd50
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
mov dword [esp + 0xb8], 3
call fcn.004b7ac0
mov ebx, eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xb4], 0xffffffff
call fcn.004b36e0
test ebx, ebx
je 0x4dc062
mov edx, dword [esp + 0x20]
push str.Cert
lea ecx, [esp + 0x90]
mov byte [edx + 0xc], 1
xor edi, edi
call fcn.0048cd50
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
mov dword [esp + 0xb8], 4
call fcn.004b7950
lea ecx, [esp + 0x8c]
mov esi, eax
mov dword [esp + 0xb4], 0xffffffff
call fcn.004b36e0
test esi, esi
je 0x4db9e0
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp eax, 2
je 0x4db9de
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp eax, 4
jne 0x4db9e0
push edi
mov ecx, esi
call fcn.004b5830
mov esi, eax
test esi, esi
je 0x4db9e0
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp eax, 2
jne 0x4db9e0
mov edi, esi
push str.adbe.pkcs7.detached
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
je 0x4dbd25
mov ecx, ebx
call fcn.004b5810
mov esi, eax
shr esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x30], esi
neg ecx
or ecx, eax
push ecx
call fcn.00427501
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
je 0x4dbc94
lea eax, [esi*4]
push eax
push 0
push edi
call fcn.0044dac0
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427501
add esp, 0x10
test eax, eax
mov dword [esp + 0x38], eax
je 0x4dbc6e
test esi, esi
mov dword [esp + 0x18], 0
jbe 0x4dbbc1
mov edi, dword [esp + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x14]
add edi, 4
sub eax, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, eax
xor esi, esi
push eax
mov dword [esp + 0x30], esi
call fcn.004b5830
mov ebp, eax
test ebp, ebp
je 0x4dbae9
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
cmp eax, 1
jne 0x4dbae9
mov ecx, ebp
call fcn.004b57f0
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, eax
add eax, 1
push eax
call fcn.004b5830
mov ebp, eax
test ebp, ebp
je 0x4dbb39
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
cmp eax, 1
jne 0x4dbb39
mov ecx, ebp
call fcn.004b57f0
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x40], eax
fldcw word [esp + 0x40]
fistp qword [esp + 0x40]
mov esi, dword [esp + 0x40]
fldcw word [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi]
push 0
cdq
push 0
push edx
mov edx, dword [ecx + 0x14]
push eax
push edi
call edx
mov ebp, dword [esp + 0xbc]
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
add eax, esi
mov dword [esp + 0x40], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
cmp dword [esp + 0x40], eax
jbe 0x4dbb8b
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
sub esi, eax
push esi
call fcn.00427501
mov ecx, dword [esp + 0x4c]
add esp, 4
push 0
push esi
mov dword [ecx + ebx], eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov eax, dword [esp + 0x18]
add eax, 1
mov dword [ebx], esi
add ebx, 4
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jb 0x4dba92
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
push edi
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edx
push 0
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], 0x14
mov dword [esp + 0x70], 0x10001
call dword [sym.imp.CRYPT32.dll_CryptVerifyDetachedMessageSignature]
test eax, eax
je 0x4dbc5d
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0x20]
mov byte [esi + 0xd], 1
je 0x4dbc5d
push eax
mov byte [esi + 0xe], 1
call fcn.004d8a00
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x4dbc44
mov byte [esi + 0x10], 1
jmp 0x4dbc52
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
mov dword [esi + 8], eax
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push edi
call fcn.004274fc
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
add esp, 4
xor ebx, ebx
test esi, esi
jbe 0x4dbc8b
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x4dbc84
push eax
call fcn.004274fc
add esp, 4
add ebx, 1
cmp ebx, esi
jb 0x4dbc74
push edi
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x20]
cmp dword [eax + 8], 0
jne 0x4dc266
push 0
push 0
push 0
push 0
push 0
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptMsgOpenToDecode]
mov esi, eax
test esi, esi
je 0x4dc266
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push 1
push ecx
push edx
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x4dbd19
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0
push 0
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.CRYPT32.dll_CryptMsgGetAndVerifySigner]
test eax, eax
je 0x4dbd19
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4dbd19
push eax
call dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edx
mov dword [ecx + 8], eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
jmp 0x4dc266
push str.adbe.pkcs7.sha1
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
je 0x4dc00b
push 0
push 0
push 0
push 0
push 0
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptMsgOpenToDecode]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4dc266
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push 1
push ecx
push edx
push eax
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x4dbffb
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.CRYPT32.dll_CryptMsgGetAndVerifySigner]
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
mov edi, dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
je 0x4dbdec
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov ebp, dword [esp + 0x20]
mov byte [ebp + 0xe], 1
je 0x4dbdf6
push eax
call fcn.004d8a00
add esp, 4
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4dbdd5
mov eax, dword [esp + 0x1c]
push eax
mov byte [ebp + 0x10], 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x4dbdf6
mov edx, dword [esp + 0x1c]
push edx
call edi
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x4dbdf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], ebx
mov dword [esp + 0x1c], ebx
jne 0x4dbe2d
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 2
push ebx
push ebx
push edx
call esi
test eax, eax
je 0x4dbe2d
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4dbe2d
push eax
call edi
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push 2
push edx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
je 0x4dbffb
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4dbffb
push eax
call fcn.00427501
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x4dbffb
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push ebp
push ebx
push 2
push ecx
call esi
test eax, eax
je 0x4dbff2
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4dbff2
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 0x8004
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4dbfe6
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.004da760
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 2
push edx
mov dword [esp + 0x3c], ebx
call esi
test eax, eax
je 0x4dbfdb
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x30], eax
jne 0x4dbfdb
push eax
call fcn.00427501
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4dbfdb
mov ecx, dword [esp + 0x24]
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
push 2
push ecx
call esi
test eax, eax
je 0x4dbfd2
mov eax, dword [esp + 0x28]
cmp eax, 4
mov ecx, edi
mov edx, ebp
jb 0x4dbf5b
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4dbf5f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4dbf47
cmp eax, ebx
je 0x4dbfc4
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4dbfae
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x4dbfc0
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4dbfae
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x4dbfc0
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4dbfae
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x4dbfc0
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x4dbfc0
cmp esi, ebx
mov ebp, dword [esp + 0x14]
mov eax, 1
jg 0x4dbfc6
or eax, 0xffffffff
jmp 0x4dbfc6
mov ebp, dword [esp + 0x14]
xor eax, eax
cmp eax, ebx
jne 0x4dbfd2
mov eax, dword [esp + 0x20]
mov byte [eax + 0xd], 1
push edi
call fcn.004274fc
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x2c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebp
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
jmp 0x4dc266
push str.adbe.x509.rsa_sha1
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
jne 0x4dc069
push 0x5faff0
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
jne 0x4dc069
push str.adbe.x509.dsa_sha1
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
je 0x4dc266
test edi, edi
jne 0x4dc266
xor al, al
jmp 0x4dc27f
test edi, edi
je 0x4dc062
push str.adbe.x509.rsa_md5
mov ecx, ebp
mov ebx, 0x8004
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
je 0x4dc090
mov ebx, 0x8003
mov ecx, edi
call fcn.004b57d0
mov esi, dword [eax + 0x14]
mov ecx, edi
call fcn.004b57d0
cmp dword [eax + 0x18], 0x10
jb 0x4dc0ac
mov eax, dword [eax + 4]
jmp 0x4dc0af
add eax, 4
push esi
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x48], esi
je 0x4dc266
push esi
call fcn.004d8940
mov edi, dword [esp + 0x24]
add esp, 4
test al, al
je 0x4dc0de
mov byte [edi + 0xe], 1
push esi
call fcn.004d8a00
add esp, 4
cmp eax, ebp
mov dword [edi + 8], eax
je 0x4dc0f4
mov byte [edi + 0x10], 1
jmp 0x4dc0fe
push esi
call dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
mov dword [edi + 8], eax
push ebp
push 1
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4dc25f
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
add eax, 0x38
push eax
push 1
push ecx
mov dword [esp + 0x4c], ebp
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x4dc253
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push ebp
push ebp
push ebx
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4dc248
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.004da760
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov edi, dword [sym.imp.CRYPT32.dll_CryptDecodeObject]
lea eax, [esp + 0x38]
push eax
push ebp
push ebp
push ecx
push ebx
push 0x19
push 1
mov dword [esp + 0x54], ebp
call edi
test eax, eax
je 0x4dc239
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4dc239
push eax
call fcn.00427501
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4dc239
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
push edx
push esi
push ebp
push eax
push ebx
push 0x19
push 1
call edi
test eax, eax
je 0x4dc230
mov ecx, dword [esi]
push ecx
call fcn.00427501
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4dc230
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebp
jbe 0x4dc205
lea esp, [esp]
mov edx, dword [esi + 4]
sub edx, eax
mov cl, byte [edx + ecx - 1]
mov byte [eax + edi], cl
mov ecx, dword [esi]
add eax, 1
cmp eax, ecx
jb 0x4dc1f0
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push edx
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x4dc227
mov edx, dword [esp + 0x20]
mov byte [edx + 0xd], 1
push edi
call fcn.004274fc
add esp, 4
push esi
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 0x14]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [esp + 0x20]
cmp byte [eax + 0xd], 0
je 0x4dc27d
cmp byte [eax + 0xe], 0
je 0x4dc27d
mov eax, 1
jmp 0x4dc27f
xor eax, eax
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4