Function at 0x14013b990
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, qword [rbp + 0x90]
xor edi, edi
mov r15d, edi
mov qword [rsp + 0x40], rdi
mov qword [rbx], rdi
call fcn.1401408e0
cmp eax, 3
je 0x14013b9dd
xor eax, eax
jmp 0x14013c012
lea rax, [rsp + 0x48]
mov qword [rsp + 0x198], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x1a0], r14
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14013baf2
mov rcx, qword [rsp + 0x48]
lea rdx, str.SearchList
mov r8, rbx
call fcn.14013b8b0
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.14013b8b0
test eax, eax
je 0x14013bae7
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14012cda0
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14013ba74
call fcn.14012cda0
mov rcx, qword [rbx]
add rax, 2
jmp 0x14013ba7c
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140241ad0]
call qword [case.0x1400cd6b1.0]
test rax, rax
je 0x14013bad2
cmp qword [rbx], rdi
jne 0x14013ba9a
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.14012cda0
test rax, rax
je 0x14013bac4
mov rcx, qword [rbx]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14013bab0
movzx eax, word [0x140205fc0]
mov word [rcx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140186030
mov rax, qword [0x140241ad8]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14013bbe3
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.14013b8b0
test eax, eax
je 0x14013bbd8
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14012cda0
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14013bb65
call fcn.14012cda0
mov rcx, qword [rbx]
add rax, 2
jmp 0x14013bb6d
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140241ad0]
call qword [case.0x1400cd6b1.0]
test rax, rax
je 0x14013bbc3
cmp qword [rbx], rdi
jne 0x14013bb8b
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.14012cda0
test rax, rax
je 0x14013bbb5
mov rcx, qword [rbx]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14013bba1
movzx eax, word [0x140205fc0]
mov word [rcx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140186030
mov rax, qword [0x140241ad8]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftSystemDNSClient
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14013bcd4
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.PrimaryDNSSuffix
call fcn.14013b8b0
test eax, eax
je 0x14013bcc9
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14012cda0
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14013bc56
call fcn.14012cda0
mov rcx, qword [rbx]
add rax, 2
jmp 0x14013bc5e
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140241ad0]
call qword [case.0x1400cd6b1.0]
test rax, rax
je 0x14013bcb4
cmp qword [rbx], rdi
jne 0x14013bc7c
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.14012cda0
test rax, rax
je 0x14013bca6
mov rcx, qword [rbx]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14013bc92
movzx eax, word [0x140205fc0]
mov word [rcx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140186030
mov rax, qword [0x140241ad8]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesTcpipParametersInterfaces
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14013bff9
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14013bfee
nop
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
inc r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14013bfb2
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.14013b8b0
test eax, eax
je 0x14013be27
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14012cda0
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14013bdb2
call fcn.14012cda0
mov rcx, qword [rbx]
add rax, 2
jmp 0x14013bdba
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140241ad0]
call qword [case.0x1400cd6b1.0]
test rax, rax
je 0x14013be12
cmp qword [rbx], rdi
jne 0x14013bdd8
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.14012cda0
test rax, rax
je 0x14013be04
mov rdx, qword [rbx]
dec rdx
nop
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x14013bdf0
movzx eax, word [0x140205fc0]
mov word [rdx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140186030
mov rax, qword [0x140241ad8]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.14013b8b0
test eax, eax
je 0x14013bee7
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14012cda0
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14013be6b
call fcn.14012cda0
mov rcx, qword [rbx]
add rax, 2
jmp 0x14013be73
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140241ad0]
call qword [case.0x1400cd6b1.0]
test rax, rax
je 0x14013bed2
cmp qword [rbx], rdi
jne 0x14013be91
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.14012cda0
test rax, rax
je 0x14013bec4
mov rdx, qword [rbx]
dec rdx
nop word [rax + rax]
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x14013beb0
movzx eax, word [0x140205fc0]
mov word [rdx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140186030
mov rax, qword [0x140241ad8]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.DhcpDomain
call fcn.14013b8b0
test eax, eax
je 0x14013bfa7
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14012cda0
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14013bf2b
call fcn.14012cda0
mov rcx, qword [rbx]
add rax, 2
jmp 0x14013bf33
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140241ad0]
call qword [case.0x1400cd6b1.0]
test rax, rax
je 0x14013bf92
cmp qword [rbx], rdi
jne 0x14013bf51
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.14012cda0
test rax, rax
je 0x14013bf84
mov rdx, qword [rbx]
dec rdx
nop word [rax + rax]
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x14013bf70
movzx eax, word [0x140205fc0]
mov word [rdx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140186030
mov rax, qword [0x140241ad8]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov edx, r15d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14013bd40
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx], rdi
mov r14, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x198]
setne dil
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop r15
pop rdi
pop rbp
ret