Function at 0x14005fc60
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 0x14005fcf4
lea rcx, [0x1400de570]
call fcn.14009c0c0
cmp dword [0x1400de570], 0xffffffff
jne 0x14005fcf4
lea rcx, [0x1400b5d70]
call fcn.14009c47c
nop
lea rcx, [0x1400de570]
call fcn.14009c054
mov rax, qword [r13]
mov rcx, r15
test rax, rax
je 0x14005fd0b
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 0x14005fd51
mov rax, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14005fd39
mov rax, qword [r12]
cmp qword [r12 + 0x10], 4
jne 0x140060457
cmp dword [rax], 0x6578652e
jne 0x140060457
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.140084e68
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 0x14005fdec
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 0x14005fdff
movzx r8d, dil
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140043c20
sub rbx, 1
jne 0x14005fd90
mov r13, qword [rbp - 0x40]
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14005fe18
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rsp + 0x38]
call fcn.140040110
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.140048490
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.14003e700
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.1400a3060
mov rbx, rax
mov qword [rbp + 0x50], rax
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.14003e700
shr rbx, 0x20
cmp ebx, 0xffffffff
jne 0x14005ff28
mov dword [rbp + 0x20], socket
lea rax, str.p8_f_
mov qword [rbp + 0x28], rax
movaps xmm0, xmmword [rbp + 0x20]
jmp 0x14005ff3d
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 0x1400604a1
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.14002d090
nop
and esi, 0xfffffff7
mov dword [rsp + 0x30], esi
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14005ffc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ffc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400604b7
call fcn.14009c010
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14006001c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060017
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400604bd
call fcn.14009c010
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 0x140060070
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006006b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400604c3
call fcn.14009c010
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 0x1400600c5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400600c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400604c9
call fcn.14009c010
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.14009e150
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0xb0]
call fcn.140061a80
nop
cmp qword [rbp + 0x138], 0
je 0x14006034a
mov rdx, qword [r13]
mov r8, qword [r13 + 8]
sub r8, rdx
lea rcx, [rbp + 0xb0]
call fcn.140061450
lea rcx, [rbp + 0xb0]
call fcn.140044fa0
lea rcx, [rbp + 0xb8]
call fcn.140061930
test rax, rax
jne 0x140060181
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 0x1400604cf
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 0x1400601ee
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 0x1400601ee
cmp dword [rbp + 0x4c], r14d
setne r14b
test r15, r15
je 0x1400601ff
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 0x140060230
lea rcx, [rbp + 0x68]
call fcn.1400431a0
nop
lea rdx, [rbp + 0x88]
lea rcx, [rbp - 0x60]
call fcn.14003e930
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 0x1400602d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400602d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006051e
call fcn.14009c010
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x14006032c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060327
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060524
call fcn.14009c010
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.1400613a0
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.1400a3de0
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x140060439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006049b
call fcn.14009c010
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 0x14005fd25
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14009bff0
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.14007e4a8
nop
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0x50]
lea rcx, str.temp_directory_path
call fcn.14002d950
nop
call fcn.14007e4a8
nop
call fcn.14007e4a8
nop
call fcn.14007e4a8
nop
call fcn.14007e4a8
nop
test al, 4
je 0x1400604dc
lea rbx, str.ios_base::badbit_set
jmp 0x1400604f0
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.14002b530
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14002c680
lea rdx, [0x1400d7ef8]
lea rcx, [rbp - 0x20]
call fcn.14009f038
nop
call fcn.14007e4a8
nop
call fcn.14007e4a8
int3