Function at 0x180051820
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1801d0100]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov edi, edx
mov rbx, rcx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x180051a7b
mov qword [rbp - 0x68], r14
lea rdx, [rbp - 0x68]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x180051a7b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x20], Ordinal_106
mov r15d, 1
mov dword [rbp + 0x1c], r15d
mov word [rbp + 0x20], r14w
mov esi, r14d
mov eax, Ordinal_20
test edi, edi
cmove esi, eax
lea rax, str.cmd.exe__c_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], Ordinal_21
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1800518eb
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x78], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x60], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.1800093a0
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova r8, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180051a3a
mov rcx, qword [rbp - 0x60]
test edi, edi
je 0x1800519d7
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call fcn.180025f90
mov rax, qword [rsp + 0x60]
jmp 0x1800519fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call fcn.180025f90
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
movabs rdx, 0x7fffffffc46535ff
cmp rax, rdx
je 0x180051a1f
mov ecx, 0xff
cmovge ecx, r15d
test cl, cl
jns 0x180051a1f
add rax, 0x3b9aca00
jmp 0x180051a29
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.18002dca0
mov bl, 1
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x180051a76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051a71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180051aa6
call fcn.18007bb20
movzx eax, bl
jmp 0x180051a7d
xor al, al
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.18007bb00
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18008a6e4
int3