Function at 0x140004840
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x2d0
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov qword [rsp + 0x38], rsp
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x68], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
mov word [rsp + 0x70], r14w
cmp r14w, word [rcx + 8]
je 0x140004e19
test rdx, rdx
je 0x140004e19
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140004e19
cmp qword [rbx + 0x40], 1
jb 0x140004e19
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140045d90]
mov edi, 1
mov r8d, edi
xor edx, edx
lea rcx, [0x140045d80]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140004e1e
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
lea r8, [0x140045da0]
mov rdx, rsi
call qword [rax + 0x30]
test eax, eax
js 0x14000495f
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x50], r14
mov rcx, rsi
call fcn.140004e50
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14000495f
lea rdx, [0x140004956]
mov rcx, rsp
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
lea r9, [0x140045da0]
lea r8, [0x140045d70]
mov rdx, rsi
call qword [rax + 0x40]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1400049a9
lea rdx, [0x1400049a0]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x140045da0]
call qword [rax]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1400049e3
lea rdx, [0x1400049da]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x50], r14
lea rdx, [rbx + 0x30]
cmp qword [rdx + 0x18], 8
jb 0x140004a01
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x100]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004a33
lea rdx, [0x140004a2a]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
cmp qword [rbx + 0x60], 0
jbe 0x140004a7a
lea rdx, [rbx + 0x50]
cmp qword [rdx + 0x18], 8
jb 0x140004a48
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x110]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004a7a
lea rdx, [0x140004a71]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
cmp qword [rbx + 0x80], 0
jbe 0x140004ac4
lea rdx, [rbx + 0x70]
cmp qword [rdx + 0x18], 8
jb 0x140004a92
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x120]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004ac4
lea rdx, [0x140004abb]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
cmp byte [rbx + 0xf0], 0
je 0x140004b2b
mov esi, 0x1000
mov dword [rsp + 0x40], esi
cmp qword [rbx + 0xe0], 0
jbe 0x140004bc6
lea rdx, [rbx + 0xd0]
cmp qword [rdx + 0x18], 8
jb 0x140004af5
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004bc6
lea rdx, [0x140004b22]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov esi, 0x2000
mov dword [rsp + 0x40], esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call fcn.14002f8c0
mov dword [rsp + 0x74], 0x104
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140004b85
lea rdx, [0x140004b7b]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, 1
jmp 0x140004e1e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
call qword [rax + 0xf0]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004ad6
lea rdx, [0x140004bbd]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
cmp dword [rbx + 0xf4], 0
je 0x140004bd6
or esi, 1
mov dword [rsp + 0x40], esi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov edx, esi
call qword [rax + 0xe0]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004c0a
lea rdx, [0x140004c01]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004c43
lea rdx, [0x140004c3a]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov eax, 0x30
mov word [rsp + 0x78], ax
movzx eax, word [rbx + 8]
mov word [rsp + 0x7c], ax
movzx eax, word [rbx + 0xa]
mov word [rsp + 0x7e], ax
movzx edx, word [rbx + 0xe]
mov word [rsp + 0x80], dx
movzx eax, word [rbx + 0x10]
mov word [rsp + 0x88], ax
movzx eax, word [rbx + 0x12]
mov word [rsp + 0x8a], ax
movzx eax, word [rbx + 0x18]
cmp r14w, ax
je 0x140004cb5
or dword [rsp + 0x94], 1
mov word [rsp + 0x82], ax
movzx eax, word [rbx + 0x1a]
mov word [rsp + 0x84], ax
movzx eax, word [rbx + 0x1e]
mov word [rsp + 0x86], ax
mov ecx, dword [rbx + 0x28]
sub ecx, 1
je 0x140004d2f
sub ecx, 1
je 0x140004d1e
sub ecx, 1
je 0x140004cf2
cmp ecx, 1
jne 0x140004d37
mov dword [rsp + 0x98], 3
lea ecx, [rdx - 1]
shl edi, cl
mov dword [rsp + 0x9c], edi
mov eax, 0xfff
mov word [rsp + 0xa0], ax
jmp 0x140004d37
mov dword [rsp + 0x98], 2
movzx eax, word [rbx + 0xc]
lea rcx, [0x140050a30]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x9e], ax
mov word [rsp + 0x9c], di
jmp 0x140004d37
mov dword [rsp + 0x98], edi
mov word [rsp + 0x9c], di
jmp 0x140004d37
mov dword [rsp + 0x98], r14d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x18]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004d6b
lea rdx, [0x140004d62]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x140044610]
call qword [rax]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004da2
lea rdx, [0x140004d9c]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x30]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x140004dd5
lea rdx, [0x140004dcf]
mov rcx, qword [rsp + 0x38]
call fcn.1400423a8
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140004e1e
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140004de5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140004df5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004e05
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140004e15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, ebx
jmp 0x140004e1e
mov eax, 0x80004005
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400111c0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop r14
pop rdi
pop rsi
ret