Function at 0x140221f90
Capabilities:
Get session user name
Query environment variable
Schedule task via itaskscheduler

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
xor ecx, ecx
mov r14, r9
mov rsi, r8
mov rbx, rdx
xor edi, edi
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
ja 0x1402222a4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x2a0], r15
mov r15d, 1
mov qword [rsp + 0x20], rax
mov r8d, r15d
lea r9, [0x1402c2e20]
xor edx, edx
lea rcx, [0x1402c2e40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140222296
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
lea r9, [0x1402c2e10]
mov qword [rsp + 0x20], rdx
lea r8, [0x1402c2e30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jns 0x140222054
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x38]
lea r8, [0x1402c2e10]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rbx, qword [rbp + 0x1e0]
jmp 0x140222063
mov rbx, qword [rbp + 0x1e0]
cmp rbx, 0xffffffffffffffff
cmove rbx, rdi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14022228b
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x100]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rbp + 0x1c0]
mov rax, qword [rcx]
test rdx, rdx
jne 0x140222098
lea rdx, [0x1402849c8]
call qword [rax + 0x110]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rbp + 0x1d8]
mov rax, qword [rcx]
test rdx, rdx
jne 0x1402220b9
lea rdx, [0x1402849c8]
call qword [rax + SysAllocStringByteLen]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov edx, dword [rsp + 0x30]
mov r10d, dword [rbp + 0x1d0]
and edx, 0xfffffffb
test r10d, r10d
je 0x14022210d
mov rcx, qword [rsp + 0x38]
or edx, 0x10
mov dword [rsp + 0x30], edx
mov r8d, r10d
shr r8d, 0x10
movzx edx, r10w
mov r9, qword [rcx]
call qword [r9 + 0x50]
mov edx, dword [rsp + 0x30]
jmp 0x140222110
and edx, 0xffffffef
test rbx, rbx
jne 0x14022218d
bts edx, 0xd
mov dword [rsp + 0x44], 0x104
mov dword [rsp + 0x30], edx
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, str.SYSTEM
lea rcx, [rsp + 0x70]
call fcn.140252b94
lea rdx, [rsp + 0x70]
test eax, eax
jne 0x14022216c
mov r8d, 0x104
lea rcx, str._USERDOMAIN__USERNAME_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x70]
jmp 0x1402221a5
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], 0x104
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
xor r8d, r8d
lea rdx, [rsp + 0x70]
jmp 0x1402221a5
cmp rbx, 0xffffffffffffffff
je 0x1402221b7
mov r8, qword [rbp + 0x1e8]
btr edx, 0xd
mov dword [rsp + 0x30], edx
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0xf0]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov eax, edx
bts eax, 0xc
btr edx, 0xc
cmp dword [rbp + 0x1c8], edi
cmovne edx, eax
mov dword [rsp + 0x30], edx
mov rax, qword [rcx]
call qword [rax + 0xe0]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
movzx ebx, di
cmp di, word [rsp + 0x40]
jae 0x140222217
nop word [rax + rax]
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
inc bx
cmp bx, word [rsp + 0x40]
jb 0x140222200
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x60]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x58]
lea rdx, [0x1402d71a0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140222275
mov rcx, qword [rsp + 0x58]
mov r8d, r15d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovns edi, r15d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r15, qword [rsp + 0x2a0]
lea r11, [rsp + 0x280]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret