Function at 0x10047c70
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 0x1006cb9f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1001cdb0
mov dword [ebp - 0x18], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10047d09
movzx esi, ax
mov ecx, esi
call fcn.10011600
test eax, eax
je 0x10047d18
push esi
push eax
lea ecx, [ebp - 0x44]
call fcn.10011760
jmp 0x10047d18
push 0x14
push str.AI_SetLogOnAsService
lea ecx, [ebp - 0x44]
call fcn.10007dd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebx + 8]
call fcn.1001cea0
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 0x10047d61
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
or edi, 0xffffffff
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10047e78
call fcn.1001cdb0
mov dword [ebp - 0x20], eax
call fcn.1000a250
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1004927b
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10012f20
call fcn.1000a250
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1004927b
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10047e1b
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10047e1b
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x10047e4b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10047e78
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10047f8c
call fcn.1001cdb0
mov dword [ebp - 0x18], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10047f30
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10047f30
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x10047f5e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10047f8c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
push 0x1009666c
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, 2
cmp eax, 0xea
jne 0x1004801c
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 0x1009666c
push edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x94], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x1004814e
call fcn.1001cdb0
mov dword [ebp - 0x18], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x10048099
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048080
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100480f8
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100480f8
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x10048123
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x1004814e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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.10024d00
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 0x100481a0
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.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x100482ea
call fcn.1001cdb0
mov dword [ebp - 0x34], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x70]
call fcn.1001d2f0
mov dword [ebp - 0x20], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048291
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048291
push dword [ebp - 0x20]
mov ecx, esi
call fcn.1001cfd0
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 0x100482bf
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x100482ea
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x100482f1
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.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x1004842a
call fcn.1001cdb0
mov dword [ebp - 0x20], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100483d1
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100483d1
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x100483ff
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x1004842a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048fdd
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.10024d00
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x100484b0
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x10048fb9
push 0x10006c30
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1004d4ac
test esi, esi
je 0x10048fb9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10048fb9
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 0x10048535
mov esi, dword [edi + 4]
mov edx, 0x10093cc8
mov ecx, esi
call fcn.1001e850
test eax, eax
jne 0x100484f9
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x10048535
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 0x10048532
mov eax, esi
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10048528
mov dword [ebp - 0x54], ecx
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048643
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100485ea
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100485ea
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x10048618
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048643
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048777
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x100486b9
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100486a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004871e
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004871e
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x1004874c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048777
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x100488aa
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x100487ec
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100487d3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x64]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048851
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048851
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x1004887f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x100488aa
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x100489ef
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048f6d
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004898d
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004898d
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x100489bb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048f6d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
jmp 0x10048f6d
mov ecx, 4
lea eax, [ebp - 0x80]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100489f7
test edi, edi
jne 0x10048a2d
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.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048bb7
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x10048af9
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048ae0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048b5e
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048b5e
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x10048b8c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048bb7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048cde
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
push dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
call fcn.1001d130
mov dword [ebp - 0x1c], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048c82
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048c82
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.1001cfd0
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 0x10048cb0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048cde
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048e04
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048da8
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048da8
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x10048dd6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048e04
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x10048f4d
call fcn.1001cdb0
mov edi, eax
call fcn.1000a250
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004927b
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x8c]
call fcn.1001d2f0
mov dword [ebp - 0x1c], eax
call fcn.1000a250
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004927b
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov eax, dword [edi + 0x38]
test eax, eax
je 0x10048ef1
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048ef1
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.1001cfd0
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 0x10048f1f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x10048f4d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov byte [ebp - 4], 0x38
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10048f5f
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 0x10048f7f
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 0x10048fb6
push 0x10006c30
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1004d4ac
test esi, esi
je 0x10048fb6
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 0x10048441
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x100490f2
call fcn.1001cdb0
mov dword [ebp - 0x14], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov edx, dword [edi]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1004927b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049098
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049098
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x100490c8
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x100490f5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
or edi, 0xffffffff
call fcn.1001cdb0
cmp byte [eax + 0x1c], 0
je 0x100491fd
call fcn.1001cdb0
mov dword [ebp - 0x18], eax
call fcn.1000a250
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004927b
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x1006e578]
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.10011800
call fcn.1000a250
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004927b
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
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 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100491a8
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100491a8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1001cfd0
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 0x100491d5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
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 0x100491fd
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10049226
push 0x10006c30
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1004d4ac
test esi, esi
je 0x10049226
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 0x1004924f
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