Function at 0x17d06d15
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
xor ecx, ecx
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x264], ecx
lea edi, [ebp - 0x260]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov byte [ebp - 0x278], cl
lea edi, [ebp - 0x277]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x240], ecx
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x290], ecx
lea edi, [ebp - 0x28c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x100
push edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x210], ecx
mov byte [ebp - 0x20c], cl
mov byte [ebp - 0x20b], cl
mov byte [ebp - 0x20a], cl
mov byte [ebp - 0x209], cl
mov byte [ebp - 0x208], cl
mov byte [ebp - 0x207], 5
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x220], ecx
call fcn.17d080f7
mov esi, eax
test esi, esi
jl 0x17d073a4
push edi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.17d080f7
mov esi, eax
test esi, esi
jl 0x17d073a4
mov edi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 4
push ebx
call edi
test eax, eax
jne 0x17d06e58
call fcn.17ce51cd
mov esi, eax
cmp esi, 0x8007007a
jne 0x17d073a4
push 0
push 1
push dword [ebp - 0x224]
lea eax, [ebp - 0x264]
push eax
call fcn.17d08154
mov esi, eax
test esi, esi
jl 0x17d073a4
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push 4
push ebx
call edi
test eax, eax
jne 0x17d06ea0
call fcn.17ce51cd
mov esi, eax
jmp 0x17d073a4
mov eax, dword [ebp - 0x264]
xor esi, esi
mov dword [ebp - 0x230], eax
cmp dword [ebp + 0x10], esi
jne 0x17d06eda
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x17d06e94
mov ebx, 0x17d26008
cmp dword [ebp - 0x210], esi
jne 0x17d06ef5
cmp dword [ebp - 0x214], esi
je 0x17d072ac
xor esi, esi
push 1
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x17d06e94
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x17d06e94
cmp dword [ebp - 0x22c], esi
je 0x17d06f61
cmp dword [ebp - 0x218], esi
je 0x17d06f61
push 2
push 0xc
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x17d06f6b
jmp 0x17d06e94
mov dword [ebp - 0x23c], 8
mov edi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp dword [ebp - 0x210], esi
je 0x17d06f88
push dword [ebp - 0x210]
call edi
mov esi, eax
add esi, 0xc
jmp 0x17d06f8a
xor esi, esi
xor eax, eax
cmp dword [ebp - 0x214], eax
je 0x17d06f9f
push dword [ebp - 0x214]
call edi
add eax, 0xc
add eax, esi
add eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x21c]
push ecx
push 1
push eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x290]
push eax
call fcn.17d08154
mov esi, eax
test esi, esi
jl 0x17d073a4
push 2
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x17d06e94
xor eax, eax
cmp dword [ebp - 0x22c], eax
je 0x17d070db
cmp dword [ebp - 0x218], eax
je 0x17d070db
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x240], eax
jbe 0x17d070db
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x17d07062
call fcn.17ce51cd
mov ecx, dword [0x17d26008]
cmp ecx, ebx
je 0x17d070c3
test byte [ecx + 0x1c], 1
je 0x17d070c3
push eax
push 0x17c98a58
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.17ca2c24
jmp 0x17d070c3
mov eax, dword [ebp - 0x228]
test byte [eax + 1], 0x10
jne 0x17d070db
cmp dword [ebp - 0x210], 0
lea esi, [eax + 8]
je 0x17d0708d
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
jne 0x17d070c3
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x214], 0
je 0x17d070a9
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
jne 0x17d070c3
mov eax, dword [ebp - 0x228]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x17d0712f
inc dword [ebp - 0x220]
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x240]
jb 0x17d0701b
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
xor edi, edi
cmp dword [ebp - 0x210], edi
je 0x17d0715a
push dword [ebp - 0x210]
push 0x10000000
push 2
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x17d0715a
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x1d
jmp 0x17d07399
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x1c
jmp 0x17d07399
cmp dword [ebp - 0x214], edi
je 0x17d071a6
push dword [ebp - 0x214]
push 0x80000000
push 2
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x17d071a6
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x1e
jmp 0x17d07399
cmp dword [ebp - 0x22c], edi
je 0x17d0720d
cmp dword [ebp - 0x218], edi
je 0x17d0720d
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x220], eax
jae 0x17d0720d
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x17d07256
mov eax, dword [ebp - 0x228]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x17d07281
inc esi
cmp esi, dword [ebp - 0x240]
jb 0x17d071ca
xor edi, edi
push edi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x278]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x17d072ac
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x21
jmp 0x17d07399
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x1f
jmp 0x17d07399
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x20
jmp 0x17d07399
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x17d072f5
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x22
jmp 0x17d07399
test dword [ebp - 0x234], 0x400
je 0x17d07308
mov eax, 0x500
jmp 0x17d07315
mov eax, 0x1000
test dword [ebp - 0x234], eax
je 0x17d0734a
push eax
mov ecx, eax
push ecx
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
test eax, eax
jne 0x17d0734a
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x23
jmp 0x17d07399
xor esi, esi
cmp dword [ebp - 0x210], esi
jne 0x17d07362
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x214], esi
je 0x17d07368
lea eax, [ebp - 0x278]
push eax
push 4
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x17d073a4
call fcn.17ce51cd
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, ebx
je 0x17d073a4
test byte [eax + 0x1c], 1
je 0x17d073a4
push esi
push 0x17c98a58
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
cmp dword [ebp - 0x210], 0
je 0x17d073b9
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x264]
push eax
call fcn.17d081bf
lea eax, [ebp - 0x290]
push eax
call fcn.17d081bf
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.17ce4923
leave
ret 0x10