Function at 0x6e923490
Capabilities:
Inspect section memory permissions

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1c8
mov eax, dword [ecx]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x18c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x17c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x190], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x194], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x198], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x184], eax
xor eax, eax
mov dword [ebp - 0x170], eax
xor eax, eax
test byte [0x6e928d60], 8
mov dword [ebp - 0x16c], eax
jne 0x6e923cd0
mov ecx, dword [ebp - 0x17c]
lea eax, [ebp - 0x160]
mov edx, 0xa
mov dword [ebp - 0x14c], eax
mov esi, 1
mov dword [ebp - 0x148], edx
test ecx, ecx
je 0x6e9237b9
mov edi, dword [ebp - 0x17c]
movzx eax, word [edi]
test eax, eax
je 0x6e923dc2
test esi, esi
je 0x6e9236bd
mov ebx, dword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
je 0x6e92379b
mov esi, edi
jmp 0x6e923567
movzx eax, word [esi + 2]
add esi, 2
test eax, eax
je 0x6e923790
mov dword [esp], eax
call ebx
test eax, eax
jne 0x6e923558
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x188], eax
movzx edi, word [esi]
cmp edi, 0x3d
je 0x6e923d46
test edi, edi
mov edx, esi
je 0x6e923d46
mov dword [ebp - 0x180], esi
mov esi, edx
jmp 0x6e9235b8
movzx edi, word [esi + 2]
add esi, 2
test edi, edi
je 0x6e923820
cmp edi, 0x3d
je 0x6e9238d8
mov dword [esp], edi
call ebx
test eax, eax
nop
je 0x6e9235a0
test edi, edi
mov edx, esi
mov esi, dword [ebp - 0x180]
je 0x6e923826
mov dword [ebp - 0x164], edx
sub edx, esi
mov edi, dword [ebp - 0x14c]
mov eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x148]
jb 0x6e923648
lea esi, [ebp - 0x160]
cmp edi, esi
je 0x6e923619
mov dword [esp], edi
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], edx
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
sub esp, 4
mov dword [ebp - 0x17c], edx
inc eax
mov dword [ebp - 0x148], eax
lea eax, [edx + 2]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
mov esi, dword [ebp - 0x168]
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x14c], eax
sub esp, 4
mov edi, eax
cmp edx, 8
mov ecx, edx
jae 0x6e923958
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14c]
mov word [eax + edx], 0
test byte [0x6e928d60], 8
jne 0x6e923990
mov dword [esp], 2
mov eax, dword [ebp - 0x14c]
mov ecx, 5
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sym.crypt32.dll_CryptFindOIDInfo
mov dword [ebp - 0x180], eax
sub esp, 0xc
test eax, eax
jne 0x6e923898
mov edx, dword [ebp - 0x184]
test edx, edx
je 0x6e9236b0
mov eax, dword [ebp - 0x168]
mov dword [edx], eax
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80092023
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x160]
cmp eax, edx
je 0x6e9236d8
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
xor edx, edx
mov dword [ebp - 0x180], edx
mov ebx, dword [ebp - 0x170]
xor ecx, ecx
mov dword [ebp - 0x17c], ecx
mov esi, dword [sym.imp.kernel32.dll_LocalFree]
test ebx, ebx
je 0x6e923764
nop
lea esi, [esi]
mov eax, dword [ebp - 0x17c]
xor edi, edi
mov ecx, dword [ebp - 0x16c]
lea ebx, [eax*8]
add ecx, ebx
mov eax, dword [ecx]
test eax, eax
je 0x6e923742
lea esi, [esi]
mov edx, dword [ecx + 4]
mov eax, edi
inc edi
shl eax, 4
add eax, edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x16c]
add ecx, ebx
sub esp, 4
cmp dword [ecx], edi
ja 0x6e923720
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
inc dword [ebp - 0x17c]
mov eax, dword [ebp - 0x17c]
sub esp, 4
cmp dword [ebp - 0x170], eax
ja 0x6e923700
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x180]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
movzx eax, word [edi]
test eax, eax
jne 0x6e923545
mov dword [ebp - 0x188], 1
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x160]
cmp eax, edx
jne 0x6e923876
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x6e9237cf
mov eax, dword [ebp - 0x184]
mov dword [eax], 0
mov eax, dword [ebp - 0x198]
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x194]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x170]
mov dword [esp + 8], eax
mov eax, 7
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sym.crypt32.dll_CryptEncodeObjectEx
mov dword [ebp - 0x180], eax
sub esp, 0x1c
jmp 0x6e9236e0
mov esi, dword [ebp - 0x180]
test byte [0x6e928d60], 8
jne 0x6e923917
mov edx, dword [ebp - 0x184]
test edx, edx
je 0x6e923845
mov eax, dword [ebp - 0x168]
mov dword [edx], eax
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80092023
mov eax, dword [ebp - 0x17c]
cmp word [eax], 0
jne 0x6e9236bd
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x160]
cmp eax, edx
je 0x6e9236d8
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
mov esi, dword [ebp - 0x188]
push eax
test esi, esi
jne 0x6e9237b9
jmp 0x6e9236d8
mov edi, dword [ebp - 0x164]
jmp 0x6e9238a3
add edi, 2
movzx esi, word [edi]
mov dword [esp], esi
call ebx
test eax, eax
jne 0x6e9238a0
mov edx, esi
mov esi, eax
cmp edx, 0x3d
je 0x6e9239d0
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x6e9236b0
mov dword [eax], edi
jmp 0x6e9236b0
mov edx, esi
mov esi, dword [ebp - 0x180]
test edi, edi
je 0x6e923826
cmp edi, 0x3d
je 0x6e9235d2
mov dword [esp], edi
mov dword [ebp - 0x180], edx
call ebx
mov edx, dword [ebp - 0x180]
test eax, eax
jne 0x6e9235d2
test byte [0x6e928d60], 8
je 0x6e923833
mov edx, 0xffffffff
mov eax, esi
call fcn.6e920500
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.missing_equals_char_at__s_n
mov dword [esp + 0xc], eax
mov eax, str.CRYPT_GetNextKeyW
mov dword [esp + 8], eax
mov eax, 0x6e928d60
mov dword [esp + 4], eax
call fcn.6e920240
jmp 0x6e923833
test edi, 1
jne 0x6e923e00
test edi, 2
jne 0x6e923e10
test edi, 4
je 0x6e923653
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x6e923653
mov eax, dword [ebp - 0x14c]
mov edx, 0xffffffff
mov esi, str.Keyname_is__s_n
mov edi, str.CRYPT_KeynameKeeperFromTokenW
call fcn.6e920500
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, 0x6e928d60
mov dword [esp + 4], eax
call fcn.6e920240
jmp 0x6e92366e
mov edx, dword [ebp - 0x190]
lea eax, [edi + 2]
mov ecx, 0x6e938726
test edx, 0x4000000
jne 0x6e923a04
test edx, 0x40000000
mov ecx, 0x6e93872a
jne 0x6e923a04
test edx, 0x8000000
mov ecx, 0x6e93870a
je 0x6e923f43
mov edx, dword [ebp - 0x184]
mov dword [esp + 8], edx
lea edx, [ebp - 0x168]
mov dword [esp + 4], edx
lea edx, [ebp - 0x172]
mov dword [esp], edx
mov edx, dword [ebp - 0x190]
call fcn.6e920770
test eax, eax
je 0x6e923d4d
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x6e923f36
mov dword [ebp - 0x17c], eax
movzx edx, word [ebp - 0x172]
test edx, edx
je 0x6e923a5e
movzx ecx, word [eax]
cmp ecx, edx
je 0x6e923f80
test byte [0x6e928d60], 8
jne 0x6e923e37
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x6e923f1c
mov dword [esp], eax
mov edx, dword [ebp - 0x170]
lea edx, [edx*8 + 8]
mov dword [esp + 4], edx
call sym.crypt32.dll_CryptMemRealloc
mov dword [ebp - 0x16c], eax
sub esp, 8
test eax, eax
je 0x6e923e25
mov dword [esp], 0x10
mov edx, dword [ebp - 0x170]
lea ebx, [eax + edx*8]
call sym.crypt32.dll_CryptMemAlloc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x170]
sub esp, 4
mov edx, dword [ebp - 0x16c]
lea ecx, [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
test edx, edx
je 0x6e923ff8
mov dword [ecx], 1
mov ebx, dword [ebp - 0x180]
mov ecx, 0x6e938858
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + edx*8 + 4]
mov edx, dword [ebx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x16c]
shl eax, 3
mov edx, dword [edx + eax + 4]
mov dword [edx + 4], 1
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x6e923b2f
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x188], edx
mov edx, dword [ebp - 0x168]
cmp word [edx], 0x22
je 0x6e923f5b
mov dword [ebp - 0x19c], esi
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx + eax + 4]
xor edx, edx
mov dword [ebp - 0x180], edx
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1a0], edx
mov esi, eax
mov eax, dword [ebp - 0x188]
mov edx, dword [ebp - 0x180]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x6e923fda
xor eax, eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x140], eax
xor eax, eax
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x164]
inc dword [ebp - 0x180]
mov dword [ebp - 0x144], ebx
cmp eax, edx
jbe 0x6e923c37
sub eax, edx
add eax, 2
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
mov dword [ebp - 0x13c], eax
sub esp, 4
test eax, eax
mov edi, eax
je 0x6e923f0a
mov ecx, dword [ebp - 0x168]
xor edx, edx
mov eax, dword [ebp - 0x164]
sub eax, ecx
test eax, eax
jg 0x6e923bf8
jmp 0x6e923c24
mov edx, eax
mov eax, dword [ebp - 0x164]
sub eax, ecx
sar eax, 1
cmp eax, edx
jle 0x6e923c24
movzx eax, word [ecx + edx*2]
add edi, 2
mov word [edi - 2], ax
lea eax, [edx + 1]
mov ecx, dword [ebp - 0x168]
cmp word [ecx + edx*2], 0x22
jne 0x6e923be8
mov eax, dword [ebp - 0x164]
add edx, 2
sub eax, ecx
sar eax, 1
cmp eax, edx
jg 0x6e923bf8
mov word [edi], 0
mov eax, dword [ebp - 0x13c]
sub edi, eax
mov dword [ebp - 0x140], edi
lea eax, [esi + 8]
mov edx, 0x8000
mov dword [esp + 0x18], eax
lea eax, [esi + 0xc]
mov ecx, 0x18
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x144]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.crypt32.dll_CryptEncodeObjectEx
sub esp, 0x1c
test eax, eax
mov edi, eax
jne 0x6e923d8c
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x6e923d8c
cmp ebx, 3
je 0x6e923de8
cmp ebx, 4
je 0x6e923d60
cmp ebx, 7
jne 0x6e923cba
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x80092022
je 0x6e923d73
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e923b66
mov eax, dword [ebp - 0x17c]
mov edx, 0xffffffff
mov esi, str.CertStrToNameW
mov edi, 0x6e928d60
call fcn.6e920500
mov edx, dword [ebp - 0x184]
mov dword [esp + 0x1c], ebx
mov ebx, str.__08x___s___08x___p___p___p___p__n
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x198]
mov dword [esp + 4], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], 3
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x194]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x190]
mov dword [esp + 0x18], edx
call fcn.6e920240
jmp 0x6e9234fc
mov edx, esi
jmp 0x6e9238e0
cmp word [edi + 2], 0
jne 0x6e9236bd
jmp 0x6e923862
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x80092021
jne 0x6e923cba
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x168]
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0x184]
mov dword [edx], eax
jmp 0x6e923cba
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
test edi, edi
je 0x6e923b66
mov eax, dword [ebp - 0x170]
mov esi, edi
inc eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x17c]
test eax, eax
jne 0x6e923526
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x160]
cmp eax, edx
je 0x6e923885
mov dword [ebp - 0x188], esi
jmp 0x6e923876
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x80092020
jne 0x6e923cba
jmp 0x6e923d73
movzx eax, byte [esi]
inc edi
inc esi
lea ecx, [edx - 1]
mov byte [edi - 1], al
jmp 0x6e923964
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x6e923970
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xe
jmp 0x6e9236bd
mov ecx, dword [ebp - 0x168]
sub eax, ecx
sar eax, 1
mov edx, eax
mov eax, ecx
call fcn.6e920500
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x180]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x6e923f8e
mov eax, ebx
shr eax, 0x10
je 0x6e924083
mov dword [esp], ebx
mov eax, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
sub esp, 8
test eax, eax
jne 0x6e92409b
cmp byte [ebx], 0
je 0x6e9240a5
mov edi, eax
cmp byte [ebx + edi + 1], 0
lea eax, [eax + 1]
jne 0x6e923e92
mov byte [ebp - 0x144], 0x22
lea eax, [ebp - 0x143]
jmp 0x6e923edf
cmp dl, 9
je 0x6e923feb
cmp dl, 0xa
jne 0x6e924015
mov word [eax], 0x6e5c
add eax, 2
lea edx, [edi - 1]
test edi, edi
jle 0x6e924051
lea edi, [ebp - 0x21]
cmp eax, edi
ja 0x6e924051
mov edi, edx
movzx edx, byte [ebx]
inc ebx
cmp dl, 0xd
je 0x6e923fcd
jle 0x6e923ead
cmp dl, 0x22
je 0x6e924044
cmp dl, 0x5c
jne 0x6e92400b
mov word [eax], 0x5c5c
add eax, 2
jmp 0x6e923ec7
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x34], 0xe
jmp 0x6e923b66
mov dword [esp], 8
call sym.crypt32.dll_CryptMemAlloc
mov dword [ebp - 0x16c], eax
sub esp, 4
jmp 0x6e923a9b
xor edx, edx
mov dword [ebp - 0x17c], edx
jmp 0x6e923a5e
and edx, 0x20000000
mov ecx, 0x6e93871c
mov edx, str.___r_n
cmove ecx, edx
jmp 0x6e923a04
test dword [ebp - 0x190], 0x10000000
jne 0x6e923b3f
sub dword [ebp - 0x164], 2
add edx, 2
mov dword [ebp - 0x168], edx
jmp 0x6e923b3f
lea edx, [eax + 2]
mov dword [ebp - 0x17c], edx
jmp 0x6e923a5e
mov eax, str._null_
mov edx, dword [ebp - 0x188]
mov ecx, str.OID__s__value__s_n
mov ebx, str.CRYPT_ValueToRDN
mov dword [esp + 0x10], eax
mov edi, 0x6e928d60
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 4], edi
mov dword [esp], 3
call fcn.6e920240
jmp 0x6e923a6b
mov word [eax], 0x725c
add eax, 2
jmp 0x6e923ec7
mov esi, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x170]
jmp 0x6e923dad
mov word [eax], 0x745c
add eax, 2
jmp 0x6e923ec7
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0xe
jmp 0x6e923dad
mov cl, dl
sub cl, 0x20
cmp cl, 0x5e
jbe 0x6e92407b
mov word [eax], 0x785c
mov cl, dl
and dl, 0xf
shr cl, 4
movzx edx, dl
movzx ecx, cl
movzx edx, byte [edx + str.0123456789abcdefCertRDNValueToStrA]
add eax, 4
movzx ecx, byte [ecx + str.0123456789abcdefCertRDNValueToStrA]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x6e923ec7
mov word [eax], 0x225c
add eax, 2
jmp 0x6e923ec7
mov byte [eax], 0x22
test edx, edx
jle 0x6e9240b7
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
mov byte [edx], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call fcn.6e9257e0
jmp 0x6e923f93
mov byte [eax], dl
inc eax
jmp 0x6e923ec7
mov dword [esp], str._04x
movzx ebx, bx
mov dword [esp + 4], ebx
call fcn.6e9202d0
jmp 0x6e923f93
mov eax, str._invalid_
jmp 0x6e923f93
mov eax, 0x2222
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x143]
lea edx, [eax + 1]
jmp 0x6e924065