Function at 0x140003820
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x6c], 0x14
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], r14d
mov ebx, r14d
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x8c], ebx
mov word [rsp + 0x90], 0x500
lea ecx, [r14 + 2]
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400038dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140003abc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003abc
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, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x8c]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140003abc
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140003abc
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140003abc
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 0x140003abc
mov r8d, 2
mov edx, esi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x140003abc
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 0x140003abc
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140003abc
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 0x140003abc
mov dword [rsp + 0x98], 1
mov qword [rsp + 0x9c], 2
mov dword [rsp + 0xa4], 3
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
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 + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
jne 0x140003ab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x140043ac0]
mov edx, 0xc8
lea rcx, [rsp + 0xc0]
call fcn.140003b20
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140003abc
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
test rdi, rdi
je 0x140003aca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140003ad8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140003ae8
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400150c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret