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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b8b80
push 0x486d30
mov eax, dword fs:[0]
push eax
add esp, 0xffffff70
mov eax, dword [0x5c24ac]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 4
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x438083
jmp 0x43866d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4380a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562a10
call fcn.00438740
add esp, 8
jmp 0x43866d
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 - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4380dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562a5c
call fcn.00438740
add esp, 8
jmp 0x43866d
mov ecx, dword [ebp - 0x60]
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 - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x438113
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562a98
call fcn.00438740
add esp, 8
jmp 0x43866d
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x438155
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
lea edx, [ebp - 0x58]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x43817d
jmp 0x43866d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4381a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562b98
call fcn.00438740
add esp, 8
jmp 0x43866d
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 - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4381d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562ad4
call fcn.00438740
add esp, 8
jmp 0x43866d
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x438212
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSecurity___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
push 1
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x43823e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x438274
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 8
cmp dword [ebp - 0x54], 0
jne 0x438296
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x4382cb
push 2
push 0xc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x4382cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAclInformation___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [ebp - 0x24]
lea eax, [edx + eax + 8]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x438314
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HeapAlloc___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
push 2
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x438341
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAcl___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x5c], 0
je 0x438413
cmp dword [ebp - 0x28], 0
je 0x438413
mov dword [ebp - 0x38], 0
jmp 0x43836e
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x28]
jae 0x438413
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x4383a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562d94
call fcn.00438740
add esp, 8
jmp 0x43866d
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 1]
and ecx, 0x10
je 0x4383b7
jmp 0x438413
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4383ce
jmp 0x438365
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push 0xffffffffffffffff
push 2
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x438405
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x562dcc
call fcn.00438740
add esp, 8
jmp 0x43866d
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
jmp 0x438365
push str.AddAccessAllowedAceEx
push 0x562ce4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x438465
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 3
push 2
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0x70]
test eax, eax
jne 0x438463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAceEx___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
jmp 0x438496
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x438496
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAccessAllowedAce___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
cmp dword [ebp - 0x5c], 0
je 0x438521
cmp dword [ebp - 0x28], 0
je 0x438521
jmp 0x4384b1
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x28]
jae 0x438521
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x4384e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAce___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 2]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0xffffffffffffffff
push 2
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x43851f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddAce___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
jmp 0x4384a8
push 0
mov eax, dword [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x438553
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
push str.SetSecurityDescriptorControl
push 0x562fb4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x438637
xor edx, edx
mov word [ebp - 0x2c], dx
xor eax, eax
mov word [ebp - 0x48], ax
xor ecx, ecx
mov word [ebp - 0x44], cx
mov dword [ebp - 0x84], 0
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x4385c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorControl___failed.Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
movzx edx, word [ebp - 0x44]
and edx, 0x400
je 0x4385e4
mov eax, 0x500
mov word [ebp - 0x2c], ax
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x48], cx
jmp 0x438601
movzx edx, word [ebp - 0x44]
and edx, 0x1000
je 0x438601
mov eax, 0x1000
mov word [ebp - 0x2c], ax
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x48], cx
movzx edx, word [ebp - 0x2c]
test edx, edx
je 0x438637
movzx eax, word [ebp - 0x48]
push eax
movzx ecx, word [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xa0]
push edx
call dword [ebp - 0x74]
test eax, eax
jne 0x438637
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorControl___failed.Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x438666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileSecurity___failed._Error__d_n
call fcn.00438740
add esp, 8
jmp 0x43866d
mov dword [ebp - 0x7c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0043867b
jmp 0x4386e0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00464e95
mov esp, ebp
pop ebp
ret 0xc