Function at 0x140004740
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edi, edi
mov dword [rsp + 0x68], 0x101
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
lea rax, [rbp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], dil
jne 0x1400047a0
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x38]
call fcn.140003090
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov r8d, 0x4b
lea rdx, str.powershell.exe__Command__Start_Process_C:ProgramDataDirectmetavor.exe_
lea rcx, [rbp - 0x78]
call fcn.140003090
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
add r8, rdx
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140008690
nop
mov dword [rbp - 0x10], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x48]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x58]
cmova rdx, qword [rbp - 0x58]
lea rcx, [rsp + 0x70]
call fcn.140008f60
nop
mov word [rsp + 0x68], di
mov rdx, qword [rsp + 0x78]
cmp rdx, qword [rbp - 0x80]
je 0x14000487c
mov word [rdx], di
add qword [rsp + 0x78], 2
jmp 0x14000488b
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.14000b690
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400048f3
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004921
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CreateProcessW_failed_with_error
lea rcx, [0x140049a10]
call fcn.1400087f0
mov edx, ebx
mov rcx, rax
call fcn.1400063a0
mov rcx, rax
call fcn.140008ab0
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004970
mov rax, qword [rbp - 0x80]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000495e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a6e
call fcn.1400103c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1400049b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a74
call fcn.1400103c0
movdqa xmm0, xmmword [0x140040d50]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], di
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1400049fc
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a7a
call fcn.1400103c0
movdqa xmm0, xmmword [0x140040d60]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140004a44
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a68
call fcn.1400103c0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400103a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140019950
nop
call fcn.140019950
nop
call fcn.140019950
nop
call fcn.140019950
int3