Function at 0x18037c9e0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp byte [0x1804db09d], 0
jne 0x18037cca8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e6740]
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.180004e70
nop
call fcn.180178c30
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180178d10
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18037ca8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18037ca8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18037ca8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
test rbx, rbx
je 0x18037cd25
lea rdx, [0x1803cdaa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db110], rax
lea rdx, [0x1803cdab8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db100], rax
lea rdx, [0x1803cb400]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db118], rax
lea rdx, str.GetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0c0], rax
lea rdx, str.InitializeAcl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0e0], rax
lea rdx, str.GetAclInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0f0], rax
lea rdx, str.GetAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db120], rax
lea rdx, str.AddAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0c8], rax
lea rdx, str.DeleteAce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0f8], rax
lea rdx, str.SetSecurityInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0e8], rax
lea rdx, str.OpenProcessToken
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db130], rax
lea rdx, str.GetTokenInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0d0], rax
lea rdx, str.CopySid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db128], rax
lea rdx, str.GetLengthSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db0d8], rax
lea rdx, str.EqualSid
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804db108], rax
cmp qword [0x1804db110], 0
je 0x18037ccb5
cmp qword [0x1804db100], 0
je 0x18037ccb5
cmp qword [0x1804db118], 0
je 0x18037ccb5
cmp qword [0x1804db0c0], 0
je 0x18037ccb5
cmp qword [0x1804db0e0], 0
je 0x18037ccb5
cmp qword [0x1804db0f0], 0
je 0x18037ccb5
cmp qword [0x1804db120], 0
je 0x18037ccb5
cmp qword [0x1804db0c8], 0
je 0x18037ccb5
cmp qword [0x1804db0f8], 0
je 0x18037ccb5
cmp qword [0x1804db0e8], 0
je 0x18037ccb5
cmp qword [0x1804db130], 0
je 0x18037ccb5
cmp qword [0x1804db0d0], 0
je 0x18037ccb5
cmp qword [0x1804db128], 0
je 0x18037ccb5
cmp qword [0x1804db0d8], 0
je 0x18037ccb5
test rax, rax
je 0x18037ccb5
mov byte [0x1804db09d], 1
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov byte [0x1804db09d], 0
mov qword [0x1804db110], rdi
mov qword [0x1804db100], rdi
mov qword [0x1804db118], rdi
mov qword [0x1804db0c0], rdi
mov qword [0x1804db0e0], rdi
mov qword [0x1804db0f0], rdi
mov qword [0x1804db120], rdi
mov qword [0x1804db0c8], rdi
mov qword [0x1804db0f8], rdi
mov qword [0x1804db0e8], rdi
mov qword [0x1804db130], rdi
mov qword [0x1804db0d0], rdi
mov qword [0x1804db128], rdi
mov qword [0x1804db0d8], rdi
mov qword [0x1804db108], rdi
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret