Function at 0x100051ac
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0x10
call fcn.1000d19e
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x14
call fcn.1000d19e
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
push 0x80000301
push 0
push 0x1000
push 1
mov ebx, 0x1bc
call fcn.1000e160
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005295
push ebx
call fcn.1000d1a4
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x1000
push 1
mov ebx, 0x184
call fcn.1000e120
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100052ce
push ebx
call fcn.1000d1a4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x1000
mov dword [ebp - 0x10], 0x1000
mov eax, str.SeRestorePrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005947
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10005301
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, str.SeBackupPrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005947
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10005322
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, str.SeSecurityPrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005947
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10005343
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005947
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10005364
push ebx
call fcn.1000d1a4
add esp, 4
cmp dword [ebp + 0xc], 1
jne 0x1000539b
mov eax, str.SYSTEM
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10005384
push ebx
call fcn.1000d1a4
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x80000000
mov dword [ebp - 0x1c], 2
jmp 0x100053c3
mov eax, str.Administrators
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100053b1
push ebx
call fcn.1000d1a4
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x10000000
mov dword [ebp - 0x1c], 2
push 0x80000005
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ebx, 0xc
mov eax, 0x10011660
call fcn.1000d790
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esp
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x1000542b
push 0x29d
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10005442
mov eax, 0
jmp 0x100058f3
mov dword [ebp - 0x3c], esp
push 0
push 0
push 0
push 0
push 4
push 4
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x1000548e
push 0x392
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 0
jne 0x100054a5
mov eax, 0
jmp 0x100058f3
mov dword [ebp - 0x3c], esp
push 3
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push str.Everyone
mov eax, dword [ebp - 0x2c]
push eax
push 0x20
call fcn.1000d19e
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10005550
push 0x476
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov ebx, dword [ebp - 0x40]
push ebx
mov edi, dword [ebp - 0x44]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 0x14
pop edi
add edi, 4
call fcn.1000d1a4
add esp, 4
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
push eax
push 0x20
call fcn.1000d19e
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
push 1
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10005665
push 0x4ca
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x40]
push ebx
mov edi, dword [ebp - 0x44]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 0x14
pop edi
add edi, 4
call fcn.1000d1a4
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 0
jne 0x100056ec
mov eax, 0
jmp 0x100058f3
push 0x80000005
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ebx, 0xc
mov eax, 0x10011660
call fcn.1000d790
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esp
push 0
push 0
push 0
push dword [ebp - 0x3c]
push 1
push 4
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
nop
nop
cmp dword [ebp - 0x40], esp
je 0x1000575b
push 0x5db
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 0
jne 0x10005772
mov eax, 0
jmp 0x100058f3
push 0x80000301
push 0
push 0x80000000
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc8
call fcn.1000edf0
add esp, 0x1c
mov dword [ebp - 0x3c], eax
push 0x80000005
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ebx, 0xc
mov eax, 0x10011660
call fcn.1000d790
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 4
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
nop
nop
cmp dword [ebp - 0x44], esp
je 0x1000580a
push 0x6fb
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x34]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10005839
push 0x743
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x38]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10005865
push 0x75d
push 0x402f33a
push 6
call fcn.1000d1b0
add esp, 0xc
mov eax, str.SeRestorePrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005d96
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10005886
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, str.SeBackupPrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005d96
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x100058a7
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, str.SeSecurityPrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005d96
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x100058c8
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10005d96
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x100058e9
push ebx
call fcn.1000d1a4
add esp, 4
mov eax, 1
jmp 0x100058f3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005904
push ebx
call fcn.1000d1a4
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10005914
push ebx
call fcn.1000d1a4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10005924
push ebx
call fcn.1000d1a4
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.1000d1a4
add esp, 4
pop ebx
call fcn.1000d1a4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8