Function at 0x1004ddd0
Capabilities:
Get user security identifier
Manipulate user privileges

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bd1f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
push esi
push edi
mov eax, dword [0x100c0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.100218f0
mov dword [ebp - 0x18], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x44], eax
mov dword [ebp - 4], 0
mov eax, str.AI_SetLogOnAsService
test eax, 0xffff0000
jne 0x1004de69
movzx esi, ax
mov ecx, esi
call fcn.10014840
test eax, eax
je 0x1004de78
push esi
push eax
lea ecx, [ebp - 0x44]
call fcn.100149a0
jmp 0x1004de78
push 0x14
push str.AI_SetLogOnAsService
lea ecx, [ebp - 0x44]
call fcn.100084e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebx + 8]
call fcn.100219e0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov ecx, dword [ebp - 0x44]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004dec1
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
or edi, 0xffffffff
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004dfd8
call fcn.100218f0
mov dword [ebp - 0x20], eax
call fcn.1000a960
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1004f3db
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
push str.action_starting_...
call fcn.10016170
call fcn.1000a960
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1004f3db
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004df7b
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004df7b
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 5
mov eax, edi
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004dfab
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
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004dfd8
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 fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004e0ec
call fcn.100218f0
mov dword [ebp - 0x18], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x2c], eax
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
push 0x1e
push str.Get_the_user_accounts_list_...
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xb0], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xb0]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e090
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e090
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov ecx, dword [ebp - 0xb0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e0be
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
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e0ec
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 - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0x17
xor eax, eax
mov edi, dword [ebx + 8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0x100a416c
push 0x100a6c10
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, 2
cmp eax, 0xea
jne 0x1004e17c
mov esi, dword [ebp - 0x48]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0x48], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x90], eax
push ecx
push eax
push 0x100a6c10
push edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x94], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004e2ae
call fcn.100218f0
mov dword [ebp - 0x18], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x4c], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x4c]
push 0x12
push str.CustomActionData:
call fcn.10014a40
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x1004e1f9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e1e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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], 0x1d
lea ecx, [ebp - 0x38]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e258
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e258
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x1a
or eax, 0xffffffff
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e283
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], 0x17
or eax, 0xffffffff
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e2ae
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 - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0xdc]
mov ecx, dword [ebp - 0x60]
mov edx, 0x7c
push eax
call fcn.1002ae70
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
add esp, 4
movq qword [ebp - 0xec], xmm0
movups xmmword [ebp - 0xfc], xmm0
mov edx, 0x18
lea ecx, [ebp - 0xfc]
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x1004e300
lea eax, [ebp - 0xc0]
push eax
push 0xf0fff
lea eax, [ebp - 0xfc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
mov dword [ebp - 0x20], eax
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004e44a
call fcn.100218f0
mov dword [ebp - 0x34], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x70], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x70]
push 0x1d
push str.LSA_open_policy_return_code:
call fcn.10014a40
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x70]
call fcn.10021e30
mov dword [ebp - 0x20], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xbc], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0xbc]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e3f1
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e3f1
push dword [ebp - 0x20]
mov ecx, esi
call fcn.10021b10
mov byte [ebp - 4], 0x25
or eax, 0xffffffff
mov ecx, dword [ebp - 0xbc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e41f
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], 0x22
or eax, 0xffffffff
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e44a
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 eax, str.SeServiceLogonRight
xor ecx, ecx
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x1004e451
lea eax, [ecx + ecx]
mov dword [ebp - 0xe0], str.SeServiceLogonRight
mov word [ebp - 0xe4], ax
add eax, 2
mov word [ebp - 0xe2], ax
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004e58a
call fcn.100218f0
mov dword [ebp - 0x20], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x74], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x74]
push 0x28
push str.Setting__Log_on_as_a_service__policy_...
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xc4], eax
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0xc4]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e531
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e531
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x2f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc4]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e55f
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], 0x22
or eax, 0xffffffff
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e58a
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 edi, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x18], eax
jbe 0x1004f13d
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0x37
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [edi + eax*8 + 4]
mov edx, 0x5c
call fcn.1002ae70
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x1004e610
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x1004f119
push 0x10006c20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10053ebc
test esi, esi
je 0x1004f119
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1004f119
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x38
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov esi, dword [edi + esi*8 + 4]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
cmp ecx, 1
jbe 0x1004e695
mov esi, dword [edi + 4]
mov edx, 0x100a4140
mov ecx, esi
call fcn.10023380
test eax, eax
jne 0x1004e659
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x1004e695
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov dword [ebp - 0x3c], 0
mov dword [edi], 0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], esi
cmp word [esi], cx
je 0x1004e692
mov eax, esi
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1004e688
mov dword [ebp - 0x54], ecx
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004e7a3
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x78], eax
mov byte [ebp - 4], 0x3b
lea ecx, [ebp - 0x78]
push 0x1c
push str.Getting_user_account_SID_...
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xcc], eax
mov byte [ebp - 4], 0x3e
lea ecx, [ebp - 0xcc]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e74a
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e74a
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x3b
or eax, 0xffffffff
mov ecx, dword [ebp - 0xcc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e778
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], 0x38
or eax, 0xffffffff
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e7a3
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 fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004e8d7
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x50], eax
mov byte [ebp - 4], 0x45
lea ecx, [ebp - 0x50]
push 8
push str.Domain:
call fcn.10014a40
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x1004e819
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e800
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xd0], eax
mov byte [ebp - 4], 0x48
lea ecx, [ebp - 0xd0]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e87e
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e87e
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x45
or eax, 0xffffffff
mov ecx, dword [ebp - 0xd0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e8ac
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], 0x38
or eax, 0xffffffff
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e8d7
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 fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004ea0a
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x64], eax
mov byte [ebp - 4], 0x4f
lea ecx, [ebp - 0x64]
push 6
push str.User:
call fcn.10014a40
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1004e94c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e933
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x64]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xd4], eax
mov byte [ebp - 4], 0x52
lea ecx, [ebp - 0xd4]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004e9b1
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004e9b1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x4f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xd4]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e9df
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], 0x38
or eax, 0xffffffff
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ea0a
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 edi, dword [ebp - 0x30]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x58], 0
jne 0x1004eb4f
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004f0cd
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x7c], eax
mov byte [ebp - 4], 0x59
lea ecx, [ebp - 0x7c]
push 0x2a
push str.lookup_account_name_error:_user_NOT_found_
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xa0], eax
mov byte [ebp - 4], 0x5c
lea ecx, [ebp - 0xa0]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004eaed
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004eaed
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x59
or eax, 0xffffffff
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004eb1b
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], 0x38
or eax, 0xffffffff
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f0cd
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 0x1004f0cd
mov ecx, 4
lea eax, [ebp - 0x80]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1004eb57
test edi, edi
jne 0x1004eb8d
mov esi, dword [ebp - 0x54]
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 0x61
mov esi, dword [ebp - 0x58]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], eax
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], esi
push ecx
push edi
lea ecx, [ebp - 0x58]
push ecx
push eax
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004ed17
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x5c], eax
mov byte [ebp - 4], 0x64
lea ecx, [ebp - 0x5c]
push 0xb
push str.SID_value:
call fcn.10014a40
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x1004ec59
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ec40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xa4], eax
mov byte [ebp - 4], 0x67
lea ecx, [ebp - 0xa4]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004ecbe
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004ecbe
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x64
or eax, 0xffffffff
mov ecx, dword [ebp - 0xa4]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ecec
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], 0x61
or eax, 0xffffffff
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ed17
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 fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004ee3e
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x84], eax
mov byte [ebp - 4], 0x6e
lea ecx, [ebp - 0x84]
push 0xa
push str.SID_type:
call fcn.10014a40
push dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
call fcn.10021c70
mov dword [ebp - 0x1c], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xa8], eax
mov byte [ebp - 4], 0x71
lea ecx, [ebp - 0xa8]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004ede2
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004ede2
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.10021b10
mov byte [ebp - 4], 0x6e
or eax, 0xffffffff
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ee10
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], 0x61
or eax, 0xffffffff
mov ecx, dword [ebp - 0x84]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ee3e
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
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004ef64
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x88], eax
mov byte [ebp - 4], 0x78
lea ecx, [ebp - 0x88]
push 0x2c
push str.Setting_security_policy_for_this_account_...
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0xc8], eax
mov byte [ebp - 4], 0x7b
lea ecx, [ebp - 0xc8]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004ef08
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004ef08
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x78
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ef36
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], 0x61
or eax, 0xffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ef64
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
push 1
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
mov dword [ebp - 0x1c], eax
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004f0ad
call fcn.100218f0
mov edi, eax
call fcn.1000a960
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004f3db
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0x82
lea ecx, [ebp - 0x8c]
push 0x24
push str.LSA_add_account_rights_return_code:
call fcn.10014a40
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10021e30
mov dword [ebp - 0x1c], eax
call fcn.1000a960
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004f3db
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x85
lea ecx, [ebp - 0xb4]
push 0
push 0x100a416c
call fcn.10014a40
mov eax, dword [edi + 0x38]
test eax, eax
je 0x1004f051
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004f051
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.10021b10
mov byte [ebp - 4], 0x82
or eax, 0xffffffff
mov ecx, dword [ebp - 0xb4]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f07f
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], 0x61
or eax, 0xffffffff
mov ecx, dword [ebp - 0x8c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f0ad
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], 0x38
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x1004f0bf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 0x37
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x1004f0df
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1004f116
push 0x10006c20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10053ebc
test esi, esi
je 0x1004f116
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x18]
jb 0x1004e5a1
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004f252
call fcn.100218f0
mov dword [ebp - 0x14], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x2c], eax
mov byte [ebp - 4], 0x8c
lea ecx, [ebp - 0x2c]
push 0x14
push str.LSA_close_policy_...
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1004f3db
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 - 0x18], eax
mov byte [ebp - 4], 0x8f
lea ecx, [ebp - 0x18]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004f1f8
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004f1f8
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x8c
or edi, 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f228
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
or edi, 0xffffffff
mov byte [ebp - 4], 0x22
mov eax, edi
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f255
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
or edi, 0xffffffff
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x1004f35d
call fcn.100218f0
mov dword [ebp - 0x18], eax
call fcn.1000a960
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004f3db
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x96
lea ecx, [ebp - 0x28]
push 0x11
push str.action_completed.
call fcn.10014a40
call fcn.1000a960
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004f3db
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x99
lea ecx, [ebp - 0x38]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004f308
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004f308
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10021b10
mov byte [ebp - 4], 0x96
mov eax, edi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f335
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
or edi, 0xffffffff
mov byte [ebp - 4], 0x22
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x1004f35d
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], 0x17
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1004f386
push 0x10006c20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10053ebc
test esi, esi
je 0x1004f386
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x1004f3af
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x90], 0
xor eax, eax
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x80004005
call fcn.10005390
int3