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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x571af0
push 0x48a790
mov eax, dword fs:[0]
push eax
add esp, 0xffffff74
push ebx
push esi
push edi
mov eax, dword [0x580280]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x84], 4
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4212e6
jmp 0x421909
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x42130a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c340
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov eax, dword [ebp - 0x58]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x42133f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c38c
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov ecx, dword [ebp - 0x44]
shl ecx, 1
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x421376
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c3c8
call fcn.0048a6dd
add esp, 8
jmp 0x421909
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4213b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
lea edx, [ebp - 0x64]
push edx
push 0
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4213e6
jmp 0x421909
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x42140a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c4c8
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov eax, dword [ebp - 0x64]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x421445
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c404
call fcn.0048a6dd
add esp, 8
jmp 0x421909
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x421487
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSecurity___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4214b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x4214e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 8
cmp dword [ebp - 0x40], 0
jne 0x421508
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x42153d
push 2
push 0xc
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x42153d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAclInformation___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [ebp - 0x20]
lea eax, [edx + eax + 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x421586
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HeapAlloc___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
push 2
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x4215b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAcl___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x38], 0
je 0x421685
cmp dword [ebp - 0x24], 0
je 0x421685
mov dword [ebp - 0x28], 0
jmp 0x4215e0
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x24]
jae 0x421685
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x42161b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c6c4
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 1]
and ecx, 0x10
je 0x421629
jmp 0x421685
mov edx, dword [ebp - 0x30]
add edx, 8
push edx
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x421640
jmp 0x4215d7
mov ecx, dword [ebp - 0x30]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0xffffffffffffffff
push 2
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x421677
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54c6fc
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
jmp 0x4215d7
push str.AddAccessAllowedAceEx
push 0x54c614
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4216d7
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 3
push 2
mov edx, dword [ebp - 0x60]
push edx
call dword [ebp - 0x3c]
test eax, eax
jne 0x4216d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
jmp 0x421708
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x421708
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAce___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
cmp dword [ebp - 0x38], 0
je 0x421793
cmp dword [ebp - 0x24], 0
je 0x421793
jmp 0x421723
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x24]
jae 0x421793
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x42175a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAce___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + 2]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0xffffffffffffffff
push 2
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x421791
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAce___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
jmp 0x42171a
push 0
mov eax, dword [ebp - 0x60]
push eax
push 1
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4217c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
push str.SetSecurityDescriptorControl
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4218d3
xor edx, edx
mov word [ebp - 0x8c], dx
xor eax, eax
mov word [ebp - 0x94], ax
xor ecx, ecx
mov word [ebp - 0x98], cx
mov dword [ebp - 0x90], 0
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x421843
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorControl___failed.Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
movzx edx, word [ebp - 0x98]
and edx, 0x400
je 0x42186e
mov eax, 0x500
mov word [ebp - 0x8c], ax
mov cx, word [ebp - 0x8c]
mov word [ebp - 0x94], cx
jmp 0x421897
movzx edx, word [ebp - 0x98]
and edx, 0x1000
je 0x421897
mov eax, 0x1000
mov word [ebp - 0x8c], ax
mov cx, word [ebp - 0x8c]
mov word [ebp - 0x94], cx
movzx edx, word [ebp - 0x8c]
test edx, edx
je 0x4218d3
movzx eax, word [ebp - 0x94]
push eax
movzx ecx, word [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call dword [ebp - 0x80]
test eax, eax
jne 0x4218d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x421902
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileSecurity___failed._Error__d_n
call fcn.0048a6dd
add esp, 8
jmp 0x421909
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00421917
jmp 0x421982
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc