Function at 0x1400aa620
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov ebx, r8d
mov rdi, rdx
mov r15, rcx
cmp dword [0x141998f18], 0
jle 0x1400aa9ed
mov eax, dword [0x141998f1c]
cmp eax, 0xfffffffe
jle 0x1400aa678
call fcn.1400abbd0
lea rdx, [rbp - 0x78]
mov rcx, r15
call fcn.1400a5f90
nop
xor esi, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
lea rcx, [rbp - 0x78]
call fcn.140046630
mov rcx, rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
lea edx, [rsi + 1]
lea r8d, [rsi + 7]
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1400aa9bb
mov esi, 0xffffffff
test ebx, 0x700
je 0x1400aa8b3
cmp qword [0x141998f70], 0
je 0x1400aa865
mov dword [rbp + 0x40], 0x120089
mov dword [rbp + 0x44], 0x120116
mov dword [rbp + 0x48], 0x1200a0
mov dword [rbp + 0x4c], 0x1f01ff
or dword [rdi], 0x700
mov dword [rsp + 0x44], 0x80000000
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_MapGenericMask]
mov dword [rsp + 0x48], 0x14
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [0x141998f70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x1400aa788
cmp dword [rsp + 0x4c], 0
je 0x1400aa788
or dword [rdi + 4], 0x400
mov dword [rsp + 0x48], 0x14
mov dword [rsp + 0x44], 0x40000000
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [0x141998f70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x1400aa7fa
cmp dword [rsp + 0x4c], 0
je 0x1400aa7fa
or dword [rdi + 4], 0x200
mov dword [rsp + 0x48], 0x14
mov dword [rsp + 0x44], 0x20000000
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [0x141998f70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x1400aa8b3
cmp dword [rsp + 0x4c], 0
jmp 0x1400aa8aa
or dword [rdi], 0x700
lea r8, [rsp + 0x40]
lea rdx, [0x141998f20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test cl, 1
je 0x1400aa89b
or dword [rdi + 4], 0x400
test cl, 2
je 0x1400aa8a7
or dword [rdi + 4], 0x200
test cl, 0x20
je 0x1400aa8b3
or dword [rdi + 4], 0x100
test ebx, 0x7000
je 0x1400aa914
or dword [rdi], 0x7000
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test cl, 1
je 0x1400aa8fc
or dword [rdi + 4], 0x4000
test cl, 2
je 0x1400aa908
or dword [rdi + 4], 0x2000
test cl, 0x20
je 0x1400aa914
or dword [rdi + 4], 0x1000
test bl, 0x70
je 0x1400aa966
or dword [rdi], 0x70
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test cl, 1
je 0x1400aa954
or dword [rdi + 4], 0x40
test cl, 2
je 0x1400aa95d
or dword [rdi + 4], 0x20
test cl, 0x20
je 0x1400aa966
or dword [rdi + 4], 0x10
test bl, 7
je 0x1400aa9b0
or dword [rdi], 7
lea r8, [rsp + 0x40]
lea rdx, [0x141998f40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rsp + 0x40], ecx
test cl, 1
je 0x1400aa99b
or dword [rdi + 4], 4
test cl, 2
je 0x1400aa9a4
or dword [rdi + 4], 2
test cl, 0x20
je 0x1400aa9b0
or dword [rdi + 4], 0x1000
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rax, qword [rbp - 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400aa9e4
cmp ecx, 0xffffffff
je 0x1400aacbb
mov esi, 0xffffffff
mov rax, qword [rbp - 0x78]
lock xadd dword [rax], esi
cmp esi, 1
jne 0x1400aacbb
mov rcx, qword [rbp - 0x78]
jmp 0x1400aacac
mov eax, dword [rdx + 4]
or eax, 0x4044
mov dword [rdx + 4], eax
test byte [rdx + 0x10], 1
jne 0x1400aaa06
or eax, 0x2022
mov dword [rdx + 4], eax
lea rdx, [rbp - 0x70]
call fcn.1400a5890
nop
mov r8d, 4
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400449e0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140045760
nop
mov rax, qword [rbp - 0x68]
mov ecx, dword [rax]
mov esi, 0xffffffff
test ecx, ecx
je 0x1400aaa54
cmp ecx, esi
je 0x1400aaa66
mov ecx, esi
mov rax, qword [rbp - 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400aaa66
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x68]
call fcn.140049bf0
test dword [rdi + 4], 0x40000
jne 0x1400aab6b
mov dword [rsp + 0x60], 4
lea rax, [0x1401fef80]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14003cdb0
test al, al
jne 0x1400aab6b
mov dword [rsp + 0x60], 4
lea rax, [0x1401fef88]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x50]
call fcn.14003cdb0
test al, al
jne 0x1400aab6b
mov dword [rsp + 0x60], 4
lea rax, [0x1401fef90]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14003cdb0
test al, al
jne 0x1400aab6b
mov dword [rsp + 0x60], 4
lea rax, [0x1401fef98]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp], xmm0
lea rdx, [rbp]
lea rcx, [rsp + 0x50]
call fcn.14003cdb0
test al, al
jne 0x1400aab6b
mov dword [rsp + 0x60], 4
lea rax, [0x1401fefa0]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x10], xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14003cdb0
test al, al
je 0x1400aab72
or dword [rdi + 4], 0x1111
or dword [rdi], 0x7177
bt ebx, 0xa
jae 0x1400aabe8
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rcx, rax
mov edx, 4
call fcn.140132de0
test eax, eax
sete r14b
mov rax, qword [rbp - 0x60]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400aabc4
cmp ecx, 0xffffffff
je 0x1400aabd6
mov ecx, esi
mov rax, qword [rbp - 0x60]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400aabd6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x60]
call fcn.140049bf0
test r14b, r14b
je 0x1400aabe2
or dword [rdi + 4], 0x400
or dword [rdi], 0x400
bt ebx, 9
jae 0x1400aac58
lea rdx, [rbp - 0x58]
mov rcx, r15
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rcx, rax
mov edx, 2
call fcn.140132de0
test eax, eax
sete r14b
mov rax, qword [rbp - 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400aac34
cmp ecx, 0xffffffff
je 0x1400aac46
mov ecx, esi
mov rax, qword [rbp - 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400aac46
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x58]
call fcn.140049bf0
test r14b, r14b
je 0x1400aac52
or dword [rdi + 4], 0x200
or dword [rdi], 0x200
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400aac78
cmp ecx, 0xffffffff
je 0x1400aac8c
mov ecx, esi
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400aac8c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400aaca8
cmp ecx, 0xffffffff
je 0x1400aacbb
mov rax, qword [rbp - 0x70]
lock xadd dword [rax], esi
cmp esi, 1
jne 0x1400aacbb
mov rcx, qword [rbp - 0x70]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140049bf0
mov eax, ebx
and eax, dword [rdi]
cmp eax, ebx
sete al
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140121c90
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret