Function at 0x18038ad20
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp byte [0x1804f1a0d], 0
jne 0x18038afe8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803f7240]
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.180005cd0
nop
call fcn.18017dfc0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.18017e0a0
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18038adcf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18038adca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18038adca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
test rbx, rbx
je 0x18038b065
lea rdx, [0x1803dd918]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a40], rax
lea rdx, [0x1803dd858]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a30], rax
lea rdx, [0x1803db240]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a48], rax
lea rdx, str.GetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a68], rax
lea rdx, str.InitializeAcl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a10], rax
lea rdx, str.GetAclInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a20], rax
lea rdx, str.GetAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a50], rax
lea rdx, str.AddAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a70], rax
lea rdx, str.DeleteAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a28], rax
lea rdx, str.SetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a18], rax
lea rdx, str.OpenProcessToken
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a60], rax
lea rdx, str.GetTokenInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a78], rax
lea rdx, str.CopySid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a58], rax
lea rdx, str.GetLengthSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a80], rax
lea rdx, str.EqualSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1a38], rax
cmp qword [0x1804f1a40], 0
je 0x18038aff5
cmp qword [0x1804f1a30], 0
je 0x18038aff5
cmp qword [0x1804f1a48], 0
je 0x18038aff5
cmp qword [0x1804f1a68], 0
je 0x18038aff5
cmp qword [0x1804f1a10], 0
je 0x18038aff5
cmp qword [0x1804f1a20], 0
je 0x18038aff5
cmp qword [0x1804f1a50], 0
je 0x18038aff5
cmp qword [0x1804f1a70], 0
je 0x18038aff5
cmp qword [0x1804f1a28], 0
je 0x18038aff5
cmp qword [0x1804f1a18], 0
je 0x18038aff5
cmp qword [0x1804f1a60], 0
je 0x18038aff5
cmp qword [0x1804f1a78], 0
je 0x18038aff5
cmp qword [0x1804f1a58], 0
je 0x18038aff5
cmp qword [0x1804f1a80], 0
je 0x18038aff5
test rax, rax
je 0x18038aff5
mov byte [0x1804f1a0d], 1
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov byte [0x1804f1a0d], 0
mov qword [0x1804f1a40], rdi
mov qword [0x1804f1a30], rdi
mov qword [0x1804f1a48], rdi
mov qword [0x1804f1a68], rdi
mov qword [0x1804f1a10], rdi
mov qword [0x1804f1a20], rdi
mov qword [0x1804f1a50], rdi
mov qword [0x1804f1a70], rdi
mov qword [0x1804f1a28], rdi
mov qword [0x1804f1a18], rdi
mov qword [0x1804f1a60], rdi
mov qword [0x1804f1a78], rdi
mov qword [0x1804f1a58], rdi
mov qword [0x1804f1a80], rdi
mov qword [0x1804f1a38], rdi
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret