Function at 0x140003690
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
xor r14b, r14b
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlClass4d36e972_e325_11ce_bfc1_08002be10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003a7a
xor r12d, r12d
mov esi, r12d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x1b0]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140003a5f
lea r15, str.Properties
mov r13d, 0x16
nop word [rax + rax]
mov dword [rsp + 0x78], 0xff
lea rdx, [rbp + 0x1b0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r15 + rax*2 + 2]
jne 0x140003796
add rax, 2
cmp rax, 0xb
je 0x140003a24
movzx ecx, word [rdx + rax*2]
cmp cx, word [r15 + rax*2]
je 0x140003770
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400039fe
mov dword [rsp + 0x7c], 0x100
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BusType
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400039f1
lea rcx, [rbp - 0x78]
call fcn.1400031b0
nop
mov eax, dword [rbp - 0x68]
inc eax
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rcx, qword [rbp - 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.NetworkAddress
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x60], 0x200
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NetConnectionId
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400039b6
mov edi, dword [rsp + 0x60]
shr rdi, 1
lea rax, [rbp - 0x50]
lea rax, [rax + rdi*2]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x50], r12
cmp rcx, rax
jne 0x1400038b5
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
jmp 0x14000396d
mov ebx, 0xf
mov qword [rsp + 0x58], rbx
cmp rdi, rbx
jbe 0x14000392a
mov rbx, rdi
or rbx, 0xf
cmp rbx, 0x16
cmovb rbx, r13
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140003919
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003ad4
mov rcx, rax
call fcn.1400102a0
mov rcx, rax
test rax, rax
je 0x140003a6c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
jmp 0x14000392f
call fcn.1400102a0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
jmp 0x14000392f
mov rax, qword [rsp + 0x40]
lea r9, [rsp + 0x40]
cmp rbx, 0xf
cmova r9, rax
mov rcx, r9
mov r8, rdi
lea rdx, [rbp - 0x50]
test rdi, rdi
je 0x140003963
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 2]
sub r8, 1
jne 0x140003950
mov qword [rsp + 0x50], rdi
mov byte [r9 + rdi], 0
lea rcx, [rsp + 0x40]
call fcn.140003410
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400039b6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a6c
call fcn.14001051c
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1400039f1
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a73
call fcn.14001051c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003a24
lea rdx, str.Failed_to_open_network_adapter_registry_key.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140006b30
lea rdx, [0x140006d10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r14b, 1
inc esi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x1b0]
mov edx, esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140003750
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003aa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.Failed_to_open_registry_key_for_network_adapters.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140006b30
lea rdx, [0x140006d10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r14b, 1
movzx eax, r14b
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.140010160
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001120
nop
int3