Function at 0x10077810
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100faa2b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1012c620]
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.10005520
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005520
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
push 5
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10077730
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.10077730
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.10059e20
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.10077c50
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.100100c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.10005600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.10005600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.10005600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.10005600
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.10005700
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x88], 0
jne 0x100779ee
lea edx, [ebp - 0xe8]
push edx
mov ecx, dword [ebp + 8]
call fcn.10010030
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.10005600
mov eax, dword [ebp + 8]
jmp 0x10077b95
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.10077be0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0xbc]
call fcn.100735c0
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.100257a0
push eax
lea edx, [ebp - 0x88]
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e1d0
push eax
lea ecx, [ebp - 0xa4]
call fcn.10005700
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10077ac5
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp + 8]
call fcn.10010030
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.10025760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.10010930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.10005600
mov eax, dword [ebp + 8]
jmp 0x10077b95
mov dword [ebp - 0x84], 0
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e1d0
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10077b38
lea edx, [ebp - 0x84]
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e1d0
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x10077b38
cmp dword [ebp - 0x84], 0
je 0x10077b38
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10037bb0
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.10010030
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.10025760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.10010930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.10005600
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.1007dd64
mov esp, ebp
pop ebp
ret