Function at 0x10077820
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100faacb
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.10005530
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005530
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
push 5
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10077740
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.10077740
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.10059d10
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.10077c60
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.10010080
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.10005610
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.10005610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.10005610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.10005610
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.10005710
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [ebp - 0x88], 0
jne 0x100779fe
lea edx, [ebp - 0xe8]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000fff0
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.10005610
mov eax, dword [ebp + 8]
jmp 0x10077ba5
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.10077bf0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0xbc]
call fcn.10073550
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.10025610
push eax
lea edx, [ebp - 0x88]
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e3d0
push eax
lea ecx, [ebp - 0xa4]
call fcn.10005710
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10077ad5
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000fff0
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.100255d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.100108f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.10005610
mov eax, dword [ebp + 8]
jmp 0x10077ba5
mov dword [ebp - 0x84], 0
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e3d0
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10077b48
lea edx, [ebp - 0x84]
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.1004e3d0
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x10077b48
cmp dword [ebp - 0x84], 0
je 0x10077b48
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0xe8]
call fcn.10037de0
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.1000fff0
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.100255d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.100108f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.10005610
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.1007dda4
mov esp, ebp
pop ebp
ret