Function at 0x10028390
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 0x1004782e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe0
push esi
push edi
mov eax, dword [0x10067024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1000f4f0
mov edi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push str.AI_SetLogOnAsService
call fcn.1000a220
test al, al
jne 0x10028418
push 0x14
push str.AI_SetLogOnAsService
lea ecx, [ebp - 0x30]
call fcn.1000a000
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 8]
mov ecx, edi
push eax
push esi
call fcn.1000f5d0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028452
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x1002852c
call fcn.1000f4f0
mov edi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xa8]
push str.action_starting_...
call fcn.1000f7d0
mov dword [ebp - 0x20], eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb4]
push 0
push 0x10053794
call fcn.1000b130
push ecx
push dword [ebp - 0x20]
mov ecx, edi
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp - 0xb4]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028508
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002852c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x100285fd
call fcn.1000f4f0
mov edi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0xf
lea ecx, [ebp - 0x1c]
push 0x1e
push str.Get_the_user_accounts_list_...
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xac]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0xf
or edi, 0xffffffff
mov edx, dword [ebp - 0xac]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100285dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100285fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0x17
lea eax, [ebp - 0xcc]
push eax
mov edx, str.CustomActionData
mov ecx, esi
call fcn.10016940
add esp, 4
call fcn.1000f4f0
mov edi, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], edi
cmp byte [eax + 0x1c], 0
je 0x10028726
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x1a
lea ecx, [ebp - 0x18]
push 0x12
push str.CustomActionData:
call fcn.1000b130
test edi, edi
je 0x100286a9
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028690
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x18]
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x24]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x1a
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028708
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 - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028726
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0xc4]
push eax
mov edx, 0x7c
mov ecx, edi
call fcn.10010f90
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
add esp, 4
movq qword [ebp - 0xe0], xmm0
movups xmmword [ebp - 0xf0], xmm0
mov edx, 0x18
lea ecx, [ebp - 0xf0]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x10028774
lea eax, [ebp - 0xb0]
push eax
push 0xf0fff
lea eax, [ebp - 0xf0]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
mov edi, eax
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10028875
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x54]
push 0x1d
push str.LSA_open_policy_return_code:
call fcn.1000b130
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x54]
call fcn.1000fa30
mov edi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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 0x10053794
call fcn.1000b130
push ecx
push edi
sub esp, 8
mov ecx, esi
call fcn.1000f690
mov byte [ebp - 4], 0x25
or esi, 0xffffffff
mov edx, dword [ebp - 0xbc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028857
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 - 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028875
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, str.SeServiceLogonRight
xor ecx, ecx
nop dword [eax]
cmp word [eax + 2], 0
lea eax, [eax + 2]
lea ecx, [ecx + 1]
jne 0x10028880
lea eax, [ecx + ecx]
mov dword [ebp - 0xd4], str.SeServiceLogonRight
mov word [ebp - 0xd8], ax
add eax, 2
mov word [ebp - 0xd6], ax
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10028976
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x2f
lea ecx, [ebp - 0x58]
push 0x28
push str.Setting__Log_on_as_a_service__policy_...
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x84]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x2f
or esi, 0xffffffff
mov edx, dword [ebp - 0x84]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028958
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 - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028976
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x20], eax
jbe 0x100292e0
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 0x37
lea edx, [ebp - 0x80]
mov ecx, dword [ecx + eax*8 + 4]
push edx
mov edx, 0x5c
call fcn.10010f90
add esp, 4
test eax, eax
jne 0x100289d7
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x7c]
jmp 0x100292a0
xor edi, edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0x38
mov esi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x3c], edi
mov esi, dword [ecx + esi*8 + 4]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x48], esi
cmp eax, 1
jbe 0x10028a7d
mov eax, dword [esi + 4]
mov esi, 0x10053768
sub esi, eax
lea edx, [eax - 2]
nop
movzx ecx, word [esi + edx + 2]
lea edx, [edx + 2]
movzx eax, word [edx]
cmp ax, cx
jb 0x10028a37
ja 0x10028a37
test ax, ax
je 0x10028a2c
test cx, cx
jne 0x10028a10
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x10028a7d
mov esi, dword [ebp - 0x48]
xor ecx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
cmp word [edi], cx
je 0x10028a7a
mov eax, edi
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10028a70
mov dword [ebp - 0x3c], ecx
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10028b48
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x3b
lea ecx, [ebp - 0x5c]
push 0x1c
push str.Getting_user_account_SID_...
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 0x3e
lea ecx, [ebp - 0x88]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x3b
or esi, 0xffffffff
mov edx, dword [ebp - 0x88]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028b2a
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 0x10028b48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10028c35
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x45
lea ecx, [ebp - 0x34]
push 8
push str.Domain:
call fcn.1000b130
test edi, edi
je 0x10028baf
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028b96
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0x48
lea ecx, [ebp - 0x8c]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x45
or esi, 0xffffffff
mov edx, dword [ebp - 0x8c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028c17
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 - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028c35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10028d27
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x4f
lea ecx, [ebp - 0x38]
push 6
push str.User:
call fcn.1000b130
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10028ca1
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028c86
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x52
lea ecx, [ebp - 0x90]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x4f
or esi, 0xffffffff
mov edx, dword [ebp - 0x90]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028d09
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 - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028d27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x40], 0
jne 0x10028e26
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10029272
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x59
lea ecx, [ebp - 0x60]
push 0x2a
push str.lookup_account_name_error:_user_NOT_found_
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0x5c
lea ecx, [ebp - 0x94]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x59
or esi, 0xffffffff
mov edx, dword [ebp - 0x94]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028dff
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 - 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029272
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10029272
mov ecx, 4
lea eax, [ebp - 0x64]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10028e30
test edi, edi
jne 0x10028e63
mov esi, dword [ebp - 0x3c]
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 - 0x28], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0x61
mov esi, dword [ebp - 0x40]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], eax
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x50], esi
push ecx
push edi
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10028fa9
call fcn.1000f4f0
mov esi, eax
mov dword [ebp - 0x14], esi
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x64
lea ecx, [ebp - 0x44]
push 0xb
push str.SID_value:
call fcn.1000b130
mov edx, dword [ebp - 0xa0]
test edx, edx
je 0x10028f23
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028f07
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.1000b130
mov esi, dword [ebp - 0x14]
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0x67
lea ecx, [ebp - 0x98]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x64
or esi, 0xffffffff
mov edx, dword [ebp - 0x98]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028f8b
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 - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028fa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10029081
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x6e
lea ecx, [ebp - 0x68]
push 0xa
push str.SID_type:
call fcn.1000b130
push dword [ebp - 0x64]
lea ecx, [ebp - 0x68]
call fcn.1000f8b0
mov dword [ebp - 0x14], eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0x71
lea ecx, [ebp - 0x9c]
push 0
push 0x10053794
call fcn.1000b130
push ecx
push dword [ebp - 0x14]
mov ecx, esi
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x6e
or esi, 0xffffffff
mov edx, dword [ebp - 0x9c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029063
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 - 0x68]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029081
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10029158
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0x78
lea ecx, [ebp - 0x6c]
push 0x2c
push str.Setting_security_policy_for_this_account_...
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x7b
lea ecx, [ebp - 0xa4]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x78
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 0x1002913a
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 - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029158
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
mov dword [ebp - 0x14], eax
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10029252
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x82
lea ecx, [ebp - 0x70]
push 0x24
push str.LSA_add_account_rights_return_code:
call fcn.1000b130
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000fa30
mov dword [ebp - 0x14], eax
call fcn.10008f70
test eax, eax
je 0x100294e7
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x85
lea ecx, [ebp - 0xb8]
push 0
push 0x10053794
call fcn.1000b130
push ecx
push dword [ebp - 0x14]
mov ecx, esi
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x82
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 0x10029234
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 0x10029252
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10029264
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0x37
test edi, edi
je 0x10029285
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
jmp 0x1002928b
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100292be
push 0x10008a20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1002c834
test esi, esi
je 0x100292be
push esi
call edi
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x20]
jae 0x100292e0
mov ecx, dword [ebp - 0x78]
jmp 0x100289a0
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x100293ae
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x8c
lea ecx, [ebp - 0x1c]
push 0x14
push str.LSA_close_policy_...
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
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 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x8c
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029390
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 - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100293ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x1002946e
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x100294e7
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], 0x96
lea ecx, [ebp - 0x18]
push 0x11
push str.action_completed.
call fcn.1000b130
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100294e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x99
lea ecx, [ebp - 0x24]
push 0
push 0x10053794
call fcn.1000b130
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
sub esp, 8
call fcn.1000f690
mov byte [ebp - 4], 0x96
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029452
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1002946e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10029493
push 0x10008a20
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.1002c834
test esi, esi
je 0x10029493
push esi
call edi
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x100294bb
push eax
call edi
mov dword [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0xcc], 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.10008190
int3