Function at 0x140042030
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x360], rbx
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rbp + 0x240], rax
lea rcx, str.OpenTaskschdWindow_Start
call fcn.140040a00
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400420b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken_Fail:__u
call fcn.140040f20
jmp 0x1400422f7
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1400420fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DuplicateTokenEx_Fail:__u
call fcn.140040f20
jmp 0x1400422f7
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x10], eax
mov r9d, 4
lea r8, [rbp + 0x10]
lea edx, [r9 + 8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x14004213d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetTokenInformation_Fail:__u
call fcn.140040f20
jmp 0x1400422f7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x14004216d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateEnvironmentBlock_Fail:__u_n
call fcn.140040f20
jmp 0x1400422f7
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.140062890
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x60], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x24], 1
mov eax, 5
mov word [rbp - 0x20], ax
movdqa xmm0, xmmword [0x1400b9680]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], bx
lea r8d, [rax + 0xf]
lea rdx, str.mmc.exe_taskschd.msc
lea rcx, [rbp + 0x18]
call fcn.140001a40
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x40]
call fcn.140062890
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
mov edx, 0x100
lea rcx, [rbp + 0x40]
call fcn.140070b94
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, str.C:WindowsSystem32_
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400422a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_taskschd.msc_Fail:__u
call fcn.140040f20
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x1400422f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400422f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004234a
jmp 0x1400422f2
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x1400422f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400422f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042344
call fcn.14005da54
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.OpenTaskschdWindow_End_r_n
call fcn.140040a00
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14005da30
mov rbx, qword [rsp + 0x360]
add rsp, 0x350
pop rbp
ret
call fcn.140064eec
int3
call fcn.140064eec
int3