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

Disassembly:
push 0x68
push 0x4e6368
call fcn.0043e548
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0xc]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call edi
cmp eax, ebx
jne 0x429487
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x4290db
call esi
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.0044276c
pop ecx
pop ecx
jmp 0x429487
push dword [ebp - 0x40]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call esi
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x429104
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HeapAlloc___failed._Error__d_n
jmp 0x4290cf
mov eax, dword [ebp - 0x3c]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x4290f6
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push ebx
call edi
cmp eax, ebx
jne 0x42913e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4290c9
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
call edi
cmp eax, ebx
jne 0x429487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x429175
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSecurity___failed._Error__d_n
jmp 0x4290cf
push dword [ebp - 0x34]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4290f6
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x34]
push eax
push 4
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x429164
push 1
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4291c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
jmp 0x4290cf
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x4291ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
jmp 0x4290cf
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], 8
cmp dword [ebp - 0x28], ebx
jne 0x429201
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x38], ebx
je 0x42922c
push 2
push 0xc
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x42922c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAclInformation___failed._Error__d_n
jmp 0x4290cf
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x60]
lea edi, [eax + ecx + 8]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x4290f6
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x429274
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAcl___failed._Error__d_n
jmp 0x4290cf
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0x38], ebx
je 0x429300
cmp dword [ebp - 0x64], ebx
je 0x429300
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x1c], eax
jae 0x429300
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x4292b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAce___failed._Error__d_n
jmp 0x4290cf
mov eax, dword [ebp - 0x2c]
test byte [eax + 1], 0x10
jne 0x429300
add eax, 8
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4292fb
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x4292f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAce___failed._Error__d_n
jmp 0x4290cf
inc dword [ebp - 0x48]
inc dword [ebp - 0x1c]
jmp 0x429288
push str.AddAccessAllowedAceEx
push 0x4c77ec
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call edi
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push dword [ebp - 0x20]
push dword [ebp + 0x10]
cmp eax, ebx
je 0x429343
push 3
push 2
push dword [ebp - 0x24]
call eax
test eax, eax
jne 0x429363
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
jmp 0x4290cf
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x429363
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAce___failed._Error__d_n
jmp 0x4290cf
cmp dword [ebp - 0x38], ebx
je 0x4293ae
cmp dword [ebp - 0x64], ebx
je 0x4293ae
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x64]
jae 0x4293ae
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4292a4
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x4292e7
inc dword [ebp - 0x1c]
jmp 0x42936d
push ebx
push dword [ebp - 0x24]
push 1
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4293d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
jmp 0x4290cf
push str.SetSecurityDescriptorControl
push 0x4c77ec
call edi
push eax
call esi
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x42945a
xor esi, esi
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x429419
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorControl___failed.Error__d_n
jmp 0x4290cf
test word [ebp + 0xc], 0x400
je 0x429428
mov eax, 0x500
jmp 0x429433
mov eax, 0x1000
test word [ebp + 0xc], ax
je 0x429437
mov edi, eax
mov esi, eax
cmp si, bx
je 0x42945a
push edi
push esi
lea eax, [ebp - 0x78]
push eax
call dword [ebp - 0x54]
test eax, eax
jne 0x42945a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
jmp 0x4290cf
lea eax, [ebp - 0x78]
push eax
push 4
pop eax
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x429480
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileSecurity___failed._Error__d_n
jmp 0x4290cf
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.004294a0
mov eax, dword [ebp - 0x4c]
call fcn.0043e58d
ret 0xc