Function at 0x1401ad3a0
Capabilities:
Acquire debug privileges
Schedule task via itaskscheduler

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x2f]
sub rsp, 0xa0
xor r13d, r13d
mov rdi, r9
mov rbx, r8
lea rax, [rbp - 0x41]
mov r12, rdx
lea r9, [0x140340f28]
lea r8d, [r13 + 1]
lea rcx, [0x14035c490]
xor edx, edx
mov qword [rbp - 0x41], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rbp - 0x41]
test eax, eax
jns 0x1401ad408
test rcx, rcx
je 0x1401ad401
mov rax, qword [rcx]
call qword [rax + 0x10]
xor al, al
jmp 0x1401ad79a
mov rax, qword [rcx]
mov rdx, qword [r12]
mov qword [rsp + 0xc0], rsi
mov rsi, qword [rbp + 0x7f]
lea r9, [0x140340f88]
lea r8, [0x14035c480]
mov qword [rsp + 0x20], rsi
call qword [rax + 0x40]
test eax, eax
js 0x1401ad6da
mov rcx, qword [rsi]
mov rdx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x100]
test eax, eax
js 0x1401ad6da
mov rcx, qword [rsi]
mov rdx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + VarUI4FromDisp]
test eax, eax
js 0x1401ad6da
mov rcx, qword [rsi]
mov rax, qword [rbp + 0x6f]
mov r8, qword [rcx]
mov rdx, qword [rax]
call qword [r8 + RegisterTypeLib]
test eax, eax
js 0x1401ad6da
mov rcx, qword [rsi]
mov rax, qword [rbp + 0x77]
mov r8, qword [rcx]
mov rdx, qword [rax]
call qword [r8 + VariantChangeTypeEx]
test eax, eax
js 0x1401ad6da
mov rcx, qword [rsi]
mov edx, 0x2000
mov rax, qword [rcx]
call qword [rax + 0xe0]
test eax, eax
js 0x1401ad6da
lea rcx, [rbp - 0x29]
call fcn.1401a7fe0
lea rdx, str.SeDebugPrivilege
lea rcx, [rbp + 0x17]
mov dword [rbp + 0xf], 1
call fcn.140001eb0
lea r8, [rbp + 0xf]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.1401a7e60
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad50a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [0x14042f270]
lea rcx, [0x14042f270]
call qword [rax + 0x18]
lea rcx, [0x14042f270]
add rax, 0x18
mov qword [rbp - 0x31], rax
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rcx, [0x14042f270]
add rax, 0x18
mov qword [rbp - 0x39], rax
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x31]
lea rbx, [rax + 0x18]
mov qword [rbp + 7], rbx
call fcn.1401ae200
test al, al
jne 0x1401ad56f
lea rcx, [rbp - 0x29]
jmp 0x1401ad649
lea r8, [0x14033ff78]
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x27]
call fcn.14001db30
lea r8, [rbp - 0x39]
lea rcx, [rbp + 0x1f]
mov rdx, rax
call fcn.14000f920
add rbx, 0xffffffffffffffe8
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x1401ad5eb
cmp dword [rbx + 0x10], r13d
jl 0x1401ad5de
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1401ad5de
call fcn.1400026b0
mov ecx, edi
mov r12, rax
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401ad5d3
mov rcx, qword [rbx]
mov rdx, rbx
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov qword [rbp + 7], rax
jmp 0x1401ad5eb
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 7]
call fcn.140002560
mov rdx, qword [rbp + 0x1f]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad609
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x27]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad627
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi]
mov rbx, qword [rbp + 7]
xor r8d, r8d
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0xf0]
lea rcx, [rbp - 0x29]
test eax, eax
jns 0x1401ad6f0
call fcn.1401a7f10
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad668
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x39]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad686
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1401ad6a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x19]
lea rax, vtable.Cxx::Core::Utils::CAppPrivileges.0
mov qword [rbp - 0x29], rax
test rcx, rcx
je 0x1401ad6bb
call fcn.140250354
mov rcx, qword [rbp - 0x21]
mov qword [rbp - 9], r13
mov qword [rbp - 0x11], r13
mov qword [rbp - 0x19], r13
test rcx, rcx
je 0x1401ad6da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x21], r13
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1401ad6e9
mov rax, qword [rcx]
call qword [rax + 0x10]
xor al, al
jmp 0x1401ad792
call fcn.1401a7f10
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad70f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x39]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ad72d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1401ad749
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x19]
lea rax, vtable.Cxx::Core::Utils::CAppPrivileges.0
mov qword [rbp - 0x29], rax
test rcx, rcx
je 0x1401ad762
call fcn.140250354
mov rcx, qword [rbp - 0x21]
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
test rcx, rcx
je 0x1401ad781
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x21], r13
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1401ad790
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rsi, qword [rsp + 0xc0]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret