Function at 0x140085610
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 - 0x37]
sub rsp, 0xf0
mov rbx, rcx
mov esi, 0xffffffff
test rcx, rcx
je 0x140085894
mov rax, qword [rcx + 0x20]
cmp qword [rax], 0
je 0x140085894
mov eax, dword [reloc.WS2_32.dll_accept]
test r8b, 1
je 0x140085664
cmp eax, 2
jmp 0x140085667
cmp eax, 1
setge cl
test cl, cl
je 0x14008585d
xor edi, edi
mov rcx, rdx
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x61], rdi
call fcn.1400850a0
lea rdx, [rbp - 0x69]
mov rcx, rbx
mov r14, rax
call fcn.140085320
mov r13, rax
mov dword [rsp + 0x28], edi
mov rax, qword [rbx + 0x20]
mov r9d, esi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
mov r15, qword [rax]
mov r8, r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r12, eax
mov rcx, r12
add rcx, rcx
add rcx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400858d6
lea rbx, [rax + 8]
mov dword [rsp + 0x28], r12d
mov rax, qword [rbp - 0x69]
mov r9d, esi
mov r8, r15
mov qword [rdi], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
lea rcx, [rbp - 0x39]
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x49], rax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp - 0x59], xmm0
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor r15d, r15d
mov dword [rbp - 0x39], 0x68
lea rax, [rbp - 0x59]
mov dword [rbp + 3], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
mov word [rbp + 7], r15w
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r15
mov rdx, r13
mov qword [rsp + 0x30], r14
mov rcx, rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400857f4
mov rcx, qword [rbp - 0x51]
mov dword [rbp + 0x67], r15d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x59]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x59]
lea rdx, [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400857c6
mov rcx, qword [rbp - 0x59]
mov esi, dword [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140085816
mov ecx, 0x140
call fcn.14000e3d0
test al, al
je 0x1400857e8
mov r8, rbx
lea rdx, str.openvpn_execve:_GetExitCodeProcess__S_failed
mov ecx, 0x140
call fcn.14000e000
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140085816
mov ecx, 0x140
call fcn.14000e3d0
test al, al
je 0x140085816
mov r8, rbx
lea rdx, str.openvpn_execve:_CreateProcess__S_failed
mov ecx, 0x140
call fcn.14000e000
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140085820
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x1400858b3
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140085840
jmp 0x1400858b3
cmp byte [0x1400c79b4], 0
mov esi, 0xfffffffe
jne 0x1400858b3
cmp eax, 2
jge 0x1400858b3
lea ecx, [rsi + 0x42]
call fcn.14000e3d0
test al, al
je 0x14008588b
lea rdx, str.WARNING:_External_program_may_not_be_called_unless___script_security_2_or_higher_is_enabled._See___help_text_or_man_page_for_detailed_info.
lea ecx, [rsi + 0x42]
call fcn.14000e000
mov byte [0x1400c79b4], 1
jmp 0x1400858b3
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x1400858b3
lea rdx, str.openvpn_execve:_called_with_empty_argv
mov ecx, 0x40
call fcn.14000e000
lea r11, [rsp + 0xf0]
mov eax, esi
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.14000e540
int3