Function at 0x14002a538
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, 0xc0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, rcx
xor ebx, ebx
mov r14d, ebx
mov r15d, ebx
mov dword [r11 - 0x70], ebx
mov qword [r11 - 0x68], rbx
mov qword [r11 - 0x60], rbx
mov qword [r11 - 0x80], rbx
mov edi, ebx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x78], rbx
mov esi, ebx
mov qword [r11 - 0x48], rbx
lea r13, [rcx + 0x18]
mov dword [r11 - 0x40], ebx
mov word [r11 - 0x3c], 0x500
mov dword [rsp + 0x60], ebx
lea edx, [rbx + 1]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
lea r8d, [rbx + 0x20]
mov dl, 2
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8d, [rbx + 0x12]
mov dl, 1
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8d, [rbx + 0x13]
mov dl, 1
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rsp + 0x70]
lea edx, [rbx + 8]
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14002a708
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3f0
jne 0x14002a946
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rsp + 0x70]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002a946
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14002a946
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14002a946
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 + 0xa0], rax
xor ebx, ebx
test rax, rax
je 0x14002a946
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, rsi
lea edx, [rbx + 1]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
add ebx, eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
add ebx, eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
add ebx, 0x34
add eax, ebx
mov dword [rsp + 0x90], eax
mov ebx, eax
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 rdi, rax
mov qword [rsp + 0x98], rax
xor ebx, ebx
test rax, rax
je 0x14002a946
lea r8d, [rbx + 2]
mov edx, dword [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
mov r9, qword [rsp + 0x80]
lea edx, [rbx + 2]
mov r8d, 0xc01f0000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
mov r9, qword [rsp + 0x88]
lea edx, [rbx + 2]
mov r8d, 0xc01f0000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
mov r9, qword [rsp + 0x68]
lea edx, [rbx + 2]
mov r8d, 0xc0110000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14002a91d
mov r9, qword [rsi]
lea edx, [rbx + 2]
mov r8d, 0xc01f0000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x14002a946
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 1]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
mov eax, 1
cmovne r15d, eax
mov dword [rsp + 0x78], r15d
test r15d, r15d
jne 0x14002a9ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
mov r15d, 0x80070000
or eax, r15d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14002a989
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx r14d, ax
or r14d, r15d
test eax, eax
cmovle r14d, eax
jmp 0x14002a98f
mov r14d, 0x80004005
test rdi, rdi
je 0x14002a9ba
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]
test eax, eax
cmovne rdi, rbx
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002a9d3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14002a9ec
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002aa02
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002aa18
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14002aa3d
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
js 0x14002aa54
mov dword [r12], 0x18
mov qword [r12 + 8], r13
mov dword [r12 + 0x10], ebx
mov qword [r12 + 0x40], rdi
mov eax, r14d
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret