Function at 0x140001b00
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 + 0x48], r9
mov r12, rdx
test rdx, rdx
jne 0x140001b3b
mov eax, 0xa0
jmp 0x140001e8a
mov qword [rsp + 0x300], rbx
lea rcx, [0x140004980]
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 0x140001bae
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 0x140001e72
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 0x140001c1b
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 0x140001e66
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 0x140001cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140001dfa
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 0x140001c40
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 0x140001d0d
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 0x140001dd1
mov qword [rsp + 0x40], 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 0x140001d82
cmp eax, r13d
jne 0x140001d60
dec edi
test edi, edi
jle 0x140001d60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x140001d20
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 0x140001dc8
lea r8, [rsp + 0x40]
mov rcx, rsi
lea rdx, str.NetCfgInstanceId
call fcn.140001370
mov ebx, eax
test eax, eax
jne 0x140001dc8
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rcx, qword [rsp + 0x40]
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 0x140001df0
mov rax, qword [r12]
cmp rax, qword [rbp + 0x1a0]
jne 0x140001df0
mov rax, qword [r12 + 8]
cmp rax, qword [rbp + 0x1a8]
je 0x140001e37
xor ebx, ebx
inc r14d
jmp 0x140001c40
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov rcx, r12
call qword [sym.imp.ole32.dll_StringFromIID]
mov r9, qword [rsp + 0x40]
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 + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140001e4e
mov r8, qword [rsp + 0x48]
lea rdx, [rbp + 0x180]
mov rcx, r15
call fcn.1400012a0
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