Function at 0x10020f90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057040
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x10076098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push str.wintrust.dll
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.1003d469
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
or edx, 0xffffffff
cmp ebx, ecx
ja 0x10021023
cmp ecx, 8
mov dword [ebp - 0x20], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x30]
cmovae edi, dword [ebp - 0x30]
push str.wintrust.dll
push edi
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10021110
cmp ebx, 0x7ffffffe
ja 0x100213e6
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10021043
mov esi, SysReAllocString
jmp 0x10021064
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10021059
mov esi, SysReAllocString
jmp 0x10021061
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
or edx, 0xffffffff
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10021076
or ecx, 0xffffffff
jmp 0x1002107e
cmp ecx, 0x1000
jb 0x100210a2
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x100213eb
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x100210b5
test ecx, ecx
je 0x100210b3
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x100210b5
xor edi, edi
mov dword [ebp - 0x1c], esi
lea esi, [ebx + ebx]
push esi
push str.wintrust.dll
push edi
mov dword [ebp - 0x20], ebx
call fcn.10033c30
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1002110d
mov ecx, dword [ebp - 0x30]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10021103
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213eb
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.10016a80
mov ecx, eax
call fcn.10016b40
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1002116b
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10021161
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213f0
push edx
push ecx
call fcn.100325d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push str.crypt32.dll
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.1003d469
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
cmp ebx, eax
ja 0x100211d6
cmp eax, 8
mov dword [ebp - 0x38], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x48]
cmovae edi, dword [ebp - 0x48]
push str.crypt32.dll
push edi
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x100212c4
cmp ebx, 0x7ffffffe
ja 0x100213f5
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x100211f6
mov esi, SysReAllocString
jmp 0x10021213
mov ecx, eax
mov edx, SysReAllocString
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x1002120c
mov esi, SysReAllocString
jmp 0x10021213
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10021225
or ecx, 0xffffffff
jmp 0x1002122d
cmp ecx, 0x1000
jb 0x10021256
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x100213eb
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10021269
test ecx, ecx
je 0x10021267
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x10021269
xor edi, edi
mov dword [ebp - 0x34], esi
lea esi, [ebx + ebx]
push esi
push str.crypt32.dll
push edi
mov dword [ebp - 0x38], ebx
call fcn.10033c30
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100212c1
mov ecx, dword [ebp - 0x48]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100212b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213fa
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.10016a80
mov ecx, eax
call fcn.10016b40
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1002131e
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10021314
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100213ff
push edx
push ecx
call fcn.100325d8
add esp, 8
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
test ebx, ebx
je 0x100213d4
test edi, edi
je 0x100213d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
mov ecx, dword [ebp - 0x10]
push str.CryptCATAdminAcquireContext
push ebx
mov dword [ecx + 4], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [ecx + 8], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.CryptCATAdminReleaseContext
push ebx
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.WTHelperProvDataFromStateData
push ebx
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [ebp - 0x10]
push str.WinVerifyTrust
push ebx
mov dword [ecx + 0x20], eax
call esi
mov ebx, dword [ebp - 0x10]
push str.CertNameToStrW
push edi
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10001ab0
call fcn.1003d419
call fcn.1003d419
call fcn.10001ab0
call fcn.1003d419
call fcn.1003d419
int3