Function at 0x1008fa8
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x101d78c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [eax], 0xffff
cmp dword [0x1020300], ebx
push edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
je 0x10091db
mov edi, dword [sym.imp.msvcrt.dll__wcsupr]
mov esi, 0x1020300
mov dword [ebp - 0x7c], esi
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
push str._UNLIMITED
push dword [esi]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1009010
mov eax, dword [ebp - 0x80]
or dword [eax + 0x10], 0xffffffff
jmp 0x10091c7
push 0x101dd98
push dword [esi]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10091c7
push str._PRINT
push dword [esi]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10091c7
push dword [esi]
call fcn.01010111
mov ebx, eax
test ebx, ebx
jne 0x100904d
push 0xdb1
call fcn.010108fa
push 0x101ddcc
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100908b
push 0x101ddcc
mov esi, 0xf70
push esi
push ebx
call fcn.01010252
cmp eax, 1
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x10], eax
jae 0x10091c7
push 0x101ddcc
push esi
jmp 0x10091b7
push str._REMARK
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10090a9
mov eax, dword [ebp - 0x80]
mov dword [eax + 8], ebx
jmp 0x10091c7
push str._GRANT
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10090ca
inc dword [ebp - 0x70]
mov word [ebx - 2], 0x3a
jmp 0x10091c7
push str._CACHE
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10091c7
push ebx
call edi
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [0x101d24c]
mov dword [ebp - 0x6c], eax
call edi
push dword [0x101d254]
call edi
push dword [0x101d25c]
call edi
push dword [0x101d264]
call edi
push dword [0x101d26c]
call edi
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push dword [0x101d24c]
push ebx
call esi
add esp, 0x28
test eax, eax
je 0x10091be
cmp word [ebx], 0x59
je 0x10091be
push dword [ebp - 0x6c]
push dword [0x101d254]
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x1009158
mov eax, dword [ebp - 0x74]
and dword [eax], 0
jmp 0x10091c7
push dword [ebp - 0x6c]
push dword [0x101d25c]
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x10091be
push dword [ebp - 0x6c]
push dword [0x101d264]
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x1009189
mov eax, dword [ebp - 0x74]
mov dword [eax], 0x20
jmp 0x10091c7
push dword [ebp - 0x6c]
push dword [0x101d26c]
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x10091a7
mov eax, dword [ebp - 0x74]
mov dword [eax], 0x30
jmp 0x10091c7
cmp word [ebx], 0x4e
je 0x100919c
push str._CACHE
push 0xf70
call fcn.010107ca
jmp 0x10091c7
mov eax, dword [ebp - 0x74]
mov dword [eax], 0x10
mov esi, dword [ebp - 0x7c]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 0x7c], esi
jne 0x1008fef
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x100942b
cmp dword [ebp - 0x70], ebx
jne 0x1009220
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 1
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x1009211
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 0x24
jmp 0x1009229
mov eax, dword [ebp - 0x70]
imul eax, eax, 0x4c
add eax, 0x1c
push eax
push ebx
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x6c], edi
jne 0x1009244
push 8
call fcn.010108fa
push 1
push edi
lea esi, [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1009260
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
mov eax, dword [ebp - 0x78]
push 2
add eax, 0xffffffec
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x1009287
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
cmp dword [ebp - 0x70], ebx
jne 0x10092be
lea eax, [ebp - 0x48]
push eax
push 0x1200a9
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x10093fe
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
jmp 0x10093fe
cmp dword [0x1020300], ebx
je 0x10093fe
mov esi, 0x1020300
mov dword [ebp - 0x7c], esi
push dword [esi]
call fcn.01010111
mov ebx, eax
test ebx, ebx
je 0x10093ea
mov edi, str._GRANT
push edi
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10093e7
push ebx
call fcn.0101013b
mov esi, eax
test esi, esi
jne 0x1009312
push edi
push 0xf70
call fcn.010107ca
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x84], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x100935f
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
push dword [0x101d204]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x100937d
mov dword [ebp - 0x70], 0x1200a9
jmp 0x10093b8
push dword [0x101d20c]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1009395
mov dword [ebp - 0x70], 0x1301bf
jmp 0x10093b8
push dword [0x101d214]
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10093ad
mov dword [ebp - 0x70], 0x1f01ff
jmp 0x10093b8
push edi
push 0xf70
call fcn.010107ca
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
push 2
add eax, 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x10093e7
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x7c]
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 0x7c], esi
jne 0x10092d2
xor ebx, ebx
push ebx
lea eax, [edi + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1009423
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010108fa
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x24], edi
jmp 0x100943a
cmp dword [ebp - 0x70], ebx
je 0x100943a
push 0xdb1
call fcn.010108fa
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100fd6e
leave
ret 0xc