Function at 0x140030db0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp byte [0x14009bc24], 0
jne 0x140031075
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x38], xmm1
xor edi, edi
mov word [rsp + 0x28], di
lea r8d, [rdi + 0xc]
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x28]
call fcn.140004300
nop
call fcn.140008fd0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.140009070
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140030e5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030e57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400310ff
call fcn.140046df0
movdqa xmm0, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
test rbx, rbx
je 0x1400310f2
lea rdx, [0x14007b958]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc98], rax
lea rdx, [0x14007b9a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc78], rax
lea rdx, [0x14007b978]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc90], rax
lea rdx, str.GetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc28], rax
lea rdx, str.InitializeAcl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc68], rax
lea rdx, str.GetAclInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc88], rax
lea rdx, str.GetAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc40], rax
lea rdx, str.AddAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc58], rax
lea rdx, str.DeleteAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc80], rax
lea rdx, str.SetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc60], rax
lea rdx, str.OpenProcessToken
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc30], rax
lea rdx, str.GetTokenInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc50], rax
lea rdx, str.CopySid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc38], rax
lea rdx, str.GetLengthSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc48], rax
lea rdx, str.EqualSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009bc70], rax
cmp qword [0x14009bc98], 0
je 0x140031082
cmp qword [0x14009bc78], 0
je 0x140031082
cmp qword [0x14009bc90], 0
je 0x140031082
cmp qword [0x14009bc28], 0
je 0x140031082
cmp qword [0x14009bc68], 0
je 0x140031082
cmp qword [0x14009bc88], 0
je 0x140031082
cmp qword [0x14009bc40], 0
je 0x140031082
cmp qword [0x14009bc58], 0
je 0x140031082
cmp qword [0x14009bc80], 0
je 0x140031082
cmp qword [0x14009bc60], 0
je 0x140031082
cmp qword [0x14009bc30], 0
je 0x140031082
cmp qword [0x14009bc50], 0
je 0x140031082
cmp qword [0x14009bc38], 0
je 0x140031082
cmp qword [0x14009bc48], 0
je 0x140031082
test rax, rax
je 0x140031082
mov byte [0x14009bc24], 1
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov byte [0x14009bc24], 0
mov qword [0x14009bc98], rdi
mov qword [0x14009bc78], rdi
mov qword [0x14009bc90], rdi
mov qword [0x14009bc28], rdi
mov qword [0x14009bc68], rdi
mov qword [0x14009bc88], rdi
mov qword [0x14009bc40], rdi
mov qword [0x14009bc58], rdi
mov qword [0x14009bc80], rdi
mov qword [0x14009bc60], rdi
mov qword [0x14009bc30], rdi
mov qword [0x14009bc50], rdi
mov qword [0x14009bc38], rdi
mov qword [0x14009bc48], rdi
mov qword [0x14009bc70], rdi
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.14004b0f4
int3