Function at 0x1401222d0
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 [0x140212c80]
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.140126c60
cmp eax, 3
je 0x14012231d
xor eax, eax
jmp 0x140122952
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 0x140122432
mov rcx, qword [rsp + 0x48]
lea rdx, str.SearchList
mov r8, rbx
call fcn.1401221f0
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.1401221f0
test eax, eax
je 0x140122427
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140129190
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x1401223b4
call fcn.140129190
mov rcx, qword [rbx]
add rax, 2
jmp 0x1401223bc
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140212a80]
call qword [case.0x1400cc851.0]
test rax, rax
je 0x140122412
cmp qword [rbx], rdi
jne 0x1401223da
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.140129190
test rax, rax
je 0x140122404
mov rcx, qword [rbx]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1401223f0
movzx eax, word [0x1401dc320]
mov word [rcx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140161720
mov rax, qword [0x140212a88]
mov rcx, rsi
call qword [case.0x1400cc851.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 0x140122523
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.1401221f0
test eax, eax
je 0x140122518
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140129190
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x1401224a5
call fcn.140129190
mov rcx, qword [rbx]
add rax, 2
jmp 0x1401224ad
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140212a80]
call qword [case.0x1400cc851.0]
test rax, rax
je 0x140122503
cmp qword [rbx], rdi
jne 0x1401224cb
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.140129190
test rax, rax
je 0x1401224f5
mov rcx, qword [rbx]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1401224e1
movzx eax, word [0x1401dc320]
mov word [rcx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140161720
mov rax, qword [0x140212a88]
mov rcx, rsi
call qword [case.0x1400cc851.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 0x140122614
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.PrimaryDNSSuffix
call fcn.1401221f0
test eax, eax
je 0x140122609
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140129190
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x140122596
call fcn.140129190
mov rcx, qword [rbx]
add rax, 2
jmp 0x14012259e
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140212a80]
call qword [case.0x1400cc851.0]
test rax, rax
je 0x1401225f4
cmp qword [rbx], rdi
jne 0x1401225bc
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.140129190
test rax, rax
je 0x1401225e6
mov rcx, qword [rbx]
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1401225d2
movzx eax, word [0x1401dc320]
mov word [rcx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140161720
mov rax, qword [0x140212a88]
mov rcx, rsi
call qword [case.0x1400cc851.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 0x140122939
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 0x14012292e
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 0x1401228f2
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.1401221f0
test eax, eax
je 0x140122767
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140129190
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x1401226f2
call fcn.140129190
mov rcx, qword [rbx]
add rax, 2
jmp 0x1401226fa
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140212a80]
call qword [case.0x1400cc851.0]
test rax, rax
je 0x140122752
cmp qword [rbx], rdi
jne 0x140122718
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.140129190
test rax, rax
je 0x140122744
mov rdx, qword [rbx]
dec rdx
nop
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x140122730
movzx eax, word [0x1401dc320]
mov word [rdx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140161720
mov rax, qword [0x140212a88]
mov rcx, rsi
call qword [case.0x1400cc851.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.1401221f0
test eax, eax
je 0x140122827
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140129190
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x1401227ab
call fcn.140129190
mov rcx, qword [rbx]
add rax, 2
jmp 0x1401227b3
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140212a80]
call qword [case.0x1400cc851.0]
test rax, rax
je 0x140122812
cmp qword [rbx], rdi
jne 0x1401227d1
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.140129190
test rax, rax
je 0x140122804
mov rdx, qword [rbx]
dec rdx
nop word [rax + rax]
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x1401227f0
movzx eax, word [0x1401dc320]
mov word [rdx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140161720
mov rax, qword [0x140212a88]
mov rcx, rsi
call qword [case.0x1400cc851.0]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.DhcpDomain
call fcn.1401221f0
test eax, eax
je 0x1401228e7
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140129190
mov rcx, qword [rbx]
mov r14, rax
test rcx, rcx
je 0x14012286b
call fcn.140129190
mov rcx, qword [rbx]
add rax, 2
jmp 0x140122873
mov eax, 1
mov rcx, rdi
lea rdx, [rax + r14]
mov rax, qword [0x140212a80]
call qword [case.0x1400cc851.0]
test rax, rax
je 0x1401228d2
cmp qword [rbx], rdi
jne 0x140122891
mov byte [rax], dil
mov rcx, rax
mov qword [rbx], rax
call fcn.140129190
test rax, rax
je 0x1401228c4
mov rdx, qword [rbx]
dec rdx
nop word [rax + rax]
cmp byte [rdx + 1], dil
lea rdx, [rdx + 1]
jne 0x1401228b0
movzx eax, word [0x1401dc320]
mov word [rdx], ax
mov rcx, qword [rbx]
mov r8, r14
mov rdx, rsi
call fcn.140161720
mov rax, qword [0x140212a88]
mov rcx, rsi
call qword [case.0x1400cc851.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 0x140122680
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.140133600
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop r15
pop rdi
pop rbp
ret