Function at 0x1401ddf90
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rdi, rcx
xor esi, esi
mov qword [rbp + 0x7f], rsi
mov qword [rbp - 0x49], rsi
lea rax, [0x140346ce0]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rsi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x140300de0]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x140300df0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1401de006
mov edx, eax
lea rcx, str.CLSID_CTaskScheduler__08x_r_n
call fcn.1402b7a88
jmp 0x1401de32c
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
lea rdx, [rbp - 0x49]
call qword [rax + 0x28]
test eax, eax
js 0x1401de32c
call fcn.1400eb080
mov qword [rbp + 0x6f], rsi
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftSchedulingAgent
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401de0ab
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x1401de0ab
mov rcx, qword [rbp + 0x6f]
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [rbx], rax
mov qword [rbx + 8], rcx
lea r8, [rbp - 0x59]
lea rdx, str.TasksFolder
mov rcx, rbx
call fcn.1400d8ae0
test al, al
je 0x1401de09e
lea rdx, [rbp - 0x59]
call fcn.1401d4ec0
mov rdx, qword [rbp - 0x59]
lea rcx, str.TaskFolder:__ls_r_n
call fcn.1402b7a88
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
cmp dword [rbp - 0x4d], 0
jne 0x1401de0c2
lea rcx, str.Unable_to_resolve_TaskFolder_r_n
call fcn.1402b7a88
jmp 0x1401de32c
mov qword [rbp + 0x77], rsi
mov dword [rbp + 0x6f], esi
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
lea r9, [rbp + 0x6f]
lea r8, [rbp + 0x77]
mov edx, 1
call qword [rax + 0x18]
test eax, eax
jne 0x1401de32c
mov rdx, qword [rbp + 0x77]
test rdx, rdx
je 0x1401de0c2
cmp dword [rbp + 0x6f], eax
jbe 0x1401de0c2
mov qword [rbp - 0x39], rsi
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
lea r9, [rbp - 0x31]
lea r8, [0x140300dd0]
mov rdx, qword [rdx]
call qword [rax + 0x30]
test eax, eax
js 0x1401de310
mov qword [rbp - 0x41], rsi
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
call qword [rax + pe_nt_image_headers64]
test eax, eax
js 0x1401de1ce
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x29]
call fcn.1401faae0
nop
lea rdx, [rbp - 0x29]
call fcn.1401d4ec0
mov r8b, 1
lea rdx, [rbp - 0x29]
mov rcx, qword [rdi + 8]
call fcn.1400f8340
mov rbx, rax
test rax, rax
je 0x1401de1b4
mov rdx, qword [rbp + 0x77]
mov rdx, qword [rdx]
lea rcx, [rbp + 7]
call fcn.1401faae0
nop
lea r8, [rbp + 7]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.1400d2ba0
nop
cmp dword [rbp + 0xf], 0
jle 0x1401de198
mov rcx, qword [rbp + 7]
call fcn.1402b7350
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.1400eb2a0
nop
cmp dword [rbp - 0x11], 0
jle 0x1401de1b4
mov rcx, qword [rbp - 0x19]
call fcn.1402b7350
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
cmp dword [rbp - 0x21], 0
jle 0x1401de1ce
mov rcx, qword [rbp - 0x29]
call fcn.1402b7350
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
lea rdx, [rbp - 0x39]
call qword [rax + 0x118]
test eax, eax
js 0x1401de310
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x69]
call fcn.1401faae0
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x69]
call fcn.1401ff5a0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x69]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x61]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x69]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x69]
call fcn.1401fde50
nop
cmp dword [rbp + 0x2f], 0
jle 0x1401de245
mov rcx, qword [rbp + 0x27]
call fcn.1402b7350
lea rdx, [rbp - 0x69]
call fcn.1401d4ec0
cmp dword [rbp - 0x5d], 0
je 0x1401de2f6
mov r8d, 1
lea rdx, [0x14034cfc4]
lea rcx, [rbp - 0x69]
call fcn.1401ff2c0
test al, al
jne 0x1401de2f6
mov r8d, 1
lea rdx, [0x14034ef8c]
lea rcx, [rbp - 0x69]
call fcn.1401ff2c0
test al, al
jne 0x1401de2f6
mov r8b, 1
lea rdx, [rbp - 0x69]
mov rcx, qword [rdi + 8]
call fcn.1400f8340
mov rbx, rax
test rax, rax
je 0x1401de2f6
mov rdx, qword [rbp + 0x77]
mov rdx, qword [rdx]
lea rcx, [rbp - 9]
call fcn.1401faae0
nop
lea r8, [rbp - 9]
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x17]
call fcn.1400d2ba0
nop
cmp dword [rbp - 1], 0
jle 0x1401de2da
mov rcx, qword [rbp - 9]
call fcn.1402b7350
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.1400eb2a0
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401de2f6
mov rcx, qword [rbp + 0x17]
call fcn.1402b7350
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
cmp dword [rbp - 0x61], 0
jle 0x1401de310
mov rcx, qword [rbp - 0x69]
call fcn.1402b7350
mov rcx, qword [rbp + 0x77]
mov rcx, qword [rcx]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1401de0c2
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1401de33b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x1401de34b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp dword [rbp - 0x51], 0
jle 0x1401de35a
mov rcx, qword [rbp - 0x59]
call fcn.1402b7350
mov al, 1
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret