Function at 0x140001eb0
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 0x14000218e
test rdx, rdx
je 0x14000218e
mov qword [rsp + 0x220], r15
lea rdx, [rsp + 0x68]
xor r15d, r15d
lea rcx, [0x140004980]
mov qword [rsp + 0x68], r15
call qword [sym.imp.ole32.dll_StringFromIID]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromIID]
mov rax, qword [rsp + 0x60]
lea r8, str.SYSTEMCurrentControlSetControlNetwork_ls_lsConnection
mov r9, qword [rsp + 0x68]
lea rcx, [rbp]
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.140001160
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], 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 0x140001f9b
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 0x14000216c
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, str.Name
mov qword [rsp + 0x50], r15
call fcn.140001370
mov ebx, eax
test eax, eax
je 0x140001fd0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str._s:_Error_reading_adapter_name
jmp 0x140002150
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x260], rsi
mov rdx, rax
mov qword [rsp + 0x228], r14
nop word [rax + rax]
inc rdx
cmp word [rdi + rdx*2], r15w
jne 0x140001ff0
mov rsi, qword [rsp + 0x50]
nop
cmp word [rsi + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x140002000
lea rbx, [rax + 0x35]
add rbx, rdx
lea rcx, [rbx + rbx]
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.140001160
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 [rbp - 0x80], rax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x70], 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 0x140002115
lea rax, [rsp + 0x70]
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 0x140002115
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400020fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000211f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [rsp + 0x50]
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 0x140002161
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 + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r15, qword [rsp + 0x220]
mov eax, ebx
jmp 0x140002193
mov eax, 0xa0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140003170
add rsp, 0x230
pop rdi
pop rbx
pop rbp
ret