Function at 0x1001d550
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b0f5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x10059024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov ebx, ecx
call fcn.10009700
or esi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x1001d643
call fcn.10009700
mov edi, eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x17
push str.ValidatePassword_start.
call fcn.10005de0
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [edi + 0x38], 0
je 0x1001d604
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.100098a0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d622
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d643
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x50]
push eax
mov edx, str.AI_USER_CHECK_PASSWORD
mov ecx, ebx
call fcn.10010bc0
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp dword [ebp - 0x50], 1
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], eax
ja 0x1001d7a6
push 0x100469b0
push str.AI_USER_VALID_PASSWORD
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1001d8cb
call fcn.10009700
mov edi, eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
push 0x3c
push str.Password_validation_is_not_enabled._AI_USER_CHECK_PASSWORD:
call fcn.10005de0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1001d6fa
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d6e1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x14]
call fcn.10005de0
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [edi + 0x38], 0
je 0x1001d738
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d756
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001d772
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1001d786
push ebx
call edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x48]
push eax
mov edx, str.USER_PASSWORD
mov ecx, ebx
call fcn.10010bc0
mov edi, dword [ebp - 0x48]
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
cmp edi, 1
jae 0x1001d8d3
push 0x100469b0
push str.AI_USER_VALID_PASSWORD
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1001d8a9
call fcn.10009700
mov edi, eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x14]
push 0x20
push str.USER_PASSWORD_property_is_empty.
call fcn.10005de0
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x28]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [edi + 0x38], 0
je 0x1001d86f
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x18
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d88d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001d8a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1001d8bd
push eax
call edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov ebx, dword [ebp - 0x24]
jmp 0x1001d778
mov edx, dword [ebp + 8]
test edx, edx
je 0x1001d8f5
xor ecx, ecx
mov eax, edx
cmp word [edx], cx
je 0x1001d8f5
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001d8e3
test ecx, ecx
je 0x1001d8f5
xor cl, cl
jmp 0x1001d8f7
mov cl, 1
lea eax, [ebp - 0x40]
test cl, cl
push eax
push 0
push 3
push dword [ebp - 0x20]
mov eax, 0x10046974
cmove eax, edx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov dword [ebp - 0x34], eax
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1001d9e7
call fcn.10009700
mov dword [ebp - 0x30], eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x18]
push 0x18
push str.LogonUser_API_returned:
call fcn.10005de0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
call fcn.10009bb0
mov dword [ebp - 0x1c], eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x2c]
push 0
push 0x100469b0
call fcn.10005de0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x1001d9ab
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.100098a0
mov byte [ebp - 4], 0x22
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d9c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d9e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
mov dword [ebp - 0x30], eax
setne byte [ebp - 0xd]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1001dac7
call fcn.10009700
mov dword [ebp - 0x38], eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x1c]
push 0x1b
push str.GetLastError_API_returned:
call fcn.10005de0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
call fcn.10009d30
mov dword [ebp - 0x3c], eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x30]
push 0
push 0x100469b0
call fcn.10005de0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
je 0x1001da8b
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.100098a0
mov byte [ebp - 4], 0x2c
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001daa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dac7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x1001dae2
mov byte [eax], 0
lea eax, [eax + 1]
sub edi, 1
jne 0x1001dad7
cmp byte [ebp - 0xd], 0
je 0x1001dafc
cmp dword [ebp - 0x34], 0
mov eax, 0x1004c5dc
mov ecx, 0x1004c3c8
cmove eax, ecx
push eax
jmp 0x1001db01
push 0x100469b0
push str.AI_USER_VALID_PASSWORD
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1001d8a9
call fcn.10009700
mov edi, eax
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x1c]
push 0x15
push str.ValidatePassword_end.
call fcn.10005de0
call fcn.100050e0
test eax, eax
je 0x1001dbb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x34]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [edi + 0x38], 0
je 0x1001db8a
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x36
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dba8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x1c]
jmp 0x1001d894
push 0x80004005
call fcn.10003760
int3