Function at 0x140003be0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x5c0
mov rax, qword [0x140018008]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
mov rsi, rdx
lea rax, [rsp + 0x48]
mov rbp, rcx
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r12b, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003f26
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x5e0], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x5f8], r13
xor r13d, r13d
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x180]
xor edx, edx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x105
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ebx, [r13 + 1]
cmp eax, 0x103
je 0x140003f06
mov qword [rsp + 0x5f0], rdi
nop
nop
test eax, eax
jne 0x140003efb
lea r8d, [rax + 0xc]
lea rdx, str.Descriptions
lea rcx, [rsp + 0x180]
call fcn.140006000
test eax, eax
jne 0x140003d3e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea rdx, str.Descriptions
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003eb0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x40], 0x105
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003eb0
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x140003eb0
lea rcx, [rsp + 0x70]
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov r8d, 0x50
call fcn.1400060d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x180]
repne scasb al, byte [rdi]
movzx eax, word [0x140013ba4]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140003d90
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
mov rax, qword [str.Connection]
lea rdx, [rsp + 0x70]
mov qword [rdi - 1], rax
mov eax, dword [0x140013ba0]
mov r9d, 0xf003f
mov dword [rdi + 7], eax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003eb0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, str.PnpInstanceID
xor r8d, r8d
mov dword [rsp + 0x40], 0x105
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003ea5
lea rcx, [rsp + 0x70]
call fcn.140005eb0
lea rcx, [rsp + 0x290]
mov rdx, rbp
sub rcx, rbp
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140003e40
lea rcx, [rsp + 0x290]
call fcn.140005eb0
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x70]
call fcn.140005010
test rax, rax
je 0x140003ea5
mov rdi, qword [rsp + 0x48]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x3a0]
mov rcx, rdi
call fcn.140001010
cmp eax, 1
jne 0x140003ea5
sub ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x180]
mov edx, ebx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x105
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add ebx, 1
cmp eax, 0x103
jne 0x140003ca0
jmp 0x140003efe
xor r12b, r12b
mov rdi, qword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x5f8]
mov rbx, qword [rsp + 0x5e0]
mov al, r12b
jmp 0x140003f28
xor al, al
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.140005210
add rsp, 0x5c0
pop r12
pop rsi
pop rbp
ret