Function at 0x13537b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x1382008]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, ecx
mov dword [esp + 0x40], 1
xor ecx, ecx
mov dword [esp + 0x10], eax
mov esi, ecx
mov dword [esp + 0x24], ecx
or dword [esp + 0x24], 0xffffffff
mov edi, ecx
or dword [eax], 0xffffffff
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 4
push edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ecx
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
mov ebx, eax
test ebx, ebx
je 0x1353a33
mov ecx, dword [esp + 0x24]
mov edx, 0x2000
call fcn.0135372a
mov ebx, eax
test ebx, ebx
je 0x1353a33
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push 1
call fcn.01351332
xor ebx, ebx
test eax, eax
pop ecx
setns bl
test eax, eax
js 0x1353a11
mov esi, dword [esp + 0x2c]
push 4
mov eax, dword [esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor edx, edx
mov ecx, eax
call fcn.0135114b
xor ebx, ebx
test eax, eax
setns bl
test eax, eax
js 0x1353a0f
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push 6
call fcn.01351332
xor ebx, ebx
test eax, eax
pop ecx
setns bl
test eax, eax
js 0x1353a05
lea eax, [esp + 0x34]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
push 2
push 0x13828c8
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, dword [esp + 0x3c]
mov ebx, eax
test ebx, ebx
je 0x1353a33
mov eax, dword [edi]
movzx esi, word [eax + 2]
mov eax, dword [esp + 0x2c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add esi, 0xc
add eax, esi
push eax
mov dword [esp + 0x10], eax
call fcn.01366d9a
mov esi, eax
pop ecx
test esi, esi
jne 0x1353920
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1353a11
mov dword [esp + 0x18], esi
mov eax, dword [edi]
movzx eax, byte [eax]
push eax
push dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov ebx, eax
test ebx, ebx
je 0x1353a24
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
push dword [ecx]
movzx eax, byte [eax]
push 0x10000000
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov ebx, eax
test ebx, ebx
je 0x1353a24
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
jmp 0x13539a7
mov eax, dword [esp + 0x14]
add eax, 8
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x13539a0
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 2]
push eax
mov eax, dword [edi]
push ecx
push 0
movzx eax, byte [eax]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_AddAce]
lea eax, [esp + 0x14]
inc ebx
push eax
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x135396e
mov eax, dword [esp + 0xc]
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
push 6
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor edx, edx
mov ecx, eax
call fcn.0135114b
xor ebx, ebx
test eax, eax
setns bl
test eax, eax
js 0x1353a11
push 4
lea eax, [esp + 0x44]
push eax
push 0x18
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor edx, edx
mov ecx, eax
call fcn.0135114b
xor ebx, ebx
test eax, eax
setns bl
jmp 0x1353a11
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0xc]
jmp 0x1353a11
mov esi, edi
test ebx, ebx
je 0x1353a24
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
or dword [esp + 0x24], 0xffffffff
mov dword [ecx], eax
test esi, esi
je 0x1353a2f
push esi
call fcn.01366d7f
pop ecx
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x34], 0
je 0x1353a49
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [esp + 0x34], 0
test edi, edi
je 0x1353a54
mov ecx, edi
call fcn.0135124b
test esi, esi
je 0x1353a5f
mov ecx, esi
call fcn.0135124b
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
je 0x1353a6d
call fcn.0135117d
mov ecx, dword [esp + 0x44]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0135da4f
mov esp, ebp
pop ebp
ret