Function at 0x1008a140
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1031f670
push 0x10251460
mov eax, dword fs:[0]
push eax
add esp, 0xffffff70
mov eax, dword [0x103440b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x78], 4
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1008a21c
jmp 0x1008a803
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1008a240
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103028a0
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov eax, dword [ebp - 0x64]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1008a275
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10302864
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov ecx, dword [ebp - 0x60]
shl ecx, 1
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1008a2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103028ec
call fcn.10087340
add esp, 8
jmp 0x1008a803
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1008a2ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
lea edx, [ebp - 0x58]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1008a316
jmp 0x1008a803
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1008a33a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103029b0
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov eax, dword [ebp - 0x58]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x1008a36f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10302974
call fcn.10087340
add esp, 8
jmp 0x1008a803
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1008a3ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSecurity___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
push 1
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1008a3d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1008a40d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 8
cmp dword [ebp - 0x54], 0
jne 0x1008a42f
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x1008a464
push 2
push 0xc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x1008a464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAclInformation___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [ebp - 0x24]
lea eax, [edx + eax + 8]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1008a4ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HeapAlloc___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
push 2
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x1008a4da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAcl___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x5c], 0
je 0x1008a5ac
cmp dword [ebp - 0x28], 0
je 0x1008a5ac
mov dword [ebp - 0x38], 0
jmp 0x1008a507
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x28]
jae 0x1008a5ac
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x1008a542
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10302be4
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 1]
and ecx, 0x10
je 0x1008a550
jmp 0x1008a5ac
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1008a567
jmp 0x1008a4fe
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push 0xffffffffffffffff
push 2
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x1008a59e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10302c1c
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
jmp 0x1008a4fe
push str.AddAccessAllowedAceEx
push 0x10302b84
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x1008a5fe
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 3
push 2
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0x70]
test eax, eax
jne 0x1008a5fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
jmp 0x1008a62f
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1008a62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAce___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
cmp dword [ebp - 0x5c], 0
je 0x1008a6ba
cmp dword [ebp - 0x28], 0
je 0x1008a6ba
jmp 0x1008a64a
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x28]
jae 0x1008a6ba
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x1008a681
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAce___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 2]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0xffffffffffffffff
push 2
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x1008a6b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAce___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
jmp 0x1008a641
push 0
mov eax, dword [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1008a6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
push str.SetSecurityDescriptorControl
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x1008a7ca
xor edx, edx
mov word [ebp - 0x2c], dx
xor eax, eax
mov word [ebp - 0x48], ax
xor ecx, ecx
mov word [ebp - 0x44], cx
mov dword [ebp - 0x80], 0
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x1008a758
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10302e28
call fcn.10087340
add esp, 8
jmp 0x1008a803
movzx edx, word [ebp - 0x44]
and edx, 0x400
je 0x1008a777
mov eax, 0x500
mov word [ebp - 0x2c], ax
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x48], cx
jmp 0x1008a794
movzx edx, word [ebp - 0x44]
and edx, 0x1000
je 0x1008a794
mov eax, 0x1000
mov word [ebp - 0x2c], ax
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x48], cx
movzx edx, word [ebp - 0x2c]
test edx, edx
je 0x1008a7ca
movzx eax, word [ebp - 0x48]
push eax
movzx ecx, word [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xa0]
push edx
call dword [ebp - 0x74]
test eax, eax
jne 0x1008a7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x1008a7f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileSecurity___failed._Error__d_n
call fcn.10087340
add esp, 8
jmp 0x1008a803
mov dword [ebp - 0x84], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.1008a811
jmp 0x1008a876
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100e5dee
mov esp, ebp
pop ebp
ret 0xc