Function at 0x6800ce90
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov dword [ebp - 0x200], eax
mov dword [esp + 4], 0x7d1
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp], esi
mov dword [esp + 4], 0x7d2
call sym._GetDlgItem_8
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebx + 0x30]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sym._WTHelperGetProvSignerFromChain_16
mov esi, eax
imul eax, dword [eax + 0xc], 0x3c
sub esp, 0x10
mov edx, dword [esi + 0x10]
lea eax, [edx + eax - 0x3c]
mov dword [ebp - 0x204], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6800cf1b
test byte [eax + 6], 1
je 0x6800d040
mov edx, 0xcb
mov eax, edi
call sym._add_icon_to_control
lea edx, [ebp - 0x1e0]
xor eax, eax
mov ecx, 0x14
mov dword [ebp - 0x1ec], 0x5c
mov dword [ebp - 0x1e8], 1
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1fc]
lea eax, [ebp - 0x1ec]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x444
mov dword [esp], edi
mov dword [ebp - 0x1e4], 1
call sym._SendMessageW_16
lea ecx, [ebp - 0x190]
mov edx, 0x3e9
mov eax, edi
mov dword [ebp - 0x190], 0xbc
sub esp, 0x10
mov dword [ebp - 0x18c], 1
mov dword [ebp - 0x184], 0xc8
call sym._add_string_resource_with_paraformat_to_control
mov eax, dword [ebp - 0x200]
mov dword [esp + 4], 0x7d3
mov dword [esp], eax
call sym._GetDlgItem_8
lea ecx, [ebp - 0x1ec]
sub esp, 8
mov dword [ebp - 0x1fc], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp dword [esi + 0x1c], 0x80096004
je 0x6800d0b8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6800d019
mov eax, dword [eax + 4]
and eax, 0x10000
mov dword [ebp - 0x208], eax
je 0x6800d060
mov eax, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x190]
mov edx, 0x3ed
call sym._add_string_resource_with_paraformat_to_control
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x6800d0a0
mov edx, 0xca
mov eax, edi
call sym._add_icon_to_control
jmp 0x6800cf27
mov eax, dword [ebp - 0x204]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x6800d0e0
cmp dword [esi + 0xc], 1
lea ecx, [ebp - 0x190]
jne 0x6800d084
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x6800d670
mov eax, dword [ebp - 0x1fc]
mov edx, 0x3ec
call sym._add_string_resource_with_paraformat_to_control
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xc9
mov eax, edi
call sym._add_icon_to_control
jmp 0x6800cf27
mov eax, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x190]
mov edx, 0x3ea
call sym._add_string_resource_with_paraformat_to_control
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x6800d190
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x210], 0
lea eax, [edx + eax*4]
mov dword [ebp - 0x20c], eax
xor eax, eax
mov ebx, eax
jmp 0x6800d161
mov ecx, 0x18
mov esi, eax
mov edi, str.1.3.6.1.4.1.311.10.12.1
repe cmpsb byte [esi], byte es:[edi]
mov ecx, 1
seta al
sbb al, 0
movsx eax, al
test eax, eax
cmove ecx, dword [ebp - 0x204]
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x204], ecx
add edx, 4
cmp dword [ebp - 0x20c], edx
je 0x6800d658
mov eax, dword [edx]
mov ecx, 0xc
mov edi, str.2.5.29.32.0
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta cl
sbb cl, 0
test cl, cl
jne 0x6800d120
mov dword [ebp - 0x210], 1
jmp 0x6800d152
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x210], 1
mov edi, 0xa
mov eax, dword [ebx + 0x10]
lea esi, [ebp - 0xd4]
mov edx, 0x3ef
mov word [ebp - 0x1f8], di
mov edi, dword [ebp - 0x1fc]
mov ecx, esi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0xd4], 0xbc
mov eax, edi
mov dword [ebp - 0xd0], 1
mov dword [ebp - 0xc8], 0xc8
call sym._add_string_resource_with_paraformat_to_control
mov eax, edi
mov ecx, 1
lea edx, [ebp - 0x1f8]
mov dword [ebp - 0x1fc], edi
call sym._add_unformatted_text_to_control
lea edx, [ebp - 0xc8]
xor eax, eax
mov ecx, 0x14
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1fc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [esp], eax
mov dword [ebp - 0xd4], 0x5c
mov dword [ebp - 0xd0], 1
mov dword [ebp - 0xcc], 0
call sym._SendMessageW_16
mov eax, dword [ebp - 0x20c]
sub esp, 0x10
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x6c]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x68]
mov dword [esp], str.1.3.6.1.4.1.311.21.10
mov dword [esp + 4], eax
call sym._CertFindExtension_12
sub esp, 0xc
test eax, eax
je 0x6800d640
lea ecx, [ebp - 0x1f0]
lea edx, [ebp - 0x1f4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0x8000
mov edx, dword [eax + 8]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0x10
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._CryptDecodeObjectEx_32
sub esp, 0x20
test eax, eax
je 0x6800d368
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x1f4]
mov esi, dword [eax]
test esi, esi
je 0x6800d35c
mov dword [ebp - 0x214], ebx
mov esi, dword [ebp - 0x1fc]
nop
mov ebx, dword [ebp - 0x20c]
mov edx, dword [eax + 4]
xor edi, edi
lea ebx, [ebx + ebx*2]
shl ebx, 2
add edx, ebx
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x6800d345
lea esi, [esi]
mov ecx, dword [edx + 8]
lea eax, [edi + edi*2]
add edi, 1
lea eax, [ecx + eax*4]
mov edx, dword [eax]
mov eax, esi
call sym._add_local_oid_text_to_control
mov eax, dword [ebp - 0x1f4]
mov edx, dword [eax + 4]
add edx, ebx
cmp edi, dword [edx + 4]
jb 0x6800d320
add dword [ebp - 0x20c], 1
mov ebx, dword [ebp - 0x20c]
cmp ebx, dword [eax]
jb 0x6800d300
mov ebx, dword [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
mov edi, 1
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x6800d6c8
mov edx, dword [ebp - 0x204]
test edx, edx
jne 0x6800d688
mov edi, dword [ebx + 8]
and edi, 0x20000
jne 0x6800d02f
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x6c]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x68]
mov dword [esp], str.2.5.29.32
mov dword [esp + 4], eax
call sym._CertFindExtension_12
sub esp, 0xc
test eax, eax
je 0x6800d02f
lea edx, [ebp - 0x1f4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edx
lea edx, [ebp - 0x1f8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0x8000
mov edx, dword [eax + 8]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 8], edx
mov eax, dword [eax]
mov dword [esp], 1
mov dword [esp + 4], eax
call sym._CryptDecodeObjectEx_32
sub esp, 0x20
test eax, eax
je 0x6800d02f
mov ebx, dword [ebp - 0x1f8]
mov ecx, str.1.3.6.1.5.5.7.2.1
lea esi, [ebx + 4]
mov eax, ebx
mov edx, esi
call sym._find_policy_qualifier.isra.0
test eax, eax
je 0x6800d853
lea ebx, [ebp - 0x1f0]
lea esi, [ebp - 0xd4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0x8000
mov edx, dword [eax]
mov dword [ebp - 0x204], ebx
mov dword [esp + 0xc], edx
mov eax, dword [eax + 4]
mov dword [esp + 4], 6
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._CryptDecodeObjectEx_32
sub esp, 0x20
test eax, eax
je 0x6800d9dd
mov eax, dword [ebp - 0x1f0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [eax + 4]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._CertRDNValueToStrW_16
mov dword [ebp - 0xd4], eax
sub esp, 0x10
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20c], eax
call eax
mov ebx, eax
mov dword [ebp - 0x208], eax
sub esp, 0xc
mov eax, dword [ebp - 0x1f0]
test ebx, ebx
je 0x6800da1b
mov edx, dword [ebp - 0xd4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
lea edx, [eax + 4]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._CertRDNValueToStrW_16
mov eax, dword [ebp - 0x1f0]
sub esp, 0x10
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [ebp - 0x1fc], eax
call eax
mov eax, dword [ebp - 0x1f8]
mov ecx, str.1.3.6.1.5.5.7.2.2
sub esp, 4
lea edx, [eax + 4]
call sym._find_policy_qualifier.isra.0
mov ebx, eax
test eax, eax
je 0x6800d8ee
mov eax, dword [ebp - 0x204]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x8000
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0x2e
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._CryptDecodeObjectEx_32
sub esp, 0x20
test eax, eax
je 0x6800d8ec
mov eax, dword [ebp - 0x1f0]
mov edx, dword [eax + 4]
cmp word [edx], 0
mov eax, edx
je 0x6800d5b9
nop
add eax, 2
cmp word [eax], 0
jne 0x6800d5b0
sub eax, edx
mov dword [esp + 4], 0
add eax, 2
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20c]
call eax
mov ecx, dword [ebp - 0x1f0]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6800d608
mov edx, dword [ecx + 4]
lea esi, [esi]
movzx eax, word [edx + edi]
mov word [ebx + edi], ax
add edi, 2
test ax, ax
jne 0x6800d5f8
mov dword [esp], ecx
mov eax, dword [ebp - 0x1fc]
call eax
mov eax, dword [ebp - 0x208]
sub esp, 4
or eax, ebx
jne 0x6800d8ee
mov ebx, dword [ebp - 0x1f8]
mov dword [esp], ebx
mov eax, dword [ebp - 0x1fc]
call eax
sub esp, 4
jmp 0x6800d02f
mov eax, dword [ebp - 0x1fc]
mov edx, 0x6801502c
call sym._add_oid_text_to_control
jmp 0x6800d368
mov eax, ebx
mov edi, ebx
mov ebx, dword [ebp - 0x214]
test eax, eax
je 0x6800d36d
jmp 0x6800d1a4
mov eax, dword [ebp - 0x1fc]
mov edx, 0x3eb
call sym._add_string_resource_with_paraformat_to_control
jmp 0x6800d02f
lea esi, [ebp - 0xd4]
mov eax, dword [ebp - 0x1fc]
mov edx, 0x3ee
mov dword [ebp - 0xd4], 0xbc
mov dword [ebp - 0xd0], 1
mov ecx, esi
mov dword [ebp - 0xc8], 0xc8
call sym._add_string_resource_with_paraformat_to_control
jmp 0x6800d389
mov esi, dword [ebx + 0x10]
mov eax, 0xa
mov dword [esp + 8], 0
mov word [ebp - 0x1f4], ax
lea eax, [ebp - 0x1f0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [ebp - 0x204], eax
call sym._CertGetEnhancedKeyUsage_16
sub esp, 0x10
test eax, eax
je 0x6800d688
mov edx, dword [ebp - 0x1f0]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20c], eax
sub esp, 0xc
test eax, eax
je 0x6800d688
mov ecx, dword [ebp - 0x204]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp + 0xc], ecx
mov dword [esp], esi
call sym._CertGetEnhancedKeyUsage_16
mov ecx, dword [ebp - 0x210]
sub esp, 0x10
mov dword [ebp - 0x204], ecx
test eax, eax
je 0x6800d824
lea esi, [ebp - 0xd4]
test edi, edi
je 0x6800d994
lea edx, [ebp - 0xc8]
xor eax, eax
mov ecx, 0x14
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1fc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x444
mov dword [esp], eax
mov dword [ebp - 0xd4], 0x5c
mov dword [ebp - 0xd0], 1
mov dword [ebp - 0xcc], 0
call sym._SendMessageW_16
mov eax, dword [ebp - 0x20c]
sub esp, 0x10
mov ecx, dword [eax]
test ecx, ecx
je 0x6800d975
mov dword [ebp - 0x204], ebx
mov edi, dword [ebp - 0x1fc]
mov esi, dword [ebp - 0x208]
mov ebx, dword [ebp - 0x20c]
lea esi, [esi]
mov eax, dword [ebx + 4]
mov edx, dword [eax + esi*4]
mov eax, edi
add esi, 1
call sym._add_local_oid_text_to_control
cmp esi, dword [ebx]
jb 0x6800d800
mov ebx, dword [ebp - 0x204]
mov dword [ebp - 0x204], 0
mov ecx, dword [ebp - 0x20c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6800d37b
mov ecx, str.1.3.6.1.5.5.7.2.2
mov edx, esi
mov eax, ebx
call sym._find_policy_qualifier.isra.0
test eax, eax
je 0x6800da0b
lea ebx, [ebp - 0x1f0]
lea esi, [ebp - 0xd4]
mov dword [ebp - 0x204], ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [ebp - 0x1fc], ebx
mov ebx, dword [ebp - 0x204]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0x8000
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 4]
mov dword [esp + 4], 0x2e
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._CryptDecodeObjectEx_32
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x208], 0
sub esp, 0x20
mov dword [ebp - 0x20c], ebx
test eax, eax
jne 0x6800d59d
jmp 0x6800d624
xor ebx, ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20c]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6800d624
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x208]
mov ebx, dword [ebp - 0x200]
mov dword [esi], eax
mov dword [esp + 4], 0x7d6
mov dword [esp], ebx
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._EnableWindow_8
sub esp, 8
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov dword [esp], ebx
call sym._SetWindowLongW_12
sub esp, 0xc
jmp 0x6800d624
mov eax, dword [ebp - 0x1fc]
mov edx, 0x68015020
call sym._add_oid_text_to_control
mov dword [ebp - 0x204], 0
jmp 0x6800d824
mov edi, dword [ebp - 0x1fc]
mov ecx, esi
mov edx, 0x3ef
mov dword [ebp - 0xd4], 0xbc
mov dword [ebp - 0xd0], 1
mov dword [ebp - 0xc8], 0xc8
mov eax, edi
call sym._add_string_resource_with_paraformat_to_control
mov ecx, 1
lea edx, [ebp - 0x1f4]
mov eax, edi
call sym._add_unformatted_text_to_control
jmp 0x6800d781
mov ebx, dword [ebp - 0x1f8]
mov ecx, str.1.3.6.1.5.5.7.2.2
lea edx, [ebx + 4]
mov eax, ebx
call sym._find_policy_qualifier.isra.0
mov ecx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [ebp - 0x1fc], ecx
test eax, eax
jne 0x6800d887
jmp 0x6800d62a
mov eax, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [ebp - 0x1fc], eax
jmp 0x6800d62a
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [ebp - 0x1fc], eax
call eax
mov ebx, dword [ebp - 0x1f8]
mov ecx, str.1.3.6.1.5.5.7.2.2
push eax
lea edx, [ebx + 4]
mov eax, ebx
call sym._find_policy_qualifier.isra.0
test eax, eax
jne 0x6800d887
jmp 0x6800d62a