Function at 0x1400f70a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x28], 1
mov rdx, rbx
xor ecx, ecx
call fcn.1400f5ca0
test al, al
je 0x1400f7372
lea rcx, str.advapi32.dll
call fcn.1400f3da0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 8]
call fcn.14009ab70
test rax, rax
je 0x1400f7108
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rbx
xor ecx, ecx
call fcn.1400f5ca0
test al, al
jne 0x1400f7496
lea rdx, str.SetEntriesInAclW
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.GetFileSecurityW
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.SetFileSecurityW
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
lea rdx, str.LookupAccountSidW
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xd8], rax
lea rdx, str.GetExplicitEntriesFromAclW
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x108], rax
lea rdx, [0x140180098]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, [0x1401800b0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.InitializeSecurityDescriptor
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
lea rdx, str.SetSecurityDescriptorDacl
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
lea rdx, [0x140180108]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
lea rdx, str.AllocateAndInitializeSid
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
lea rdx, [0x140180148]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x88], rax
lea rdx, str.OpenThreadToken
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc8], rax
lea rdx, str.GetTokenInformation
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xd0], rax
lea rdx, [0x140180178]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
lea rdx, [0x140180188]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x98], rax
lea rdx, [0x140180198]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa0], rax
lea rdx, str.AddAccessAllowedAce
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa8], rax
lea rdx, [0x1401801c8]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb0], rax
lea rdx, [0x1401801d8]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb8], rax
lea rdx, str.QueryServiceStatusEx
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc0], rax
lea rdx, [0x140180200]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xe0], rax
lea rdx, str.DeleteAce
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xe8], rax
lea rdx, [0x140180218]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xf0], rax
lea rdx, [0x140180228]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xf8], rax
lea rdx, str.SetSecurityDescriptorControl
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x100], rax
cmp qword [rbx + 0x40], 0
je 0x1400f7496
cmp qword [rbx + 0x48], 0
je 0x1400f7496
cmp qword [rbx + 0x50], 0
je 0x1400f7496
cmp qword [rbx + 0x58], 0
je 0x1400f7496
cmp qword [rbx + 0x60], 0
je 0x1400f7496
cmp qword [rbx + 0x68], 0
je 0x1400f7496
cmp qword [rbx + 0x70], 0
je 0x1400f7496
cmp qword [rbx + 0x78], 0
je 0x1400f7496
cmp qword [rbx + 0x80], 0
je 0x1400f7496
cmp qword [rbx + 0x88], 0
je 0x1400f7496
cmp qword [rbx + 0x90], 0
je 0x1400f7496
cmp qword [rbx + 0x98], 0
je 0x1400f7496
cmp qword [rbx + 0xa0], 0
je 0x1400f7496
cmp qword [rbx + 0xa8], 0
je 0x1400f7496
cmp qword [rbx + 0xb0], 0
je 0x1400f7496
cmp qword [rbx + 0xb8], 0
je 0x1400f7496
cmp qword [rbx + 0xc0], 0
je 0x1400f7496
cmp qword [rbx + 0xc8], 0
je 0x1400f7496
cmp qword [rbx + 0xd0], 0
je 0x1400f7496
cmp qword [rbx + 0xd8], 0
je 0x1400f7496
cmp qword [rbx + 0xf8], 0
je 0x1400f7496
cmp qword [rbx + 0xe0], 0
je 0x1400f7496
cmp qword [rbx + 0xe8], 0
je 0x1400f7496
cmp qword [rbx + 0xf0], 0
je 0x1400f7496
cmp qword [rbx + 0x100], 0
je 0x1400f7496
cmp qword [rbx + 0x108], 0
je 0x1400f7496
mov bl, 1
jmp 0x1400f7498
xor bl, bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret