Function at 0x10047c10
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 0x1006cb2f
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.1001cd60
mov dword [ebp - 0x18], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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 0x10047ca9
movzx esi, ax
mov ecx, esi
call fcn.100115e0
test eax, eax
je 0x10047cb8
push esi
push eax
lea ecx, [ebp - 0x44]
call fcn.10011740
jmp 0x10047cb8
push 0x14
push str.AI_SetLogOnAsService
lea ecx, [ebp - 0x44]
call fcn.10007da0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebx + 8]
call fcn.1001ce50
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 0x10047d01
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10047e18
call fcn.1001cd60
mov dword [ebp - 0x20], eax
call fcn.1000a220
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1004921b
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.10012f10
call fcn.1000a220
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10047dbb
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10047dbb
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x10047deb
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 0x10047e18
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10047f2c
call fcn.1001cd60
mov dword [ebp - 0x18], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10047ed0
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10047ed0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x10047efe
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 0x10047f2c
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 0x10047fbc
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x100480ee
call fcn.1001cd60
mov dword [ebp - 0x18], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x10048039
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048020
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048098
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048098
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x100480c3
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 0x100480ee
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.10024c60
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 0x10048140
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x1004828a
call fcn.1001cd60
mov dword [ebp - 0x34], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x70]
call fcn.1001d2a0
mov dword [ebp - 0x20], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048231
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048231
push dword [ebp - 0x20]
mov ecx, esi
call fcn.1001cf80
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 0x1004825f
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 0x1004828a
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 0x10048291
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x100483ca
call fcn.1001cd60
mov dword [ebp - 0x20], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048371
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048371
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x1004839f
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 0x100483ca
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 0x10048f7d
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.10024c60
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x10048450
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x10048f59
push 0x10006c20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1004d44c
test esi, esi
je 0x10048f59
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10048f59
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 0x100484d5
mov esi, dword [edi + 4]
mov edx, 0x10093cc8
mov ecx, esi
call fcn.1001e7f0
test eax, eax
jne 0x10048499
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x100484d5
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 0x100484d2
mov eax, esi
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100484c8
mov dword [ebp - 0x54], ecx
call fcn.1001cd60
cmp byte [eax + 0x1c], 0
je 0x100485e3
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004858a
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004858a
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x100485b8
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 0x100485e3
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10048717
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x10048659
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048640
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100486be
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100486be
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x100486ec
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 0x10048717
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x1004884a
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1004878c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048773
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x64]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100487f1
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100487f1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x1004881f
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 0x1004884a
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 0x1004898f
call fcn.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10048f0d
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1004892d
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1004892d
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x1004895b
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 0x10048f0d
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 0x10048f0d
mov ecx, 4
lea eax, [ebp - 0x80]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10048997
test edi, edi
jne 0x100489cd
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10048b57
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x10048a99
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048a80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048afe
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048afe
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x10048b2c
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 0x10048b57
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10048c7e
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
push dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
call fcn.1001d0e0
mov dword [ebp - 0x1c], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048c22
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048c22
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.1001cf80
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 0x10048c50
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 0x10048c7e
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10048da4
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10048d48
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048d48
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x10048d76
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 0x10048da4
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10048eed
call fcn.1001cd60
mov edi, eax
call fcn.1000a220
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004921b
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.100117e0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x8c]
call fcn.1001d2a0
mov dword [ebp - 0x1c], eax
call fcn.1000a220
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004921b
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.100117e0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x10048e91
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10048e91
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.1001cf80
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 0x10048ebf
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 0x10048eed
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 0x10048eff
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 0x10048f1f
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 0x10048f56
push 0x10006c20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1004d44c
test esi, esi
je 0x10048f56
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 0x100483e1
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
call fcn.1001cd60
cmp byte [eax + 0x1c], 0
je 0x10049092
call fcn.1001cd60
mov dword [ebp - 0x14], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049038
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049038
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x10049068
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 0x10049095
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.1001cd60
cmp byte [eax + 0x1c], 0
je 0x1004919d
call fcn.1001cd60
mov dword [ebp - 0x18], eax
call fcn.1000a220
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004921b
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.100117e0
call fcn.1000a220
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004921b
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.100117e0
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10049148
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10049148
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1001cf80
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 0x10049175
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 0x1004919d
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 0x100491c6
push 0x10006c20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1004d44c
test esi, esi
je 0x100491c6
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 0x100491ef
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