Function at 0x140087370
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rcx
mov rsi, 0xffffffffffffffff
test rcx, rcx
je 0x14008760b
mov rax, qword [rcx + 0x20]
cmp qword [rax], 0
je 0x14008760b
mov eax, dword [reloc.WS2_32.dll_accept]
test r8b, 1
je 0x1400873cc
cmp eax, 2
jmp 0x1400873cf
cmp eax, 1
setge cl
test cl, cl
je 0x1400875d4
xor edi, edi
mov rcx, rdx
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x61], rdi
call fcn.140086df0
lea rdx, [rbp - 0x69]
mov rcx, rbx
mov r14, rax
call fcn.140087070
mov rcx, qword [rbx + 0x20]
mov r9d, esi
mov dword [rsp + 0x28], edi
xor edx, edx
mov r13, rax
mov qword [rsp + 0x20], rdi
mov r15, qword [rcx]
mov ecx, 0xfde9
mov r8, r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r12, eax
mov rcx, r12
add rcx, rcx
add rcx, 8
cmovb rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140087653
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 - 0x59]
xor eax, eax
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp + 7], rax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x79], rax
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor r15d, r15d
mov dword [rbp - 0x59], 0x68
lea rax, [rsp + 0x50]
mov dword [rbp - 0x1d], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x59]
mov word [rbp - 0x19], 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 0x140087567
mov rcx, qword [rsp + 0x58]
mov dword [rbp - 0x71], r15d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140087538
mov rcx, qword [rsp + 0x50]
mov esi, dword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140087589
mov ecx, 0x140
call fcn.14000ec70
test al, al
je 0x14008755a
mov r8, rbx
lea rdx, str.openvpn_execve:_GetExitCodeProcess__S_failed
mov ecx, 0x140
call fcn.14000e820
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140087589
mov ecx, 0x140
call fcn.14000ec70
test al, al
je 0x140087589
mov r8, rbx
lea rdx, str.openvpn_execve:_CreateProcess__S_failed
mov ecx, 0x140
call fcn.14000e820
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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 0x140087592
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x14008762a
nop
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
call qword [0x14008d1f0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400875b0
jmp 0x14008762a
cmp byte [0x1400cb9f4], 0
mov esi, 0xfffffffe
jne 0x14008762a
cmp eax, 2
jge 0x14008762a
lea ecx, [rsi + 0x42]
call fcn.14000ec70
test al, al
je 0x140087602
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.14000e820
mov byte [0x1400cb9f4], 1
jmp 0x14008762a
mov ecx, 0x40
call fcn.14000ec70
test al, al
je 0x14008762a
lea rdx, str.openvpn_execve:_called_with_empty_argv
mov ecx, 0x40
call fcn.14000e820
mov eax, esi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14008aca0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14000ede0
int3