Function at 0x140001b10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov qword [rsp + 0x40], r9
mov r12, rdx
test rdx, rdx
jne 0x140001b4b
mov eax, 0xa0
jmp 0x140001e9a
mov qword [rsp + 0x300], rbx
lea rcx, [0x1400049b0]
xor ebx, ebx
mov qword [rsp + 0x2d0], r13
mov qword [rsp + 0x30], rbx
mov r13d, 2
mov qword [rsp + 0x28], rbx
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov qword [rsp + 0x2c0], r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140001bbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.execute_on_first_adapter
mov ebx, eax
lea rdx, str._s:_SetupDiGetClassDevsEx_failed
lea ecx, [r13 + 0x1e]
call section..text
mov eax, ebx
jmp 0x140001e82
xor eax, eax
mov qword [rsp + 0x50], 0x230
xor edx, edx
mov qword [rsp + 0x5a], rax
mov r8d, 0x210
mov dword [rsp + 0x62], eax
lea rcx, [rsp + 0x70]
mov word [rsp + 0x66], ax
mov word [rsp + 0x58], bx
mov qword [rsp + 0x68], rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
jne 0x140001c2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.execute_on_first_adapter
mov ecx, 0x20
lea rdx, str._s:_SetupDiGetDeviceInfoListDetail_failed
mov r13d, eax
call section..text
jmp 0x140001e76
mov qword [rsp + 0x2e0], rsi
mov qword [rsp + 0x2d8], rdi
mov qword [rsp + 0x2c8], r14
mov r14d, ebx
nop word [rax + rax]
xor eax, eax
mov qword [rbp + 0x180], 0x20
lea r8, [rbp + 0x180]
mov qword [rbp + 0x18a], rax
mov edx, r14d
mov word [rbp + 0x192], ax
mov rcx, r15
mov word [rbp + 0x188], bx
mov dword [rbp + 0x194], ebx
mov qword [rbp + 0x198], rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140001cc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140001e0a
mov r9d, r14d
lea r8, str.execute_on_first_adapter
lea rdx, str._s:_SetupDiEnumDeviceInfo__u__failed
mov ecx, 0x140
call section..text
inc r14d
jmp 0x140001c50
mov edi, 1
mov dword [rsp + 0x28], 0x20019
mov r8d, edi
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea rdx, [rbp + 0x180]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.get_net_adapter_guid
mov ecx, 0x120
lea rdx, str._s:_SetupDiOpenDevRegKey_failed
mov ebx, eax
call section..text
jmp 0x140001de1
mov qword [rsp + 0x48], rbx
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x28], rbx
lea rdx, str.NetCfgInstanceId
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140001d92
cmp eax, r13d
jne 0x140001d70
dec edi
test edi, edi
jle 0x140001d70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x140001d30
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 0x140001dd8
lea r8, [rsp + 0x48]
mov rcx, rsi
lea rdx, str.NetCfgInstanceId
call fcn.140001380
mov ebx, eax
test eax, eax
jne 0x140001dd8
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rcx, qword [rsp + 0x48]
mov ebx, 0xd
test eax, eax
mov eax, 0
cmovns ebx, eax
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 ebx, ebx
jne 0x140001e00
mov rax, qword [r12]
cmp rax, qword [rbp + 0x1a0]
jne 0x140001e00
mov rax, qword [r12 + 8]
cmp rax, qword [rbp + 0x1a8]
je 0x140001e47
xor ebx, ebx
inc r14d
jmp 0x140001c50
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov rcx, r12
call qword [sym.imp.ole32.dll_StringFromIID]
mov r9, qword [rsp + 0x48]
lea r8, str.execute_on_first_adapter
lea rdx, str._s:_Adapter__ls_not_found
mov ecx, 0x20
call section..text
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140001e5e
mov r8, qword [rsp + 0x40]
lea rdx, [rbp + 0x180]
mov rcx, r15
call fcn.1400012b0
mov r13d, eax
mov r14, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d8]
mov rsi, qword [rsp + 0x2e0]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, r13d
mov r13, qword [rsp + 0x2d0]
mov rbx, qword [rsp + 0x300]
mov r15, qword [rsp + 0x2c0]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140003170
add rsp, 0x2e8
pop r12
pop rbp
ret