Function at 0x14004cdd0
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
push rbp
push rbx
push r13
lea rbp, [r11 - 0x478]
sub rsp, 0x560
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0x430], rax
xor ebx, ebx
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x20], rdi
mov rsi, rcx
mov qword [r11 - 0x28], r12
mov r13d, ebx
mov qword [r11 - 0x30], r14
mov r14d, ebx
mov dword [rsp + 0x50], r8d
mov edi, ebx
mov qword [rbp - 0x80], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
test rdx, rdx
je 0x14004ce35
mov rcx, qword [rdx]
jmp 0x14004ce38
mov rcx, rbx
mov qword [rsp + 0x540], r15
call fcn.14002b750
mov r12, rax
test rax, rax
je 0x14004d1b1
mov rcx, rsi
call fcn.14002ae70
mov r13, rax
test rax, rax
je 0x14004d1ae
lea rcx, str.NT_SERVICETrustedInstaller
call fcn.14002b750
mov r14, rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x80]
mov edx, 1
mov qword [rsp + 0x38], rax
mov rcx, r13
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 4]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x14004cece
mov r8d, eax
lea rcx, str.failed_to_retrieve_the_owner_sid_and_dacl_of_file__S_with_error_code:__d
mov rdx, r13
call fcn.140046c70
call fcn.140084fc0
mov dword [rax], 0x83
jmp 0x14004d1ae
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
mov esi, eax
test eax, eax
je 0x14004d19d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_IsValidAcl]
mov edi, eax
test eax, eax
je 0x14004d19d
mov rcx, qword [rsp + 0x40]
mov edx, 0x1a
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x14004cf5b
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x16]
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x14004cf5b
mov rcx, qword [rsp + 0x40]
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14004cf5b
test r14, r14
je 0x14004cf47
mov rcx, qword [rsp + 0x40]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14004cf5b
mov rdx, r13
lea rcx, str.Bad_owner_on__S
call fcn.140046c70
jmp 0x14004d1ae
mov rcx, qword [rsp + 0x48]
mov esi, ebx
cmp bx, word [rcx + 4]
jae 0x14004d1b1
nop dword [rax]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x14004d184
mov rax, qword [rsp + 0x78]
cmp byte [rax], bl
jne 0x14004d124
mov r15d, dword [rax + 4]
lea rdi, [rax + 8]
mov rcx, rdi
mov edx, 0x1a
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x14004d124
lea edx, [rax + 0x16]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x14004d124
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14004d124
test r14, r14
je 0x14004cff6
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14004d124
cmp dword [rsp + 0x50], ebx
je 0x14004d009
test r15d, 0x116
je 0x14004d124
movups xmm0, xmmword [str.UNKNOWN]
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x212
movups xmmword [rbp + 0x200], xmm0
call fcn.14007a110
movups xmm0, xmmword [str.UNKNOWN]
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x212
movups xmmword [rbp - 0x30], xmm0
call fcn.14007a110
movups xmm0, xmmword [str.UNKNOWN]
xor eax, eax
mov dword [rsp + 0x58], 0x111
mov qword [rbp - 0x48], rax
lea r9, [rsp + 0x58]
mov qword [rbp - 0x40], rax
lea r8, [rbp + 0x200]
mov qword [rbp - 0x68], rax
mov rdx, r12
mov qword [rbp - 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 0x111
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x58], xmm0
mov dword [rsp + 0x54], shutdown
movups xmmword [rbp - 0x78], xmm0
mov dword [rsp + 0x5c], shutdown
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x14004d139
lea rax, [rsp + 0x64]
mov rdx, rdi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x5c]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x14004d139
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x200]
call fcn.140087f48
test eax, eax
jne 0x14004d139
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140087f48
test eax, eax
jne 0x14004d139
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x68], eax
jne 0x14004d139
mov rcx, qword [rsp + 0x48]
inc esi
movzx eax, word [rcx + 4]
cmp esi, eax
jb 0x14004cf70
jmp 0x14004d1b1
lea rdx, [rsp + 0x70]
mov rcx, rdi
or ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
jne 0x14004d164
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ConvertSidToSidString_failed_with__d.
call fcn.140046c70
jmp 0x14004d1b1
mov r9, qword [rsp + 0x70]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], r13
lea rcx, str.Bad_permissions._Try_removing_permissions_for_user:__S_S___s__on_file__S.
call fcn.140046c70
jmp 0x14004d1b1
lea rcx, str.GetAce___failed
call fcn.140046c70
call fcn.140084fc0
mov dword [rax], 0x83
jmp 0x14004d1ae
mov r8d, edi
lea rcx, str.IsValidSid:__d__is_valid_acl:__d
mov edx, esi
call fcn.140046c70
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x540]
mov rdi, qword [rsp + 0x558]
mov rsi, qword [rsp + 0x590]
test rcx, rcx
je 0x14004d1d9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004d1e8
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x14004d1f5
mov rcx, r12
call fcn.14007a8b4
mov r12, qword [rsp + 0x550]
test r14, r14
je 0x14004d20a
mov rcx, r14
call fcn.14007a8b4
mov r14, qword [rsp + 0x548]
test r13, r13
je 0x14004d21f
mov rcx, r13
call fcn.14007a8b4
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140078840
add rsp, 0x560
pop r13
pop rbx
pop rbp
ret