Function at 0x669842a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0xf9c
mov ebp, esp
push edi
push esi
push ebx
call fcn.66985c90
lea edi, [ebp - 0xe1c]
lea ecx, [ebp - 0xe1e]
sub esp, eax
xor eax, eax
mov dword [ebp - 0xe1e], 0
sub ecx, edi
mov dword [ebp - 0xa1e], 0
add ecx, 0x404
shr ecx, 2
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xa18]
lea ecx, [ebp - 0xa1a]
mov dword [ebp - 0xa1a], 0
sub ecx, edi
mov dword [ebp - 0x1c], 0
add ecx, 0xa02
shr ecx, 2
rep stosd dword es:[edi], eax
test byte [0x66986060], 1
jne 0x669846f8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x66984a75
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x66984a90
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Basic
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0xf5c], eax
call eax
test eax, eax
jne 0x66984420
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x18]
and eax, 1
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 0x40082
mov eax, ebx
or eax, 0x40
test byte [ebp + 0x24], 2
cmove ebx, eax
test esi, esi
je 0x66984bf8
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
test esi, esi
je 0x66984397
mov eax, dword [eax + 4]
lea edx, [eax - 1]
cmp edx, 0x200
jbe 0x66984970
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x669843b3
mov eax, dword [eax + 0x14]
lea edx, [eax - 1]
cmp edx, 0x4ff
jbe 0x669849a8
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0x501
mov dword [esp + 0x20], eax
lea eax, [ebp - 0xa1a]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0xe1e]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0x202
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.credui.dll_CredUIPromptForCredentialsW
sub esp, 0x28
mov esi, eax
test eax, eax
je 0x66984550
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.NTLM
mov dword [esp], eax
mov eax, dword [ebp - 0xf5c]
call eax
test eax, eax
je 0x66984351
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Negotiate
mov dword [esp], eax
mov eax, dword [ebp - 0xf5c]
call eax
test eax, eax
je 0x66984351
test byte [0x66986060], 1
je 0x66984a9d
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x66984f35
mov eax, dword [ebp + 0x14]
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 0x66984de0
mov edi, dword [ebp + 0x14]
movzx edx, word [edi]
test dx, dx
je 0x66984f64
mov ebx, edi
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x669844b0
mov eax, 0x224c
mov edi, dword [ebp + 0x14]
lea ebx, [ebp - 0xf48]
lea esi, [ebp - 0xe28]
mov word [ebp - 0xf4a], ax
jmp 0x66984518
cmp dx, 9
je 0x66984e80
cmp dx, 0xa
jne 0x66984e9e
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x66984db2
cmp ebx, esi
ja 0x66984db2
movzx edx, word [edi]
mov ecx, eax
add edi, 2
cmp dx, 0xd
je 0x66984e68
jbe 0x669844e0
cmp dx, 0x22
je 0x66984ef0
cmp dx, 0x5c
jne 0x66984e91
mov eax, 0x5c5c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x66984500
lea eax, [ebp - 0xe1e]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edi, eax
test eax, eax
je 0x66984908
lea ebx, [eax + 2]
cmp word [eax + 2], 0
mov dword [ebp - 0xf60], ebx
je 0x66984f21
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x66984588
sub ebx, dword [ebp - 0xf60]
mov eax, ebx
add ebx, 2
sar eax, 1
mov dword [ebp - 0xf70], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.NTLM
mov dword [esp], eax
mov eax, dword [ebp - 0xf5c]
call eax
test eax, eax
jne 0x66984d00
lea edx, [ebp - 0xe1e]
mov eax, edi
sub eax, edx
mov edx, eax
add eax, 2
mov dword [ebp - 0xf64], eax
sar edx, 1
lea eax, [ebp - 0xe1e]
mov dword [ebp - 0xf68], edx
mov dword [ebp - 0xf74], eax
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0xf64]
lea eax, [eax + ebx + 0x1c]
cmp word [ebp - 0xa1a], 0
je 0x66984f08
lea edx, [ebp - 0xa1a]
nop
add edx, 2
cmp word [edx], 0
jne 0x66984610
lea edi, [ebp - 0xa1a]
sub edx, edi
lea edi, [edx + 2]
sar edx, 1
mov dword [ebp - 0xf5c], edi
mov dword [ebp - 0xf6c], edx
add eax, dword [ebp - 0xf5c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x66984e58
lea ecx, [eax + 0x1c]
mov eax, dword [ebp - 0xf60]
mov dword [esp + 8], ebx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xf60], ecx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0xf70]
mov ecx, dword [ebp - 0xf60]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xf68]
add ebx, ecx
mov dword [edi], ecx
test eax, eax
jne 0x66984ca0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0xf5c]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0xa1a]
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0xf6c]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x66984cd8
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x669847f8
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_IsBadStringPtrW
mov dword [ebp - 0xf60], str._invalid_
sub esp, 8
test eax, eax
jne 0x66984812
mov edi, dword [ebp + 0x14]
movzx edx, word [edi]
test dx, dx
je 0x66984e33
mov ebx, edi
lea esi, [esi]
nop
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x66984750
mov ebx, 0x224c
lea eax, [ebp - 0xf48]
lea edi, [ebp - 0xe28]
mov word [ebp - 0xf4a], bx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xf5c], ebx
jmp 0x669847be
cmp dx, 9
je 0x66984be0
cmp dx, 0xa
jne 0x66984b5e
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea esi, [ecx - 1]
test ecx, ecx
jle 0x66984c28
cmp eax, edi
ja 0x66984c28
mov ebx, dword [ebp - 0xf5c]
mov ecx, esi
movzx edx, word [ebx]
add dword [ebp - 0xf5c], 2
cmp dx, 0xd
je 0x66984bc8
jbe 0x66984780
cmp dx, 0x22
je 0x66984bb0
cmp dx, 0x5c
jne 0x66984b51
mov esi, 0x5c5c
add eax, 2
mov word [eax - 2], si
jmp 0x669847a0
movzx eax, word [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.669818c0
mov dword [ebp - 0xf60], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x66984cf0
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x66984c60
mov eax, dword [ebp + 8]
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 0x66984a0e
mov edi, dword [ebp + 8]
movzx edx, word [edi]
test dx, dx
je 0x66984e12
mov ebx, edi
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x66984860
mov ebx, dword [ebp + 8]
mov edi, 0x224c
lea eax, [ebp - 0xf48]
mov word [ebp - 0xf4a], di
lea edi, [ebp - 0xe28]
mov dword [ebp - 0xf5c], ebx
jmp 0x669848ce
cmp dx, 9
je 0x66984b40
cmp dx, 0xa
jne 0x66984abb
mov edx, 0x6e5c
add eax, 2
mov word [eax - 2], dx
lea esi, [ecx - 1]
cmp eax, edi
ja 0x669849e0
test ecx, ecx
jle 0x669849e0
mov ebx, dword [ebp - 0xf5c]
mov ecx, esi
movzx edx, word [ebx]
add dword [ebp - 0xf5c], 2
cmp dx, 0xd
je 0x66984b28
jbe 0x66984890
cmp dx, 0x22
je 0x66984b10
cmp dx, 0x5c
jne 0x66984aae
mov esi, 0x5c5c
add eax, 2
mov word [eax - 2], si
jmp 0x669848b0
cmp word [ebp - 0xe1e], 0
lea eax, [ebp - 0xe1e]
je 0x66984f85
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x66984920
lea edi, [ebp - 0xe1e]
sub eax, edi
mov edi, eax
lea ebx, [eax + 2]
add eax, 0x20
sar edi, 1
mov dword [ebp - 0xf70], edi
mov dword [ebp - 0xf74], 0
lea edi, [ebp - 0xe1e]
mov dword [ebp - 0xf68], 0
mov dword [ebp - 0xf64], 2
mov dword [ebp - 0xf60], edi
jmp 0x669845fa
lea edx, [eax + eax]
cmp edx, 4
jae 0x66984d80
test edx, edx
je 0x66984992
movzx ecx, byte [esi]
mov byte [ebp - 0xe1e], cl
test dl, 2
jne 0x66984fb0
xor ecx, ecx
mov word [ebp + eax*2 - 0xe1e], cx
jmp 0x66984397
lea edx, [eax + eax]
cmp edx, 4
jae 0x66984d48
test edx, edx
je 0x669849ca
movzx ecx, byte [esi]
mov byte [ebp - 0xa1a], cl
test dl, 2
jne 0x66984f9e
xor edx, edx
mov word [ebp + eax*2 - 0xa1a], dx
jmp 0x669843b3
mov byte [eax], 0x22
test esi, esi
jle 0x66984e2b
mov ebx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], bx
lea eax, [ebp - 0xf4a]
mov byte [edx], 0
mov dword [esp], eax
call fcn.66985840
mov edx, eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.__s___p___u___s___p___p___p___x__stub_n
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], 0x66986060
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xf60]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
call fcn.66981330
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x66984323
lea esp, [ebp - 0xc]
mov esi, 0x57
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x20
test byte [0x66986060], 1
jne 0x66984f5a
lea esp, [ebp - 0xc]
mov esi, 0x554
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x20
lea esi, [edx - 0x20]
cmp si, 0x5e
jbe 0x66984c80
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 0x669848b0
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x669848b0
mov esi, 0x725c
add eax, 2
mov word [eax - 2], si
jmp 0x669848b0
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x669848b0
lea esi, [edx - 0x20]
cmp si, 0x5e
jbe 0x66984c90
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 0x669847a0
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x669847a0
mov esi, 0x725c
add eax, 2
mov word [eax - 2], si
jmp 0x669847a0
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x669847a0
lea eax, [ebp - 0xa1a]
mov dword [esp + 4], 0x501
mov ecx, 0x202
lea edx, [ebp - 0xe1e]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call fcn.66981d30
jmp 0x669843b3
mov byte [eax], 0x22
test esi, esi
jle 0x66984e4c
mov ebx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], bx
lea eax, [ebp - 0xf4a]
mov byte [edx], 0
mov dword [esp], eax
call fcn.66985840
mov dword [ebp - 0xf60], eax
jmp 0x66984812
movzx eax, word [ebp + 8]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.669818c0
mov edx, eax
jmp 0x66984a0e
mov byte [eax], dl
add eax, 1
jmp 0x669848b0
mov byte [eax], dl
add eax, 1
jmp 0x669847a0
mov edx, dword [ebp - 0xf74]
mov eax, dword [ebp - 0xf64]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0xf68]
mov dword [edi + 8], ebx
add ebx, dword [ebp - 0xf64]
mov dword [edi + 0xc], edx
jmp 0x669846b4
mov dword [ebp - 0xf60], str._null_
jmp 0x66984812
mov edx, str._null_
jmp 0x66984a0e
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], str.Negotiate
mov dword [esp], eax
mov eax, dword [ebp - 0xf5c]
call eax
test eax, eax
je 0x669845c2
mov dword [ebp - 0xf68], 0
mov dword [ebp - 0xf64], 2
mov dword [ebp - 0xf74], 0
jmp 0x669845eb
mov ecx, dword [esi]
lea edi, [ebp - 0xa16]
and edi, 0xfffffffc
mov dword [ebp - 0xa1a], ecx
mov ecx, dword [esi + edx - 4]
mov dword [ebp + edx - 0xa1e], ecx
lea ecx, [ebp - 0xa1a]
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x669849ca
mov ecx, dword [esi]
lea edi, [ebp - 0xe1a]
and edi, 0xfffffffc
mov dword [ebp - 0xe1e], ecx
mov ecx, dword [esi + edx - 4]
mov dword [ebp + edx - 0xe22], ecx
lea ecx, [ebp - 0xe1e]
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x66984992
mov byte [ebx], 0x22
test eax, eax
jle 0x66984f7d
mov edi, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0xf4a]
mov dword [esp], eax
call fcn.66985840
mov edx, eax
mov dword [esp + 0x10], edx
mov esi, 0x554
mov dword [esp + 0xc], str.package__s_not_supported_n
mov dword [esp + 8], str.SspiPromptForCredentialsW
mov dword [esp + 4], 0x66986060
mov dword [esp], 0
call fcn.66981330
jmp 0x66984410
mov esi, 0x224c
mov byte [ebp - 0xf48], 0x22
lea eax, [ebp - 0xf48]
mov word [ebp - 0xf4a], si
lea edx, [eax + 1]
jmp 0x669849fb
mov byte [ebp - 0xf48], 0x22
mov eax, 0x224c
mov word [ebp - 0xf4a], ax
lea eax, [ebp - 0xf48]
lea edx, [eax + 1]
jmp 0x66984c43
mov esi, 0xe
jmp 0x66984410
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x66984500
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x66984500
lea eax, [edx - 0x20]
cmp ax, 0x5e
jbe 0x66984f50
mov eax, edx
mov byte [ebx], 0x5c
add ebx, 5
shr ax, 0xc
movzx eax, ax
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ebx - 4], al
mov eax, edx
shr ax, 8
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ebx - 3], al
mov eax, edx
and edx, 0xf
shr ax, 4
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ebx - 2], al
movzx eax, byte [edx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ebx - 1], al
jmp 0x66984500
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x66984500
mov dword [ebp - 0xf6c], 0
mov dword [ebp - 0xf5c], 2
jmp 0x66984632
mov dword [ebp - 0xf70], 0
mov ebx, 2
jmp 0x669845a4
movzx eax, word [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.669818c0
mov edx, eax
jmp 0x66984de0
mov byte [ebx], dl
add ebx, 1
jmp 0x66984500
mov edx, str._null_
jmp 0x66984de0
mov eax, 0x224c
mov byte [ebp - 0xf48], 0x22
lea ebx, [ebp - 0xf48]
mov word [ebp - 0xf4a], ax
lea eax, [ebx + 1]
jmp 0x66984dcd
mov dword [ebp - 0xf70], 0
mov eax, 0x20
mov ebx, 2
jmp 0x66984941
movzx ecx, word [esi + edx - 2]
mov word [ebp + edx - 0xa1c], cx
jmp 0x669849ca
movzx ecx, word [esi + edx - 2]
mov word [ebp + edx - 0xe20], cx
jmp 0x66984992