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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10341dd8
push 0x1026b040
mov eax, dword fs:[0]
push eax
add esp, 0xffffff70
mov eax, dword [0x103680b4]
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 0x1008f9ec
jmp 0x1008ffd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1008fa10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103239e8
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fa45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323a34
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fa7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323a70
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fabe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fae6
jmp 0x1008ffd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1008fb0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323b70
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fb3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323aac
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fb7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSecurity___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
push 1
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1008fba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fbdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 8
cmp dword [ebp - 0x54], 0
jne 0x1008fbff
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x1008fc34
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 0x1008fc34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAclInformation___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fc7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HeapAlloc___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fcaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAcl___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x5c], 0
je 0x1008fd7c
cmp dword [ebp - 0x28], 0
je 0x1008fd7c
mov dword [ebp - 0x38], 0
jmp 0x1008fcd7
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x28]
jae 0x1008fd7c
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 0x1008fd12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323d84
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 1]
and ecx, 0x10
je 0x1008fd20
jmp 0x1008fd7c
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 0x1008fd37
jmp 0x1008fcce
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 0x1008fd6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323dbc
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
jmp 0x1008fcce
push str.AddAccessAllowedAceEx
push 0x10323cbc
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 0x1008fdce
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 0x1008fdcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
jmp 0x1008fdff
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 0x1008fdff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10323e70
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
cmp dword [ebp - 0x5c], 0
je 0x1008fe8a
cmp dword [ebp - 0x28], 0
je 0x1008fe8a
jmp 0x1008fe1a
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x28]
jae 0x1008fe8a
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 0x1008fe51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAce___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008fe88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAce___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
jmp 0x1008fe11
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 0x1008febc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008ff9a
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 0x1008ff28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorControl___failed.Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
movzx edx, word [ebp - 0x44]
and edx, 0x400
je 0x1008ff47
mov eax, 0x500
mov word [ebp - 0x2c], ax
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x48], cx
jmp 0x1008ff64
movzx edx, word [ebp - 0x44]
and edx, 0x1000
je 0x1008ff64
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 0x1008ff9a
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 0x1008ff9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
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 0x1008ffc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileSecurity___failed._Error__d_n
call fcn.1008cb40
add esp, 8
jmp 0x1008ffd3
mov dword [ebp - 0x84], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.1008ffe1
jmp 0x10090046
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.100ff9df
mov esp, ebp
pop ebp
ret 0xc