Function at 0x18037d6c0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp byte [0x1804dd0dd], 0
jne 0x18037d988
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e7600]
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.180178b40
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180178c20
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18037d76f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18037d76a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18037d76a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
test rbx, rbx
je 0x18037da05
lea rdx, [0x1803cea08]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd170], rax
lea rdx, [0x1803cea18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd160], rax
lea rdx, [0x1803cc3f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd108], rax
lea rdx, str.GetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd120], rax
lea rdx, str.InitializeAcl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd140], rax
lea rdx, str.GetAclInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd150], rax
lea rdx, str.GetAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd100], rax
lea rdx, str.AddAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd128], rax
lea rdx, str.DeleteAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd158], rax
lea rdx, str.SetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd148], rax
lea rdx, str.OpenProcessToken
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd118], rax
lea rdx, str.GetTokenInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd130], rax
lea rdx, str.CopySid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd110], rax
lea rdx, str.GetLengthSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd138], rax
lea rdx, str.EqualSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804dd168], rax
cmp qword [0x1804dd170], 0
je 0x18037d995
cmp qword [0x1804dd160], 0
je 0x18037d995
cmp qword [0x1804dd108], 0
je 0x18037d995
cmp qword [0x1804dd120], 0
je 0x18037d995
cmp qword [0x1804dd140], 0
je 0x18037d995
cmp qword [0x1804dd150], 0
je 0x18037d995
cmp qword [0x1804dd100], 0
je 0x18037d995
cmp qword [0x1804dd128], 0
je 0x18037d995
cmp qword [0x1804dd158], 0
je 0x18037d995
cmp qword [0x1804dd148], 0
je 0x18037d995
cmp qword [0x1804dd118], 0
je 0x18037d995
cmp qword [0x1804dd130], 0
je 0x18037d995
cmp qword [0x1804dd110], 0
je 0x18037d995
cmp qword [0x1804dd138], 0
je 0x18037d995
test rax, rax
je 0x18037d995
mov byte [0x1804dd0dd], 1
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov byte [0x1804dd0dd], 0
mov qword [0x1804dd170], rdi
mov qword [0x1804dd160], rdi
mov qword [0x1804dd108], rdi
mov qword [0x1804dd120], rdi
mov qword [0x1804dd140], rdi
mov qword [0x1804dd150], rdi
mov qword [0x1804dd100], rdi
mov qword [0x1804dd128], rdi
mov qword [0x1804dd158], rdi
mov qword [0x1804dd148], rdi
mov qword [0x1804dd118], rdi
mov qword [0x1804dd130], rdi
mov qword [0x1804dd110], rdi
mov qword [0x1804dd138], rdi
mov qword [0x1804dd168], rdi
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret