Function at 0x10077860
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100faa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], 0
lea ecx, [ebp - 0xe8]
call fcn.10005510
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005510
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
push 5
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10077780
add esp, 0xc
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xf8]
push eax
push 0x10106de4
mov ecx, dword [ebp + 0xc]
push ecx
push 7
lea edx, [ebp - 0x48]
push edx
call fcn.10077780
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x100]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.1005a090
add esp, 0xc
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.10077ca0
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x110]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10010050
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.100055f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.100055f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.100055f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.100055f0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 1
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0xac]
push eax
push 0
lea ecx, [ebp - 0x88]
push ecx
push 0
lea ecx, [ebp - 0xa4]
call fcn.100056f0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x88], 0
jne 0x10077a3e
lea edx, [ebp - 0xe8]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000ffc0
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.100055f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.100055f0
mov eax, dword [ebp + 8]
jmp 0x10077be5
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.10077c30
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0xbc]
call fcn.10073680
mov byte [ebp - 4], 8
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0
lea ecx, [ebp - 0xbc]
call fcn.10025680
push eax
lea edx, [ebp - 0x88]
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e720
push eax
lea ecx, [ebp - 0xa4]
call fcn.100056f0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10077b15
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000ffc0
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.10025610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.100108c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.100055f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.100055f0
mov eax, dword [ebp + 8]
jmp 0x10077be5
mov dword [ebp - 0x84], 0
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e720
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10077b88
lea edx, [ebp - 0x84]
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e720
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x10077b88
cmp dword [ebp - 0x84], 0
je 0x10077b88
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10037df0
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0xe8]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000ffc0
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.10025610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.100108c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.100055f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.100055f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007dd84
mov esp, ebp
pop ebp
ret