Function at 0x66983190
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov edi, dword [ebp + 8]
test byte [0x66986060], 8
jne 0x66983310
mov eax, dword [ebp + 0x2c]
and eax, 0x40080
cmp eax, 0x80
je 0x66983758
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x66983698
test byte [ebp + 0x2c], 0x40
je 0x669831db
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x66983698
test byte [ebp + 0x2c], 0x81
je 0x669832e8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
test edi, edi
je 0x66983410
mov edx, dword [edi + 8]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x140], edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x130], ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x13c], edx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x134], esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x128], ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x12c], esi
test ebx, ebx
je 0x669838d8
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov edx, dword [esi]
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], edx
mov edi, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [section..bss]
mov dword [esp + 0xc], 0x669825d0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x64
mov dword [esp], eax
call sub.user32.dll_DialogBoxParamW
sub esp, 0x14
test eax, eax
jle 0x66983770
cmp eax, 2
je 0x66983a70
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp - 0x124]
test edx, edx
je 0x669832bc
mov edi, dword [ebp + 0x28]
mov dword [edi], eax
test eax, eax
je 0x669832d7
test dword [ebp + 0x2c], 0x20000
jne 0x669835b0
test byte [ebp + 0x2c], 2
je 0x66983b00
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
call fcn.66981d30
test eax, eax
je 0x669831e5
jmp 0x669832d7
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x66983ab0
mov eax, dword [ebp + 0x18]
shr eax, 0x10
je 0x66983490
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_IsBadStringPtrW
mov dword [ebp - 0x150], str._invalid_
sub esp, 8
test eax, eax
jne 0x669834aa
mov ebx, dword [ebp + 0x18]
movzx edx, word [ebx]
test dx, dx
je 0x66983bc8
nop
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x66983360
mov ebx, 0x224c
lea eax, [ebp - 0x142]
mov word [ebp - 0x144], bx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x14c], ebx
jmp 0x669833d1
cmp dx, 9
je 0x66983848
cmp dx, 0xa
jne 0x66983866
mov esi, 0x6e5c
add eax, 2
mov word [eax - 2], si
lea esi, [ecx - 1]
test ecx, ecx
jle 0x66983908
lea ebx, [ebp - 0x22]
cmp eax, ebx
ja 0x66983908
mov ebx, dword [ebp - 0x14c]
mov ecx, esi
movzx edx, word [ebx]
add dword [ebp - 0x14c], 2
cmp dx, 0xd
je 0x66983830
jbe 0x66983390
cmp dx, 0x22
je 0x669838c0
cmp dx, 0x5c
jne 0x66983859
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x669833b0
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x134], esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], esi
test ecx, ecx
je 0x66983ad0
mov ebx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov edx, dword [ebx]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], edx
jmp 0x66983271
movzx eax, word [ebp + 0x18]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.669818c0
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x66983ac0
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x66983940
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_IsBadStringPtrW
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x669836de
mov ebx, dword [ebp + 0xc]
movzx edx, word [ebx]
test dx, dx
je 0x66983bf0
lea esi, [esi]
nop
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x669834f8
mov ebx, dword [ebp + 0xc]
mov eax, 0x224c
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x142]
mov dword [ebp - 0x14c], ebx
jmp 0x66983571
cmp dx, 9
je 0x66983818
cmp dx, 0xa
jne 0x66983792
mov esi, 0x6e5c
add eax, 2
mov word [eax - 2], si
lea esi, [esi]
nop
lea ebx, [ebp - 0x22]
lea esi, [ecx - 1]
cmp eax, ebx
ja 0x669836b0
test ecx, ecx
jle 0x669836b0
mov ecx, dword [ebp - 0x14c]
movzx edx, word [ecx]
mov ecx, esi
add dword [ebp - 0x14c], 2
cmp dx, 0xd
je 0x66983800
jbe 0x66983528
cmp dx, 0x22
je 0x669837e8
cmp dx, 0x5c
jne 0x66983785
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x66983550
mov dword [esp], 0x66986040
xor edi, edi
mov ebx, dword fs:[0x18]
call sub.kernel32.dll_EnterCriticalSection
mov esi, dword [0x66986058]
mov dword [ebp - 0x14c], ebx
sub esp, 4
cmp esi, 0x66986058
je 0x66983b28
mov dword [ebp - 0x150], ebx
mov ebx, dword [ebp + 0xc]
jmp 0x669835fe
mov esi, dword [esi]
cmp esi, 0x66986058
je 0x66983980
mov eax, dword [esi + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.kernel32.dll_lstrcmpW
sub esp, 8
test eax, eax
jne 0x669835f0
mov eax, dword [esi + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [esi + 0x10]
sub esp, 0xc
cmp word [eax], 0
je 0x66983667
mov ecx, eax
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x66983648
cmp ecx, eax
je 0x66983667
lea esi, [esi]
mov edx, eax
add eax, 1
mov byte [edx], 0
cmp eax, ecx
jne 0x66983658
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14c]
mov edi, 1
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
jmp 0x669835f0
lea esp, [ebp - 0xc]
mov ebx, 0x57
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov byte [eax], 0x22
test esi, esi
jle 0x66983c09
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call fcn.66985840
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0xc], str.__p___s___p___d___s___d___p___d___p__0x_08x__n
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], 0x66986060
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], 3
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
call fcn.66981330
mov eax, dword [ebp + 0x2c]
and eax, 0x40080
cmp eax, 0x80
jne 0x669831bf
lea esp, [ebp - 0xc]
mov ebx, 0x3ec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
lea esi, [edx - 0x20]
cmp si, 0x5e
jbe 0x66983970
mov esi, edx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, edx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, edx
and edx, 0xf
shr si, 4
movzx edx, byte [edx + str.0123456789abcdefCredUIStoreSSOCredA]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x66983550
mov esi, 0x225c
add eax, 2
mov word [eax - 2], si
jmp 0x66983550
mov ebx, 0x725c
add eax, 2
mov word [eax - 2], bx
jmp 0x66983550
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x66983550
mov ebx, 0x725c
add eax, 2
mov word [eax - 2], bx
jmp 0x669833b0
mov edx, 0x745c
add eax, 2
mov word [eax - 2], dx
jmp 0x669833b0
lea esi, [edx - 0x20]
cmp si, 0x5e
jbe 0x66983960
mov esi, edx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, edx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov esi, edx
and edx, 0xf
shr si, 4
movzx edx, byte [edx + str.0123456789abcdefCredUIStoreSSOCredA]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x669833b0
mov esi, 0x225c
add eax, 2
mov word [eax - 2], si
jmp 0x669833b0
mov dword [ebp - 0x124], 0
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x118], 0
jmp 0x6698326e
mov byte [eax], 0x22
test esi, esi
jle 0x66983be1
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call fcn.66985840
mov dword [ebp - 0x150], eax
jmp 0x669834aa
movzx eax, word [ebp + 0xc]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.669818c0
mov edx, eax
jmp 0x669836de
mov byte [eax], dl
add eax, 1
jmp 0x669833b0
mov byte [eax], dl
add eax, 1
jmp 0x66983550
test edi, edi
je 0x66983b28
mov ecx, dword [ebp - 0x134]
cmp word [ecx], 0
je 0x66983c1b
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x669839a0
sub eax, ecx
lea ebx, [eax + 2]
mov dword [esp + 8], ebx
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 sub.kernel32.dll_HeapAlloc
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x134]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0x12c]
cmp word [ecx], 0
je 0x66983c11
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x66983a00
sub eax, ecx
lea ebx, [eax + 2]
mov dword [esp + 8], ebx
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 sub.kernel32.dll_HeapAlloc
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x12c]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp + 0x2c]
shr eax, 0x12
and eax, 1
mov dword [esi + 0x14], eax
mov dword [esp], 0x66986040
call sub.kernel32.dll_LeaveCriticalSection
sub esp, 4
jmp 0x669832d7
mov ebx, 0x4c7
test byte [0x66986060], 8
je 0x669832d9
mov dword [esp + 0xc], str.dialog_cancelled_n
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 4], 0x66986060
mov dword [esp], 3
call fcn.66981330
jmp 0x669832d9
mov dword [ebp - 0x150], str._null_
jmp 0x669834aa
mov edx, str._null_
jmp 0x669836de
mov dword [ebp - 0x124], 0
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x118], 0
jmp 0x66983271
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
shr eax, 0x12
and eax, 1
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
call fcn.669829f0
mov ebx, eax
jmp 0x669832d9
mov dword [esp + 8], 0x18
mov ebx, 2
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 sub.kernel32.dll_HeapAlloc
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp word [eax], 0
je 0x66983b6f
nop
add eax, 2
cmp word [eax], 0
jne 0x66983b60
sub eax, dword [ebp + 0xc]
lea ebx, [eax + 2]
mov dword [esp + 8], ebx
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 sub.kernel32.dll_HeapAlloc
mov edi, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esi + 8], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov dword [esi], 0x66986058
mov eax, dword [0x6698605c]
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x6698605c], esi
jmp 0x66983988
mov byte [ebp - 0x142], 0x22
mov eax, 0x224c
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x142]
lea edx, [eax + 1]
jmp 0x66983923
mov esi, 0x224c
mov byte [ebp - 0x142], 0x22
lea eax, [ebp - 0x142]
mov word [ebp - 0x144], si
lea edx, [eax + 1]
jmp 0x669836cb
mov ebx, 2
jmp 0x66983a0e
mov ebx, 2
jmp 0x669839ae