Function at 0x10009e3c
Capabilities:
Compare security identifiers

Disassembly:
push 0x64
mov eax, 0x1000b9c3
call fcn.1000a6a6
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov esi, dword [sym.imp.kernel32.dll_LocalAlloc]
push 0x44
pop eax
push eax
push ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x10009ebd
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push 0x1b
call edi
test eax, eax
je 0x10009ebd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
call fcn.100026ab
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100026ab
jmp 0x10009ec4
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x18]
push ebx
call esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x10009f05
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push 0x11
call edi
test eax, eax
je 0x10009f05
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
call fcn.100026ab
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100026ab
jmp 0x10009f0c
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x18]
push ebx
call esi
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x10009f4d
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push 1
call edi
test eax, eax
je 0x10009f4d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
call fcn.100026ab
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100026ab
jmp 0x10009f54
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x18]
push ebx
call esi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x10009f83
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push 0xb
call edi
test eax, eax
je 0x10009f83
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100026ab
jmp 0x10009f8a
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x18]
push ebx
call esi
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, ebx
je 0x10009fb8
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 0x12
call edi
test eax, eax
je 0x10009fb8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x38], esi
call fcn.100026ab
jmp 0x10009fbf
mov dword [ebp - 0x14], 0x80004005
cmp dword [ebp - 0x14], ebx
jl 0x1000a1db
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push ebx
push 2
push dword [eax + 0x4e0]
xor esi, esi
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
jne 0x1000a02d
cmp dword [ebp - 0x1c], ebx
je 0x1000a02d
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000a02d
push dword [ebp - 0x1c]
call fcn.100026ab
pop ecx
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push esi
push 2
push dword [eax + 0x4e0]
call edi
test eax, eax
jne 0x1000a038
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x1000a031
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x14], 0x80004005
cmp dword [ebp - 0x14], ebx
jl 0x1000a1db
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], ebx
cmp dword [esi], ebx
jbe 0x1000a0be
lea edi, [esi + 4]
mov eax, dword [edi + 4]
test al, 0x20
jne 0x1000a0b1
test eax, 0xc0000000
jne 0x1000a0b1
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
sar eax, 2
cmp eax, ebx
je 0x1000a0a0
mov dword [ebp - 0x24], ebx
jbe 0x1000a0a0
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
push dword [edi]
lea eax, [ecx + eax*4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1000a0b1
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
inc dword [ebp - 0x24]
sar eax, 2
cmp dword [ebp - 0x24], eax
jb 0x1000a078
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.100026ab
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
add edi, 8
cmp eax, dword [esi]
jb 0x1000a058
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 0x5c]
sub esi, dword [ebp - 0x60]
xor ecx, ecx
sar esi, 2
push 8
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100026ab
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x34], eax
cmp esi, ebx
jbe 0x1000a100
mov dword [eax + ecx*8 + 4], ebx
mov edx, dword [ebp - 0x60]
mov edx, dword [edx + ecx*4]
mov dword [eax + ecx*8], edx
inc ecx
cmp ecx, esi
jb 0x1000a0ee
mov edi, dword [ebp - 0x6c]
sub edi, dword [ebp - 0x70]
xor ecx, ecx
sar edi, 2
push 8
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100026ab
pop ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], ebx
cmp edi, ebx
jbe 0x1000a14b
mov edx, dword [ebp - 0x24]
inc dword [ebp - 0x24]
mov ecx, edx
mov dword [eax + ecx*8 + 4], 0x10
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*8], edx
cmp dword [ebp - 0x24], edi
jb 0x1000a12a
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + 0x4dc]
push edx
push dword [ebp - 0x34]
push esi
push ebx
push ebx
push eax
push edi
push 1
push dword [ecx + 0x4e0]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x1000a1a6
mov esi, dword [ebp - 0x20]
push dword [esi + 0x4dc]
call dword [sym.imp.ADVAPI32.dll_IsTokenRestricted]
test eax, eax
jne 0x1000a189
mov dword [ebp - 0x14], 0x80004005
cmp dword [ebp - 0x14], ebx
jl 0x1000a1b3
push dword [esi + 0x4dc]
mov eax, esi
add eax, 0x4e4
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1000a1b3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x14], 0x80004005
cmp dword [ebp - 0x34], ebx
je 0x1000a1c1
push dword [ebp - 0x34]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x38], ebx
je 0x1000a1cf
push dword [ebp - 0x38]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.1000857a
mov edi, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [ebp - 0x28], ebx
je 0x1000a1eb
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x2c], ebx
je 0x1000a1f5
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x30], ebx
je 0x1000a1ff
push dword [ebp - 0x30]
call edi
cmp dword [ebp - 0x3c], ebx
je 0x1000a209
push dword [ebp - 0x3c]
call edi
cmp dword [ebp - 0x40], ebx
je 0x1000a213
push dword [ebp - 0x40]
call edi
cmp byte [ebp - 0xd], bl
je 0x1000a21b
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.1000857a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.1000857a
mov eax, dword [ebp - 0x14]
call fcn.1000a77e
ret