Function at 0x140081d54
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15, rcx
xor r13d, r13d
mov r14d, r13d
mov qword [r11 - 0x60], r13
mov qword [r11 - 0x58], r13
mov qword [r11 - 0x70], r13
mov edi, r13d
mov dword [r11 - 0x40], r13d
mov word [r11 - 0x3c], 0x500
mov qword [r11 - 0x68], r13
mov dword [r11 - 0x78], r13d
mov esi, r13d
mov qword [r11 - 0x50], r13
lea r12d, [r13 + 1]
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
nop dword [rax + rax]
test eax, eax
je 0x140082146
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
lea r8d, [r13 + 0x20]
mov dl, 2
lea rcx, [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140082146
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r13 + 0x12]
mov dl, r12b
lea rcx, [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140082146
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r13 + 0x13]
mov dl, r12b
lea rcx, [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140082146
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rsp + 0x70]
mov r8d, r12d
lea ebx, [r13 + 8]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140081f2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3f0
jne 0x140082146
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x140082146
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140082146
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140082146
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x140082146
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140082146
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, rsi
mov edx, r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x140082146
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
mov r12d, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
add r12d, eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
add r12d, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
add eax, 0x34
add r12d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, r12d
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140082146
mov ebx, 2
mov r8d, ebx
mov edx, r12d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [rax + rax]
test eax, eax
je 0x140082146
mov r9, qword [rsp + 0x78]
mov r12d, 0xc01f0000
mov r8d, r12d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x140082146
mov r9, qword [rsp + 0x80]
mov r8d, r12d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x140082146
mov r9, qword [rsp + 0x68]
mov r8d, 0xc0110000
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x140082146
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x140082125
mov r9, qword [rsi]
mov r8d, r12d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x140082146
xor r9d, r9d
mov r8, rdi
lea ebx, [r9 + 1]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
cmovne r14d, ebx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140082161
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140082182
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov qword [rsp + 0x80], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008219d
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400821b8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x70], r13
test rsi, rsi
je 0x1400821dd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r14d, r14d
jne 0x14008220a
test rdi, rdi
je 0x14008220a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rdi, r13
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret