Function at 0x100205b0
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 0x1003c031
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe8
push esi
push edi
mov eax, dword [0x10059024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push str.AI_SetLogOnAsService
call fcn.10005cd0
test al, al
jne 0x10020638
push 0x14
push str.AI_SetLogOnAsService
lea ecx, [ebp - 0x3c]
call fcn.10005e90
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 8]
mov ecx, esi
call fcn.100097e0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020671
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1002074a
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xac]
push str.action_starting_...
call fcn.10009ad0
mov dword [ebp - 0x2c], eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 8
lea ecx, [ebp - 0xbc]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020705
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.100098a0
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0xbc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020726
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 - 0xac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002074a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1002081a
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x24]
push 0x1e
push str.Get_the_user_accounts_list_...
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
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 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x100207d8
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0xf
mov eax, edi
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100207f9
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 - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002081a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 4], 0x17
lea eax, [ebp - 0xd4]
mov ecx, dword [ebx + 8]
mov edx, str.CustomActionData
push eax
call fcn.10010bc0
add esp, 4
call fcn.10009700
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x58], edx
cmp byte [eax + 0x1c], 0
je 0x1002093d
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x20]
push 0x12
push str.CustomActionData:
call fcn.10005de0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x100208c1
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100208a6
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x20]
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x30]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020901
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x1a
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002091f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002093d
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 byte [ebp - 4], 0x22
lea eax, [ebp - 0xcc]
mov ecx, dword [ebp - 0x58]
mov edx, 0x7c
push eax
call fcn.1000b2d0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
add esp, 4
movq qword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xf4], xmm0
mov edx, 0x18
lea ecx, [ebp - 0xf4]
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x10020990
lea eax, [ebp - 0xb8]
push eax
push 0xf0fff
lea eax, [ebp - 0xf4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
mov dword [ebp - 0x28], eax
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10020a96
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x64]
push 0x1d
push str.LSA_open_policy_return_code:
call fcn.10005de0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x64]
call fcn.10009d30
mov dword [ebp - 0x28], eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0xc4]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020a57
push dword [ebp - 0x28]
mov ecx, esi
call fcn.100098a0
mov byte [ebp - 4], 0x25
mov eax, edi
mov edx, dword [ebp - 0xc4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020a78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov eax, edi
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020a96
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 0x10020aa0
lea eax, [ecx + ecx]
mov dword [ebp - 0xd8], str.SeServiceLogonRight
mov word [ebp - 0xdc], ax
add eax, 2
mov word [ebp - 0xda], ax
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10020b95
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 0x2f
lea ecx, [ebp - 0x68]
push 0x28
push str.Setting__Log_on_as_a_service__policy_...
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x8c]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020b56
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x2f
mov eax, edi
mov edx, dword [ebp - 0x8c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020b77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov eax, edi
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020b95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xc8]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x2c], ecx
jbe 0x10021553
nop dword [eax]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 0x37
lea eax, [ebp - 0x88]
mov ecx, dword [esi + ecx*8 + 4]
mov edx, 0x5c
push eax
call fcn.1000b2d0
add esp, 4
test eax, eax
jne 0x10020c1f
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x1002152f
push 0x10004940
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10025191
test esi, esi
je 0x1002152c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x1002152c
xor ecx, ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 0x38
cmp eax, 1
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov esi, dword [ecx + esi*8 + 4]
mov dword [ebp - 0x14], esi
jbe 0x10020ccd
mov eax, dword [eax + 4]
mov esi, 0x10046974
sub esi, eax
lea edx, [eax - 2]
nop dword [eax]
movzx ecx, word [esi + edx + 2]
lea edx, [edx + 2]
movzx eax, word [edx]
cmp ax, cx
jb 0x10020c87
ja 0x10020c87
test ax, ax
je 0x10020c7c
test cx, cx
jne 0x10020c60
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x10020ccd
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ecx + 4], 0
mov dword [ecx], 0
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], esi
cmp word [esi], cx
je 0x10020cca
mov eax, esi
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10020cc0
mov dword [ebp - 0x48], ecx
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10020d97
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 0x3b
lea ecx, [ebp - 0x6c]
push 0x1c
push str.Getting_user_account_SID_...
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x3e
lea ecx, [ebp - 0x90]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020d58
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x3b
mov eax, edi
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020d79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, edi
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020d97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10020e90
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x45
lea ecx, [ebp - 0x40]
push 8
push str.Domain:
call fcn.10005de0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10020e0b
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020df0
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0x48
lea ecx, [ebp - 0x94]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020e51
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x45
mov eax, edi
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020e72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, edi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020e90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10020f81
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 0x4f
lea ecx, [ebp - 0x44]
push 6
push str.User:
call fcn.10005de0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10020efc
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020ee1
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0x52
lea ecx, [ebp - 0x98]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10020f42
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x4f
mov eax, edi
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020f63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, edi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020f81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x4c], 0
jne 0x10021094
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10021079
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 0x59
lea ecx, [ebp - 0x70]
push 0x2a
push str.lookup_account_name_error:_user_NOT_found_
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0x5c
lea ecx, [ebp - 0x9c]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x1002103a
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x59
mov eax, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002105b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, edi
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021079
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x37
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100214f5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100214f5
mov ecx, 4
lea eax, [ebp - 0x74]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100210a0
test esi, esi
jne 0x100210d4
mov esi, dword [ebp - 0x48]
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 dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0x61
mov esi, dword [ebp - 0x4c]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x5c], eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x60], esi
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x1002121f
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x64
lea ecx, [ebp - 0x50]
push 0xb
push str.SID_value:
call fcn.10005de0
mov edx, dword [ebp - 0xa8]
test edx, edx
je 0x1002119a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021180
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 0x67
lea ecx, [ebp - 0xa0]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x100211e0
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x64
mov eax, edi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021201
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, edi
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002121f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x100212f6
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0x6e
lea ecx, [ebp - 0x78]
push 0xa
push str.SID_type:
call fcn.10005de0
push dword [ebp - 0x74]
lea ecx, [ebp - 0x78]
call fcn.10009bb0
mov dword [ebp - 0x14], eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x71
lea ecx, [ebp - 0xa4]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x100212b7
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100098a0
mov byte [ebp - 4], 0x6e
mov eax, edi
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100212d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, edi
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100212f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x100213cc
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 0x78
lea ecx, [ebp - 0x7c]
push 0x2c
push str.Setting_security_policy_for_this_account_...
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x7b
lea ecx, [ebp - 0xc0]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x1002138d
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x78
mov eax, edi
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100213ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, edi
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100213cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
mov dword [ebp - 0x14], eax
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x100214c5
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
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], 0x82
lea ecx, [ebp - 0x80]
push 0x24
push str.LSA_add_account_rights_return_code:
call fcn.10005de0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
lea ecx, [ebp - 0x80]
call fcn.10009d30
mov dword [ebp - 0x14], eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0x85
lea ecx, [ebp - 0xb0]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x10021486
push dword [ebp - 0x14]
mov ecx, esi
call fcn.100098a0
mov byte [ebp - 4], 0x82
mov eax, edi
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100214a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x61
mov eax, edi
mov edx, dword [ebp - 0x80]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100214c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x100214d9
push eax
call esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0x37
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100214f5
push eax
call esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1002152c
push 0x10004940
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10025191
test esi, esi
je 0x1002152c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 0x2c]
jb 0x10020bb0
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x10021620
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x8c
lea ecx, [ebp - 0x24]
push 0x14
push str.LSA_close_policy_...
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x8f
lea ecx, [ebp - 0x2c]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x100215e4
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x8c
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021620
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10009700
cmp byte [eax + 0x1c], 0
je 0x100216df
call fcn.10009700
mov esi, eax
call fcn.100050e0
test eax, eax
je 0x10021763
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x96
lea ecx, [ebp - 0x20]
push 0x11
push str.action_completed.
call fcn.10005de0
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10021763
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x99
lea ecx, [ebp - 0x30]
push 0
push 0x100469b0
call fcn.10005de0
cmp dword [esi + 0x38], 0
je 0x100216a5
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.100098a0
mov byte [ebp - 4], 0x96
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100216c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100216df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1002170c
push 0x10004940
push dword [ecx - 4]
lea esi, [ecx - 4]
push 8
push ecx
call fcn.10025191
test esi, esi
je 0x1002170c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x10021712
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x10021737
push eax
call esi
mov dword [ebp - 0xd0], 0
xor eax, eax
mov dword [ebp - 0xd4], 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.10003760
int3