Function at 0x18037f1d0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp byte [0x1804de0cd], 0
jne 0x18037f498
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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.180004ea0
nop
call fcn.1801791f0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1801792d0
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18037f27f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18037f27a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18037f27a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
test rbx, rbx
je 0x18037f515
lea rdx, [0x1803cfaa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de120], rax
lea rdx, [0x1803cfab0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de110], rax
lea rdx, [0x1803cd398]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de128], rax
lea rdx, str.GetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de148], rax
lea rdx, str.InitializeAcl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de0f0], rax
lea rdx, str.GetAclInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de100], rax
lea rdx, str.GetAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de130], rax
lea rdx, str.AddAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de150], rax
lea rdx, str.DeleteAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de108], rax
lea rdx, str.SetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de0f8], rax
lea rdx, str.OpenProcessToken
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de140], rax
lea rdx, str.GetTokenInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de158], rax
lea rdx, str.CopySid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de138], rax
lea rdx, str.GetLengthSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de160], rax
lea rdx, str.EqualSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804de118], rax
cmp qword [0x1804de120], 0
je 0x18037f4a5
cmp qword [0x1804de110], 0
je 0x18037f4a5
cmp qword [0x1804de128], 0
je 0x18037f4a5
cmp qword [0x1804de148], 0
je 0x18037f4a5
cmp qword [0x1804de0f0], 0
je 0x18037f4a5
cmp qword [0x1804de100], 0
je 0x18037f4a5
cmp qword [0x1804de130], 0
je 0x18037f4a5
cmp qword [0x1804de150], 0
je 0x18037f4a5
cmp qword [0x1804de108], 0
je 0x18037f4a5
cmp qword [0x1804de0f8], 0
je 0x18037f4a5
cmp qword [0x1804de140], 0
je 0x18037f4a5
cmp qword [0x1804de158], 0
je 0x18037f4a5
cmp qword [0x1804de138], 0
je 0x18037f4a5
cmp qword [0x1804de160], 0
je 0x18037f4a5
test rax, rax
je 0x18037f4a5
mov byte [0x1804de0cd], 1
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov byte [0x1804de0cd], 0
mov qword [0x1804de120], rdi
mov qword [0x1804de110], rdi
mov qword [0x1804de128], rdi
mov qword [0x1804de148], rdi
mov qword [0x1804de0f0], rdi
mov qword [0x1804de100], rdi
mov qword [0x1804de130], rdi
mov qword [0x1804de150], rdi
mov qword [0x1804de108], rdi
mov qword [0x1804de0f8], rdi
mov qword [0x1804de140], rdi
mov qword [0x1804de158], rdi
mov qword [0x1804de138], rdi
mov qword [0x1804de160], rdi
mov qword [0x1804de118], rdi
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret