Function at 0x140037d90
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 [0x1400be010]
xor rax, rsp
mov qword [rbp + 0x240], rax
lea rcx, str.OpenTaskmgrWindow_Start
call fcn.140036ce0
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 0x140037e16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken_Fail:__u
call fcn.140037200
jmp 0x140038057
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 0x140037e5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DuplicateTokenEx_Fail:__u
call fcn.140037200
jmp 0x140038057
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 0x140037e9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetTokenInformation_Fail:__u
call fcn.140037200
jmp 0x140038057
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140037ecd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateEnvironmentBlock_Fail:__u_n
call fcn.140037200
jmp 0x140038057
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.140059e60
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 [0x1400ac8a0]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], bx
lea r8d, [rax + 6]
lea rdx, str.taskmgr.exe
lea rcx, [rbp + 0x18]
call fcn.140001a50
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x40]
call fcn.140059e60
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
mov edx, 0x100
lea rcx, [rbp + 0x40]
call fcn.140067d98
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 0x140038006
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_taskmgr.exe_Fail:__u
call fcn.140037200
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140038057
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038052
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400380aa
jmp 0x140038052
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 0x140038057
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038052
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400380a4
call fcn.140055724
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.OpenTaskmgrWindow_End_r_n
call fcn.140036ce0
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140055700
mov rbx, qword [rsp + 0x360]
add rsp, 0x350
pop rbp
ret
call fcn.14005c4ec
int3
call fcn.14005c4ec
int3