Function at 0x140001ec0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400021a7
test rdx, rdx
je 0x1400021a7
mov qword [rsp + 0x220], r15
lea rdx, [rsp + 0x60]
xor r15d, r15d
lea rcx, [0x1400049b0]
mov qword [rsp + 0x60], r15
call qword [sym.imp.ole32.dll_StringFromIID]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], r15
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromIID]
mov rax, qword [rsp + 0x58]
lea r8, str.SYSTEMCurrentControlSetControlNetwork_ls_lsConnection
mov r9, qword [rsp + 0x60]
lea rcx, [rbp]
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.140001170
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r15
lea r9d, [r15 + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140001fab
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rbp]
mov ecx, 0x120
lea r8, str.tap_set_adapter_name
lea rdx, str._s:_RegOpenKeyEx_HKLM____ls___failed
call section..text
jmp 0x140002185
mov rcx, qword [rsp + 0x50]
lea r8, [rbp - 0x80]
lea rdx, str.Name
mov qword [rbp - 0x80], r15
call fcn.140001380
mov ebx, eax
test eax, eax
je 0x140001fde
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str._s:_Error_reading_adapter_name
jmp 0x140002169
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x260], rsi
mov rax, r8
mov qword [rsp + 0x228], r14
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140002000
mov rsi, qword [rbp - 0x80]
mov rcx, r8
cmp word [rsi + rcx*2 + 2], r15w
lea rcx, [rcx + 1]
jne 0x140002011
lea rbx, [rcx + 0x35]
add rbx, rax
mov eax, 2
mul rbx
cmovo rax, r8
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.netsh_interface_set_interface_name__s__newname__s_
mov rdx, rbx
mov r14, rax
call fcn.140001170
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor eax, eax
mov rcx, r14
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0xc], eax
movups xmmword [rbp - 0x5c], xmm0
mov qword [rsp + 0x78], rax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rsi, qword [rsp + 0x260]
mov rbx, rax
test rax, rax
je 0x140002130
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000400
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002130
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x80], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002139
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x80], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x228]
test ebx, ebx
je 0x14000217a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str._s:_Error_renaming_adapter
lea r8, str.tap_set_adapter_name
mov ecx, 0x120
call section..text
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r15, qword [rsp + 0x220]
mov eax, ebx
jmp 0x1400021ac
mov eax, 0xa0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140003170
add rsp, 0x230
pop rdi
pop rbx
pop rbp
ret