Function at 0x1400021b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov qword [rsp + 0x70], rdx
mov rbx, r8
mov qword [rsp + 0x78], rbx
mov rsi, rdx
test r8, r8
jne 0x1400021f3
mov eax, 0xa0
jmp 0x1400028d1
mov qword [rsp + 0x4a8], r12
lea rcx, [0x140004980]
xor r12d, r12d
mov qword [rsp + 0x498], r14
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov qword [rbp - 0x80], rax
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140002260
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.tap_list_adapters
mov ebx, eax
lea rdx, str._s:_SetupDiGetClassDevsEx_failed
lea ecx, [r12 + 0x20]
call section..text
mov eax, ebx
jmp 0x1400028c1
xor eax, eax
mov qword [rsp + 0x4d0], rdi
mov qword [rsp + 0x4a0], r13
lea rcx, [rbp - 0x50]
xor edx, edx
mov qword [rsp + 0x490], r15
mov r8d, 0x210
mov qword [rbp - 0x66], rax
mov dword [rbp - 0x5e], eax
mov word [rbp - 0x5a], ax
mov qword [rbp - 0x70], 0x230
mov word [rbp - 0x68], r12w
mov qword [rbp - 0x58], r12
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
jne 0x1400022de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.tap_list_adapters
mov ecx, 0x20
lea rdx, str._s:_SetupDiGetDeviceInfoListDetail_failed
mov r12d, eax
call section..text
jmp 0x14000289d
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], r12
lea rcx, [0x140004980]
call qword [sym.imp.ole32.dll_StringFromIID]
mov qword [rbx], r12
mov edi, r12d
mov qword [rsp + 0x58], r12
xor eax, eax
mov dword [rsp + 0x48], edi
lea r8, [rbp + 0x1c0]
mov qword [rbp + 0x1ca], rax
mov edx, edi
mov word [rbp + 0x1d2], ax
mov rcx, r14
mov qword [rbp + 0x1c0], 0x20
mov word [rbp + 0x1c8], r12w
mov dword [rbp + 0x1d4], r12d
mov qword [rbp + 0x1d8], r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14000237b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140002892
mov r9d, edi
lea r8, str.tap_list_adapters
lea rdx, str._s:_SetupDiEnumDeviceInfo__u__failed
mov ecx, 0x140
call section..text
inc edi
jmp 0x140002300
lea rax, [rsp + 0x40]
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp + 0x1f0]
mov dword [rsp + 0x28], 0x80
mov r8d, 1
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1c0]
mov dword [rsp + 0x40], r12d
mov rcx, r14
mov r13, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x1400023f4
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test rax, rax
je 0x1400028eb
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x1f0]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140002479
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
jne 0x140002453
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test rax, rax
je 0x140002914
lea rax, [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
mov eax, dword [rsp + 0x40]
lea r8d, [rbx - 0x79]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 0x1c0]
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140002479
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, 1
lea r8, str.get_device_reg_property
lea rdx, str._s:_SetupDiGetDeviceRegistryProperty__u__failed
mov ecx, 0x120
call section..text
test ebx, ebx
jne 0x14000288b
mov eax, dword [rsp + 0x4c]
cmp eax, 1
jne 0x1400024ea
test rsi, rsi
je 0x14000258f
mov rbx, rsi
cmp word [rsi], r12w
je 0x140002882
nop dword [rax + rax]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000258f
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400024c0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r12w
jne 0x1400024a0
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc edi
jmp 0x140002300
cmp eax, 7
jne 0x140002882
test rsi, rsi
je 0x14000258f
mov rdi, r13
cmp word [r13], r12w
je 0x14000287e
nop word [rax + rax]
mov rbx, rsi
cmp word [rsi], r12w
je 0x14000255a
nop dword [rax]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000258f
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140002540
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r12w
jne 0x140002520
mov rax, 0xffffffffffffffff
cmp word [rdi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140002561
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], r12w
jne 0x140002510
mov edi, dword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc edi
jmp 0x140002300
mov ebx, 1
mov dword [rsp + 0x28], 0x20019
mov r8d, ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400025e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.get_net_adapter_guid
mov ecx, 0x120
lea rdx, str._s:_SetupDiOpenDevRegKey_failed
mov edi, eax
call section..text
jmp 0x14000269b
mov qword [rsp + 0x40], r12
nop dword [rax]
mov qword [rsp + 0x28], r12
lea rdx, str.NetCfgInstanceId
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x140002650
cmp eax, 2
jne 0x14000262e
dec ebx
test ebx, ebx
jle 0x14000262e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400025f0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, str.get_net_adapter_guid
mov ecx, 0x120
lea rdx, str._s:_querying__NetCfgInstanceId__registry_value_failed
call section..text
jmp 0x140002692
lea r8, [rsp + 0x40]
mov rcx, rsi
lea rdx, str.NetCfgInstanceId
call fcn.140001370
mov edi, eax
test eax, eax
jne 0x140002692
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x1e0]
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rcx, qword [rsp + 0x40]
mov edi, 0xd
test eax, eax
cmovns edi, r12d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140002879
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.ole32.dll_StringFromIID]
mov rax, qword [rsp + 0x50]
lea r8, str.SYSTEMCurrentControlSetControlNetwork_ls_lsConnection
mov r9, qword [rsp + 0x68]
lea rcx, [rbp + 0x270]
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.140001160
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], r12
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x270]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000273d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rbp + 0x270]
mov ecx, 0x140
lea r8, str.tap_list_adapters
lea rdx, str._s:_RegOpenKeyEx_HKLM____ls___failed
call section..text
jmp 0x14000286e
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x40]
lea rdx, str.Name
mov qword [rsp + 0x40], r12
call fcn.140001370
test eax, eax
je 0x140002786
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsp + 0x50]
lea r8, str.tap_list_adapters
lea rdx, str._s:_Cannot_determine__ls_adapter_name
mov ecx, 0x140
call section..text
jmp 0x140002863
mov rcx, r13
cmp word [r13], r12w
je 0x1400027ba
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400027a0
lea rcx, [rcx + rax*2]
add rcx, 2
cmp word [rcx], r12w
jne 0x140002790
mov rdi, qword [rsp + 0x40]
sub rcx, r13
sar rcx, 1
mov rax, 0xffffffffffffffff
lea r15, [rcx*2 + 2]
cmp word [rdi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400027d4
lea r14, [rax*2 + 2]
lea rsi, [r14 + r15]
lea rcx, [rsi + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000293d
movups xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rax + 0x28]
mov r8, r15
mov rdx, r13
mov qword [rax + 0x10], rcx
movups xmmword [rax], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x10]
mov r8, r14
add rcx, r15
mov rdx, rdi
mov qword [rbx + 0x18], rcx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x20], r12
mov qword [rsp + 0x58], rbx
test rax, rax
je 0x14000284e
mov qword [rax + 0x20], rbx
jmp 0x140002856
mov rax, qword [rsp + 0x78]
mov qword [rax], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x70]
mov edi, dword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc edi
jmp 0x140002300
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rdi, qword [rsp + 0x4d0]
mov eax, r12d
mov r13, qword [rsp + 0x4a0]
mov r15, qword [rsp + 0x490]
mov r12, qword [rsp + 0x4a8]
mov r14, qword [rsp + 0x498]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140003170
add rsp, 0x4b0
pop rsi
pop rbx
pop rbp
ret
mov r9d, dword [rsp + 0x40]
lea r8, str.get_device_reg_property
lea rdx, str._s:_malloc__u__failed
mov ecx, 0x10
call section..text
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov r9d, dword [rsp + 0x40]
lea r8, str.get_device_reg_property
lea rdx, str._s:_malloc__u__failed
mov ecx, 0x10
call section..text
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
lea r9, [rsi + 0x28]
mov ecx, 0x10
lea r8, str.tap_list_adapters
lea rdx, str._s:_malloc__u__failed
call section..text
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3