Function at 0x140018f80
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov esi, ecx
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], 0x14
mov edi, r14d
mov qword [r11 - 0x128], r14
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x70], r14d
mov dword [r11 - 0x100], r14d
xor eax, eax
mov qword [r11 - 0xfc], rax
mov qword [r11 - 0xf4], rax
mov dword [r11 - 0x110], r14d
mov qword [r11 - 0x10c], rax
mov dword [rsp + 0xa4], eax
mov ebx, r14d
mov qword [r11 - 0x120], rbx
mov dword [rsp + 0x90], eax
mov word [rsp + 0x94], 0x500
lea ecx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140019075
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14001924d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001924d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, esi
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14001924d
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14001924d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14001924d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea esi, [rax + 0x10]
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14001924d
mov r8d, 2
mov edx, esi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x14001924d
mov r9, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x14001924d
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14001924d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
je 0x14001924d
mov dword [rsp + 0x98], 1
mov qword [rsp + 0x9c], 2
mov dword [rsp + 0xa4], 3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
jne 0x140019246
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.AccessCheck___failed_with_error__lu_n
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001924d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
test rdi, rdi
je 0x14001925b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140019269
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140019279
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140019289
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14001ccd0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret