Function at 0x1400317d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov qword [rsp + 0x78], r9
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov r12d, eax
xor r14d, r14d
mov r13d, r14d
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x88], 7
lea r8d, [r14 + 0xc]
lea rdx, [0x140087ad8]
lea rcx, [rbp + 0x70]
call fcn.140007c80
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140031f90
nop
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
cmp rbx, r15
jne 0x140031950
test rbx, rbx
je 0x1400318c2
mov rax, qword [rsp + 0x70]
sub rax, rbx
sar rax, 2
lea rdx, [rax*4]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400318ac
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f7d
mov rcx, rbx
call fcn.14003e780
mov qword [rsp + 0x60], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400318fc
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400318f7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031f53
mov rcx, r8
call fcn.14003e780
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140031945
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140031940
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031f59
mov rcx, r8
call fcn.14003e780
mov qword [rdi + 0x10], r14
xor al, al
jmp 0x140031f1e
mov r14d, dword [rbx]
lea rdx, [rbp - 0x78]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14003196a
cmp dword [rbp - 0x78], r12d
je 0x140031975
add rbx, 4
cmp rbx, r15
je 0x140031978
jmp 0x140031950
mov r13d, r14d
mov r8d, r13d
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
lea r8, [rbp - 0x80]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140031aa5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140031a15
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400319fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f7d
call fcn.14003e780
xor ebx, ebx
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
jmp 0x140031a17
xor ebx, ebx
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140031a51
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140031a4c
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031f53
mov rcx, r8
call fcn.14003e780
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140031a9a
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140031a95
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031f59
mov rcx, r8
call fcn.14003e780
mov qword [rdi + 0x10], rbx
xor al, al
jmp 0x140031f1e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x68], 0x18
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8, [rbp - 0x68]
mov edx, 0x2000000
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140031af9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
jmp 0x1400319a8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x20], rax
mov rdx, rsi
lea rcx, [rbp + 0xb0]
call fcn.140031640
nop
mov r8, rax
lea rdx, [0x140087ad0]
lea rcx, [rbp + 0x90]
call fcn.140008bd0
nop
mov r8d, 1
lea rdx, [0x140087ad0]
mov rcx, rax
call fcn.14000b440
xor r15d, r15d
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x140031be4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031bdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f5f
call fcn.14003e780
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r15w
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x140031c44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031c3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f65
call fcn.14003e780
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r15w
cmp qword [rdi + 0x10], 0
je 0x140031d48
mov rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.140031640
nop
mov r8, rax
lea rdx, [0x140087ad4]
lea rcx, [rbp + 0x70]
call fcn.140008bd0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140031c9b
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.14000b440
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x140031ceb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031ce6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f6b
call fcn.14003e780
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r15w
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x140031d48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031d43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f71
call fcn.14003e780
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae r8, qword [rbp + 0x50]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov r14d, eax
test eax, eax
je 0x140031dc1
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140031dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
setne bl
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x140031e31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031e2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f77
call fcn.14003e780
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r15w
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140031e98
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031e85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031f7d
call fcn.14003e780
mov qword [rsp + 0x60], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140031ed2
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140031ecd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031f53
mov rcx, r8
call fcn.14003e780
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140031f17
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140031f12
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031f59
mov rcx, r8
call fcn.14003e780
mov qword [rdi + 0x10], r15
movzx eax, bl
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14003e760
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400512b4
nop
call fcn.1400512b4
nop
call fcn.1400512b4
nop
call fcn.1400512b4
nop
call fcn.1400512b4
nop
call fcn.1400512b4
nop
call fcn.1400512b4
nop
call fcn.1400512b4
int3