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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590438
push 0x5657d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [str.Users]
mov dword [ebp - 0x28], eax
mov cx, word [0x5d48d8]
mov word [ebp - 0x24], cx
xor esi, esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x40]
push eax
push esi
lea ecx, [ebp - 0x34]
push ecx
push esi
lea edx, [ebp - 0x28]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov dword [ebp - 0x74], eax
cmp eax, esi
jne 0x454a3d
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
cmp eax, 0x7a
je 0x454566
call ebx
push eax
push str.LookupAccountName___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov eax, dword [ebp - 0x34]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
call edi
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
jne 0x45459a
call ebx
push eax
push str.HeapAlloc___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov ecx, dword [ebp - 0x40]
push ecx
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call edi
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x4545c6
call ebx
push eax
push str.HeapAlloc___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x40]
push ecx
push eax
lea edx, [ebp - 0x34]
push edx
push esi
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x454600
call ebx
push eax
push str.LookupAccountName___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp + 8]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
call esi
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x454a3d
call ebx
cmp eax, 0x7a
je 0x45463e
call ebx
push eax
push str.GetFileSecurity___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov eax, dword [ebp - 0x64]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call edi
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x45466a
call ebx
push eax
push str.HeapAlloc___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push eax
push 4
mov eax, dword [ebp + 8]
push eax
call esi
mov dword [ebp - 0x74], eax
xor esi, esi
cmp eax, esi
jne 0x45469a
call ebx
push eax
push str.GetFileSecurity___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
push 1
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4546c3
call ebx
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x4546f3
call ebx
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x45470a
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x44], esi
je 0x454738
push 2
push 0xc
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x454738
call ebx
push eax
push str.GetAclInformation___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x5c]
lea esi, [eax + ecx + 8]
mov dword [ebp - 0x20], esi
push esi
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call edi
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x454777
call ebx
push eax
push str.HeapAlloc___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x45479b
call ebx
push eax
push str.InitializeAcl___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
xor esi, esi
mov dword [ebp - 0x78], esi
cmp dword [ebp - 0x44], esi
je 0x45481a
cmp dword [ebp - 0x60], esi
je 0x45481a
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x60]
jae 0x45481d
lea edx, [ebp - 0x6c]
push edx
push esi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x4547db
call ebx
push eax
push str.GetAce___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov eax, dword [ebp - 0x6c]
test byte [eax + 1], 0x10
jne 0x45481d
add eax, 8
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x454817
xor edx, edx
mov eax, dword [ebp - 0x6c]
mov dx, word [eax + 2]
push edx
push eax
push 0xffffffffffffffff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x4548e9
inc dword [ebp - 0x78]
inc esi
jmp 0x4547aa
mov esi, dword [ebp - 0x2c]
push str.AddAccessAllowedAceEx
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x454866
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, 0x10000000
push ecx
push 3
push 2
push edi
call eax
test eax, eax
jne 0x454893
call ebx
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov edx, dword [ebp - 0x70]
push edx
mov eax, 0x10000000
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x454893
call ebx
push eax
push str.AddAccessAllowedAce___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x454905
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x454905
cmp esi, dword [ebp - 0x60]
jae 0x454905
lea eax, [ebp - 0x6c]
push eax
push esi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x4548cf
call ebx
push eax
push str.GetAce___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
xor edx, edx
mov eax, dword [ebp - 0x6c]
mov dx, word [eax + 2]
push edx
push eax
push 0xffffffffffffffff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x4548ff
call ebx
push eax
push str.AddAce___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
inc esi
mov dword [ebp - 0x2c], esi
jmp 0x4548a1
push 0
push edi
push 1
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x454931
call ebx
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
push str.SetSecurityDescriptorControl
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x54], ebx
xor esi, esi
cmp ebx, esi
je 0x454a04
mov dword [ebp - 0x98], esi
xor edi, edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], esi
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x4549a7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetSecurityDescriptorControl___failed.Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov eax, dword [ebp - 0x9c]
test ah, 4
je 0x4549c1
mov esi, 0x500
mov dword [ebp - 0x98], esi
mov edi, esi
jmp 0x4549d3
test ah, 0x10
je 0x4549d9
mov esi, 0x1000
mov dword [ebp - 0x98], esi
mov edi, esi
mov dword [ebp - 0xa4], edi
test si, si
je 0x454a04
push edi
push esi
lea ecx, [ebp - 0x8c]
push ecx
call ebx
test eax, eax
jne 0x454a04
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
lea edx, [ebp - 0x8c]
push edx
mov eax, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x454a36
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.SetFileSecurity___failed._Error__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x454a3d
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00454a5d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret