Function at 0x140419ed0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor edi, edi
mov rsi, rcx
mov r14d, edi
mov qword [rsp + 0x40], rdi
mov qword [rcx], rdi
call fcn.14041eca0
cmp eax, 3
je 0x140419f14
xor eax, eax
jmp 0x14041a226
lea rax, [rsp + 0x48]
mov qword [rsp + 0x198], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140419f9d
mov rcx, qword [rsp + 0x48]
lea rdx, str.SearchList
mov r8, rsi
call fcn.140419e00
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.140419e00
test eax, eax
je 0x140419f92
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140419460
mov rcx, qword [rsp + 0x40]
call qword [str._hA_]
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 0x14041a00a
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.140419e00
test eax, eax
je 0x140419fff
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140419460
mov rcx, qword [rsp + 0x40]
call qword [str._hA_]
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 0x14041a077
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.PrimaryDNSSuffix
call fcn.140419e00
test eax, eax
je 0x14041a06c
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140419460
mov rcx, qword [rsp + 0x40]
call qword [str._hA_]
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 0x14041a215
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 0x14041a20a
nop dword [rax]
nop word [rax + rax]
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 r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14041a1ce
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.140419e00
test eax, eax
je 0x14041a155
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140419460
mov rcx, qword [rsp + 0x40]
call qword [str._hA_]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.140419e00
test eax, eax
je 0x14041a18c
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140419460
mov rcx, qword [rsp + 0x40]
call qword [str._hA_]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.DhcpDomain
call fcn.140419e00
test eax, eax
je 0x14041a1c3
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140419460
mov rcx, qword [rsp + 0x40]
call qword [str._hA_]
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, r14d
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 0x14041a0f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsi], rdi
mov rbx, qword [rsp + 0x198]
setne dil
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1402f2210
mov rsi, qword [rsp + 0x1a0]
add rsp, 0x170
pop r14
pop rdi
pop rbp
ret