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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1019e9c0
push 0x1012d610
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x101ba0ec]
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 esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x68], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
xor edi, edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1003ecdd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x1003e921
call esi
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1003e952
call esi
push eax
push str.HeapAlloc___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
mov eax, dword [ebp - 0x44]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1003e93a
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x30]
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1003e909
push 1
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1003e9ba
call esi
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1003e9eb
call esi
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x1003ea5c
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ebx, dword [ebp - 0x24]
add ebx, 8
add ebx, eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1003e93a
push 2
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x1003ea8d
call esi
push eax
push str.InitializeAcl___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
cmp dword [ebp - 0x34], 0
je 0x1003ea0a
push 2
push 0xc
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x1003ea0a
call esi
push eax
push str.GetAclInformation___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
xor ebx, ebx
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x34], ebx
je 0x1003eb3e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1003eb3e
xor edi, edi
mov dword [ebp - 0x4c], edi
nop dword [eax + eax]
cmp edi, eax
jae 0x1003eb3e
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x1003eae2
call esi
push eax
push str.GetAce___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
mov eax, dword [ebp - 0x38]
test byte [eax + 1], 0x10
jne 0x1003eb3e
add eax, 8
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1003eb32
mov ecx, dword [ebp - 0x38]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x1003eb2e
call esi
push eax
push str.AddAce___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
inc ebx
mov dword [ebp - 0x60], ebx
inc edi
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp - 0x28]
jmp 0x1003eab0
push str.AddAccessAllowedAceEx
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x30]
mov ebx, dword [ebp - 0x3c]
push dword [ebp + 0xc]
test eax, eax
je 0x1003eb85
push 3
push 2
push ebx
call eax
test eax, eax
jne 0x1003ebaa
call esi
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1003ebaa
call esi
push eax
push str.AddAccessAllowedAce___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
cmp dword [ebp - 0x34], 0
je 0x1003ebf6
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1003ebf6
cmp edi, eax
jae 0x1003ebf6
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1003eaca
mov ecx, dword [ebp - 0x38]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x1003eb16
inc edi
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp - 0x28]
jmp 0x1003ebb7
push 0
push ebx
push 1
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1003ec24
call esi
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
push str.SetSecurityDescriptorControl
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1003ecc3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1003ecc3
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x1003ec82
call esi
push eax
push str.GetSecurityDescriptorControl___failed.Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
mov eax, dword [ebp - 0x50]
test eax, 0x400
je 0x1003ec93
mov eax, 0x500
jmp 0x1003ec9f
test eax, 0x1000
je 0x1003ecc3
mov eax, 0x1000
push eax
push eax
lea eax, [ebp - 0x84]
push eax
call edi
test eax, eax
jne 0x1003ecc3
call esi
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
call fcn.1003f010
add esp, 8
mov esi, dword [ebp - 0x2c]
jmp 0x1003ecdd
mov dword [ebp - 0x58], 1
movups xmm0, xmmword [ebp - 0x84]
mov esi, dword [ebp - 0x2c]
movups xmmword [esi], xmm0
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.1003ed0d
mov eax, dword [ebp - 0x58]
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.1010a7f2
mov esp, ebp
pop ebp
ret 8