Function at 0x180003a70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x18004b058]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180003abe
lea eax, [r14 + 0x1f]
jmp 0x180003f24
lea r8, [rbp - 0x58]
mov edx, 0x20
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180003b0c
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [0x180042908]
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180003b14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x180003f22
lea rdx, [rbp - 0x50]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x180003f1a
lea r8d, [rdi + 1]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x58]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x180003f06
mov dword [rbp - 0x30], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
lea rax, str.winsta0default
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.180004b10
nop
lea r8d, [rdi + 7]
lea rdx, str.en_EN_
mov rcx, rax
call fcn.18000d520
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180003bf3
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003bee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003f56
call fcn.1800115b0
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x90]
sub rax, rcx
cmp rax, 7
jb 0x180003f5c
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rax, qword [rbp + 0x80]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 7
lea r9, str._C_cd__
lea rcx, [rsp + 0x60]
call fcn.18000f5f0
nop
mov r8d, 0x1d
lea rdx, str.___start_MpDlpCmd.exe__exit
lea rcx, [rsp + 0x60]
call fcn.18000d520
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180003cdb
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003cd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003f62
call fcn.1800115b0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x70]
add rsi, rdx
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rbx, qword [rbp + 0x60]
mov qword [rbp + 0x40], r14
mov rcx, r14
mov qword [rbp + 0x50], rcx
mov r9d, 7
mov qword [rbp + 0x58], r9
mov rdx, rsi
sub rdx, rbx
cmp rdx, 8
jb 0x180003d46
lea rcx, [rbp + 0x40]
call fcn.18000e180
mov rcx, r14
mov qword [rbp + 0x50], rcx
mov r9, qword [rbp + 0x58]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x60], rax
cmp rbx, rsi
je 0x180003da2
movsx edx, byte [rbx]
cmp rcx, r9
jae 0x180003d7c
lea rax, [rcx + 1]
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x40]
cmp r9, 8
cmovae rax, qword [rbp + 0x40]
mov word [rax + rcx*2], dx
mov word [rax + rcx*2 + 2], r14w
jmp 0x180003d90
movzx r9d, dx
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x40]
call fcn.18000e2f0
inc rbx
mov r9, qword [rbp + 0x58]
cmp rbx, rsi
je 0x180003da2
mov rcx, qword [rbp + 0x50]
jmp 0x180003d53
lea r8, [rbp + 0x40]
cmp r9, 8
cmovae r8, qword [rbp + 0x40]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000480
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, str.cmd.exe
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x180003e0f
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180003e17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x180003e61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003e5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003f68
call fcn.1800115b0
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r14w
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x180003ead
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003ea8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003f6e
call fcn.1800115b0
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x180003f0e
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003ef5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003f50
call fcn.1800115b0
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180003f22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180003f22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180011590
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800193ac
nop
call fcn.1800193ac
nop
call fcn.180001290
nop
call fcn.1800193ac
int3
call fcn.1800193ac
nop
call fcn.1800193ac
int3