Function at 0x10049a30
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007abd5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], ecx
call fcn.100218f0
or ebx, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x10049b6a
call fcn.100218f0
mov dword [ebp - 0x3c], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x17
push str.ValidatePassword_start.
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049b13
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049b13
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049b3d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049b6a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x5c]
mov edi, dword [ebp - 0x28]
mov edx, str.AI_USER_CHECK_PASSWORD
push eax
mov ecx, edi
call fcn.10034bb0
mov eax, dword [ebp - 0x58]
add esp, 4
cmp dword [ebp - 0x5c], 1
mov dword [ebp - 0x3c], eax
ja 0x10049ce5
push 0x100a416c
push str.AI_USER_VALID_PASSWORD
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004a242
call fcn.100218f0
mov dword [ebp - 0x38], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10]
push 0x3c
push str.Password_validation_is_not_enabled._AI_USER_CHECK_PASSWORD:
call fcn.10014a40
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x10049c2b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10049c12
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049c8a
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049c8a
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0xd
mov eax, ebx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049cb4
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004a242
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
jmp 0x1004a242
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0x15
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x100a416c
push str.USER_PASSWORD
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x1004a110
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x4c], esi
mul edx
mov dword [ebp - 0x10], esi
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x50], eax
push ecx
push eax
push str.USER_PASSWORD
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp esi, 1
jb 0x1004a110
mov edx, dword [ebp + 8]
test edx, edx
je 0x10049d92
xor ecx, ecx
mov eax, edx
cmp word [edx], cx
je 0x10049d92
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10049d80
test ecx, ecx
je 0x10049d92
xor cl, cl
jmp 0x10049d94
mov cl, 1
lea eax, [ebp - 0x48]
test cl, cl
push eax
push 0
push 3
push dword [ebp - 0x14]
mov eax, 0x100a4140
cmove eax, edx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov dword [ebp - 0x38], eax
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x10049ec6
call fcn.100218f0
mov dword [ebp - 0x34], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x1c]
push 0x18
push str.LogonUser_API_returned:
call fcn.10014a40
push dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.10021c70
mov dword [ebp - 0x24], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x30]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049e72
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049e72
push dword [ebp - 0x24]
mov ecx, esi
call fcn.10021b10
mov byte [ebp - 4], 0x22
mov eax, ebx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049e9c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov byte [ebp - 4], 0x15
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049ec6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x10049fe4
call fcn.100218f0
mov dword [ebp - 0x40], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x20]
push 0x1b
push str.GetLastError_API_returned:
call fcn.10014a40
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.10021e30
mov dword [ebp - 0x44], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x34]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x40]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049f8d
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049f8d
push dword [ebp - 0x44]
mov ecx, esi
call fcn.10021b10
mov byte [ebp - 4], 0x2c
mov eax, ebx
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049fb7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov byte [ebp - 4], 0x15
mov eax, ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10049fe1
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x1004a002
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10049ff7
cmp esi, 0x52f
je 0x1004a01e
cmp dword [ebp - 0x38], 0
mov eax, 0x100a9894
mov ecx, 0x100a9680
cmove eax, ecx
push eax
jmp 0x1004a023
push 0x100a416c
mov ecx, dword [ebp - 0x28]
push str.AI_USER_VALID_PASSWORD
push ecx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004a222
call fcn.100218f0
mov dword [ebp - 0x4c], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x28]
push 0x15
push str.ValidatePassword_end.
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x38]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004a0e1
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004a0e1
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x36
mov eax, ebx
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a10b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
jmp 0x1004a1fa
push 0x100a416c
push str.AI_USER_VALID_PASSWORD
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004a222
call fcn.100218f0
mov dword [ebp - 0x4c], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
push 0x20
push str.USER_PASSWORD_property_is_empty.
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004a277
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x38]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004a1d0
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004a1d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x18
mov eax, ebx
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a1fa
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004a222
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004a234
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1004a257
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 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
push 0x80004005
call fcn.10005390
int3