Function at 0x1003fb90
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 0x10063e20
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1001af00
mov dword [ebp - 0x20], eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
mov eax, str.AI_SetLogOnAsService
test eax, 0xffff0000
jne 0x1003fc1f
movzx esi, ax
mov ecx, esi
call fcn.10010990
test eax, eax
je 0x1003fc2e
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.10010af0
jmp 0x1003fc2e
push 0x14
push str.AI_SetLogOnAsService
lea ecx, [ebp - 0x40]
call fcn.10007ca0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
mov edi, dword [ebx + 8]
mov ecx, dword [ebp - 0x20]
push eax
push edi
call fcn.1001afe0
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fc69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x1003fd38
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push str.action_starting_...
call fcn.100123a0
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0xb8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fd17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fd38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x1003fe09
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x18]
push 0x1e
push str.Get_the_user_accounts_list_...
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xb4]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0xf
or esi, 0xffffffff
mov edx, dword [ebp - 0xb4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fde8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fe09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0x17
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0x100707ac
push 0x10072e94
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, 2
cmp eax, 0xea
jne 0x1003fe99
mov esi, dword [ebp - 0x44]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0x44], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x8c], eax
push ecx
push eax
push 0x10072e94
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x90], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
or esi, 0xffffffff
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x1003ff85
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x48]
push 0x12
push str.CustomActionData:
call fcn.10010b90
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1003ff0b
mov ecx, eax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fef0
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x3c]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x1a
mov eax, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ff67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ff85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0xd8]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x7c
push eax
call fcn.1001e6d0
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
add esp, 4
movq qword [ebp - 0xec], xmm0
movups xmmword [ebp - 0xfc], xmm0
mov edx, 0x18
lea ecx, [ebp - 0xfc]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x1003ffd4
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 - 0x24], eax
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x100400d8
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x80]
push 0x1d
push str.LSA_open_policy_return_code:
call fcn.10010b90
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x80]
call fcn.1001b3b0
mov dword [ebp - 0x24], eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0xbc]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
push dword [ebp - 0x24]
mov ecx, edi
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x25
mov eax, esi
mov edx, dword [ebp - 0xbc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100400ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov eax, esi
mov edx, dword [ebp - 0x80]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100400d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, str.SeServiceLogonRight
xor ecx, ecx
nop
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x100400e0
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.1001af00
cmp byte [eax + 0x1c], 0
je 0x100401df
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x84]
push 0x28
push str.Setting__Log_on_as_a_service__policy_...
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0xc4]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x2f
mov eax, esi
mov edx, dword [ebp - 0xc4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100401be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov eax, esi
mov edx, dword [ebp - 0x84]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100401df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xd4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xdc], eax
jbe 0x10040b6c
add eax, 4
mov dword [ebp - 0x78], eax
nop dword [eax + eax]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0x37
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [eax]
mov edx, 0x5c
call fcn.1001e6d0
add esp, 4
test eax, eax
jne 0x10040251
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x94]
jmp 0x10040b1e
xor edi, edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 0x38
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x50], edi
mov esi, dword [esi]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x94]
mov dword [ebp - 0x28], esi
cmp eax, 1
jbe 0x100402dd
mov esi, dword [esi + 4]
mov edx, 0x10070780
mov ecx, esi
call fcn.1001c8f0
test eax, eax
mov eax, dword [ebp - 0x28]
jne 0x10040298
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x100402dd
mov eax, dword [eax]
mov edi, esi
mov esi, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [ebp - 0x38], eax
cmp word [edi], cx
je 0x100402da
mov eax, edi
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100402d0
mov dword [ebp - 0x50], ecx
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x100403b6
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 0x3b
lea ecx, [ebp - 0x88]
push 0x1c
push str.Getting_user_account_SID_...
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 0x3e
lea ecx, [ebp - 0xcc]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x3b
or esi, 0xffffffff
mov edx, dword [ebp - 0xcc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040393
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, esi
mov edx, dword [ebp - 0x88]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100403b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100403b9
or esi, 0xffffffff
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x100404ad
call fcn.1001af00
mov dword [ebp - 0x14], eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x45
lea ecx, [ebp - 0x5c]
push 8
push str.Domain:
call fcn.10010b90
test edi, edi
je 0x10040429
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040410
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0x48
lea ecx, [ebp - 0xd0]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x45
mov eax, esi
mov edx, dword [ebp - 0xd0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004048f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, esi
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100404ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x1004059f
call fcn.1001af00
mov dword [ebp - 0x14], eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x4f
lea ecx, [ebp - 0x4c]
push 6
push str.User:
call fcn.10010b90
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1004051b
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040500
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0x52
lea ecx, [ebp - 0x9c]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x4f
mov eax, esi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, esi
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004059f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x30]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x54], 0
jne 0x1004069e
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10040af0
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0x59
lea ecx, [ebp - 0x68]
push 0x2a
push str.lookup_account_name_error:_user_NOT_found_
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 0x5c
lea ecx, [ebp - 0xa0]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x59
or esi, 0xffffffff
mov edx, dword [ebp - 0xa0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040677
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, esi
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040af0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10040af0
mov ecx, 4
lea eax, [ebp - 0x6c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100406a6
test edi, edi
jne 0x100406d9
mov esi, dword [ebp - 0x50]
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 - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0x61
mov esi, dword [ebp - 0x54]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], eax
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x64], esi
push ecx
push edi
lea ecx, [ebp - 0x54]
push ecx
push eax
push dword [ebp - 0x30]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10040824
call fcn.1001af00
mov esi, eax
mov dword [ebp - 0x14], esi
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0x64
lea ecx, [ebp - 0x58]
push 0xb
push str.SID_value:
call fcn.10010b90
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x1004079c
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040780
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10010b90
mov esi, dword [ebp - 0x14]
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x67
lea ecx, [ebp - 0xa4]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x64
or esi, 0xffffffff
mov edx, dword [ebp - 0xa4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040804
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, esi
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040827
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10040827
or esi, 0xffffffff
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x100408ff
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0x6e
lea ecx, [ebp - 0x7c]
push 0xa
push str.SID_type:
call fcn.10010b90
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
call fcn.1001b230
mov dword [ebp - 0x14], eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0x71
lea ecx, [ebp - 0xa8]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
push dword [ebp - 0x14]
mov ecx, esi
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x6e
or esi, 0xffffffff
mov edx, dword [ebp - 0xa8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100408e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, esi
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100408ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x100409d6
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x78
lea ecx, [ebp - 0x70]
push 0x2c
push str.Setting_security_policy_for_this_account_...
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0x7b
lea ecx, [ebp - 0xb0]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x78
or esi, 0xffffffff
mov edx, dword [ebp - 0xb0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100409b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, esi
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100409d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
mov dword [ebp - 0x14], eax
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10040ad0
call fcn.1001af00
mov esi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0x82
lea ecx, [ebp - 0x74]
push 0x24
push str.LSA_add_account_rights_return_code:
call fcn.10010b90
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x74]
call fcn.1001b3b0
mov dword [ebp - 0x14], eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0x85
lea ecx, [ebp - 0xc8]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
push dword [ebp - 0x14]
mov ecx, esi
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x82
or esi, 0xffffffff
mov edx, dword [ebp - 0xc8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040ab2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, esi
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040ad0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x10040ae2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 0x37
test edi, edi
je 0x10040b03
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
jmp 0x10040b09
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10040b3f
push 0x10006c70
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10044ad2
test esi, esi
je 0x10040b3c
push esi
call edi
or esi, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
inc ecx
add eax, 8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x78], eax
cmp ecx, dword [ebp - 0x20]
jb 0x10040210
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10040c37
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x8c
lea ecx, [ebp - 0x18]
push 0x14
push str.LSA_close_policy_...
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x8f
lea ecx, [ebp - 0x20]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x8c
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040c19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040c37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1001af00
cmp byte [eax + 0x1c], 0
je 0x10040cf4
call fcn.1001af00
mov edi, eax
call fcn.10009f40
test eax, eax
je 0x10040d7b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x96
lea ecx, [ebp - 0x1c]
push 0x11
push str.action_completed.
call fcn.10010b90
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10040d7b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x99
lea ecx, [ebp - 0x3c]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
sub esp, 8
call fcn.1001b0f0
mov byte [ebp - 4], 0x96
mov eax, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040cd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10040cf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x10040d24
push 0x10006c70
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10044ad2
test esi, esi
je 0x10040d24
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x10040d2a
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10040d4f
push eax
call esi
mov dword [ebp - 0x8c], 0
xor eax, eax
mov dword [ebp - 0x90], 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