Function at 0x140039180
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140098080]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r15, rdx
mov rdi, rcx
mov r14, qword [rbp + 0xd0]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], eax
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
movups xmm1, xmmword [str.WinSta0Default]
movups xmmword [rbp + 0x58], xmm1
movups xmm0, xmmword [0x14005bab8]
movups xmmword [rbp + 0x68], xmm0
lea rax, [rbp + 0x58]
test r8b, r8b
cmove rax, qword [rbp - 0x50]
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movdqa xmm1, xmmword [0x14008ea00]
movdqu xmmword [rbp + 0x20], xmm1
xor r12d, r12d
mov word [rbp + 0x10], r12w
mov rsi, qword [rcx + 0x68]
mov rbx, qword [rcx + 0x60]
cmp rbx, rsi
je 0x140039281
nop word [rax + rax]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14003924d
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140002e90
add rbx, 0x20
cmp rbx, rsi
jne 0x140039240
mov r8d, 0x400
movzx eax, byte [rdi + 0x7d]
cmp al, 1
jne 0x140039297
mov r8d, 0x410
jmp 0x1400392aa
cmp al, 2
jne 0x1400392aa
mov r8d, 0x8000400
or dword [rbp - 0x24], 1
mov word [rbp - 0x20], r12w
lea rax, [rdi + 0x20]
cmp qword [rax + 0x10], 0
jne 0x1400392ba
mov rax, r12
jmp 0x1400392c4
cmp qword [rax + 0x18], 7
jbe 0x1400392c4
mov rax, qword [rax]
lea rcx, [rdi + 0x40]
cmp qword [rcx + 0x10], 0
jne 0x1400392d4
mov rcx, r12
jmp 0x1400392de
cmp qword [rcx + 0x18], 7
jbe 0x1400392de
mov rcx, qword [rcx]
lea r10, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova r10, qword [rbp + 0x10]
cmp qword [rdi + 0x10], 0
jne 0x1400392f8
mov rdx, r12
jmp 0x140039305
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140039305
mov rdx, qword [rdi]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x50], r9
lea r9, [rbp - 0x60]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, r10
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, 1
je 0x140039394
lea rax, [0x14005bac8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x14
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.140001310
mov rbx, rax
mov rdx, rax
mov rcx, r14
call fcn.140002cc0
mov eax, dword [rbx + 0x20]
mov dword [r14 + 0x20], eax
lea rcx, [rbp + 0x30]
call fcn.1400012a0
xor bl, bl
jmp 0x1400393b0
mov eax, dword [rbp - 0x70]
mov dword [rdi + 0x78], eax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea rcx, [rbp + 0x10]
call fcn.1400012a0
movzx eax, bl
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14003bb30
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret