Function at 0x68003fb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x1c]
push ebx
sub esp, 0x4c
mov dword [ebp - 0x34], edx
mov ebx, dword [sym.imp.crypt32.dll_CertGetEnhancedKeyUsage]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [ebp - 0x2c], eax
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x680041f0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x3c], edx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], edi
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [ebp - 0x38], eax
mov edi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
sub esp, 0x10
test eax, eax
je 0x68004288
test edi, edi
je 0x68004220
mov ebx, dword [edi]
test ebx, ebx
je 0x68004371
mov ebx, 1
xor esi, esi
jmp 0x68004087
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
add ebx, eax
mov edx, dword [edi]
lea eax, [edx - 1]
cmp eax, esi
ja 0x680040d8
inc esi
cmp edx, esi
jbe 0x68004102
mov dword [esp + 8], 7
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
mov dword [esp], 1
mov dword [esp + 4], eax
call dword [sym.imp.crypt32.dll_CryptFindOIDInfo]
sub esp, 0xc
test eax, eax
je 0x68004068
mov edx, dword [eax + 8]
cmp word [edx], 0
je 0x68004079
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x680040c0
sub eax, edx
mov edx, dword [edi]
sar eax, 1
add ebx, eax
lea eax, [edx - 1]
cmp eax, esi
jbe 0x68004082
mov ecx, 0x20
mov eax, 0x6801769c
jmp 0x680040ec
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x680040e8
sub eax, 0x6801769c
inc esi
sar eax, 1
add ebx, eax
cmp edx, esi
ja 0x68004087
add ebx, ebx
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x34]
sub esp, 0xc
mov dword [eax], ebx
test ebx, ebx
je 0x680041c4
mov ecx, dword [edi]
test ecx, ecx
je 0x680041bf
xor esi, esi
lea esi, [esi]
mov dword [esp + 8], 7
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
mov dword [esp], 1
mov dword [esp + 4], eax
call dword [sym.imp.crypt32.dll_CryptFindOIDInfo]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
test eax, eax
je 0x680042b0
mov ecx, dword [eax + 8]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x68004180
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
cmp word [edx], 0
je 0x680041ad
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x680041a0
sub eax, edx
add ebx, eax
mov edx, dword [edi]
lea eax, [edx - 1]
cmp eax, esi
ja 0x680042e1
inc esi
cmp edx, esi
ja 0x68004148
xor eax, eax
mov word [ebx], ax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call ebx
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0x10
mov dword [ebp - 0x30], edi
test eax, eax
jne 0x68004330
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], 0x400
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov edi, dword [ebp - 0x34]
sub esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x6800427b
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x68024004]
mov dword [esp + 4], 0x438
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x68004220
mov eax, dword [edi + 4]
mov edx, dword [eax + esi*4]
movsx ax, byte [edx]
test al, al
je 0x680042cf
nop
inc edx
mov word [ebx], ax
add ebx, 2
movsx ax, byte [edx]
test al, al
jne 0x680042c0
xor edx, edx
mov word [ebx], dx
mov edx, dword [edi]
lea eax, [edx - 1]
cmp eax, esi
jbe 0x680041ba
xor eax, eax
mov ecx, 0x2c
jmp 0x680042f7
movzx ecx, word [eax + 0x6801769c]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x680042f0
mov ecx, 0x20
mov eax, 0x6801769c
jmp 0x68004314
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x68004310
sub eax, 0x6801769c
add ebx, eax
jmp 0x680041ba
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x3c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [ebp - 0x38], eax
mov edi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
jmp 0x68004031
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], 0x400
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov edi, dword [ebp - 0x34]
sub esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x6800427b
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [0x68024004]
mov dword [esp + 4], 0x439
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret