Function at 0x300a782a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.MSO.dll_Ordinal_3090]
mov esi, dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0x300a7b28
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x300a7882
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x300a7a8e
lea eax, [ebp - 0xc]
push eax
push 0x300a7b14
call esi
test eax, eax
je 0x300a7877
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push 0x300a7ae4
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x300a7a8e
cmp word [ebp - 0x60], 9
push ebx
je 0x300a78c3
push 0x30336236
call dword [sym.imp.MSO.dll_Ordinal_6848]
jmp 0x300a7a8e
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.ACTIVEDS.dll_SecurityDescriptorToBinarySD
test eax, eax
jl 0x300a7a8e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x300a7877
cmp dword [ebp - 0x28], ebx
je 0x300a7a8e
cmp dword [ebp - 0x18], ebx
jne 0x300a791e
mov dword [ebp - 0x24], 1
jmp 0x300a7a8e
push 2
push 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x300a7877
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x300a7a35
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x300a7877
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x300a7a8e
movzx ecx, byte [eax]
sub ecx, ebx
je 0x300a7a0c
dec ecx
je 0x300a79ea
sub ecx, 5
jne 0x300a7a26
mov dword [ebp - 8], ebx
test byte [eax + 8], 1
mov esi, eax
je 0x300a79bf
push 0x27
push ebx
lea eax, [ebp - 8]
push eax
call fcn.30012ccc
test eax, eax
jl 0x300a7ad2
push 0x27
push dword [ebp - 8]
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x300a7ad2
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x300a79df
push dword [ebp - 8]
movzx eax, byte [esi + 1]
push eax
push dword [esi + 4]
call fcn.300a6e8a
mov byte [ebp - 1], al
lea eax, [ebp - 8]
push eax
call fcn.30011e23
jmp 0x300a7a21
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x300a7a26
movzx eax, byte [esi + 1]
push ebx
push eax
push dword [esi + 4]
call fcn.300a6e8a
mov byte [ebp - 1], al
jmp 0x300a7a21
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x300a7a26
mov eax, dword [esi + 4]
or dword [ebp - 0x20], eax
cmp byte [ebp - 1], bl
jne 0x300a7a35
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x40]
jb 0x300a7949
test byte [ebp - 0x20], 4
jne 0x300a7a44
test dword [ebp - 0x20], 0xb0000000
je 0x300a7a8e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
or word [ebp - 0x48], 0xffff
lea edx, [ebp - 0x50]
push edx
push 0x300a7b40
push eax
mov word [ebp - 0x50], 2
call dword [ecx + 0x3c]
cmp eax, ebx
mov ecx, 0x8000500d
jge 0x300a7a6e
cmp eax, ecx
jne 0x300a7a82
cmp eax, ecx
je 0x300a7a79
cmp word [ebp - 0x48], 0xffff
je 0x300a7a82
mov dword [ebp - 0x24], 1
xor eax, eax
cmp eax, ebx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.MSO.dll_Ordinal_3087]
cmp dword [ebp - 0x10], ebx
je 0x300a7a9e
push dword [ebp - 0x10]
call sub.ACTIVEDS.dll_FreeADsMem
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x300a7ab1
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], ebx
je 0x300a7abe
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSO.dll_Ordinal_3087]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 8]
push eax
call fcn.30011e23
jmp 0x300a7a8e