Function at 0x140330140
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 [0x1404f4fb8]
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.140334f10
cmp eax, 3
je 0x140330184
xor eax, eax
jmp 0x140330496
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 0x14033020d
mov rcx, qword [rsp + 0x48]
lea rdx, str.SearchList
mov r8, rsi
call fcn.140330070
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.140330070
test eax, eax
je 0x140330202
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14032f6d0
mov rcx, qword [rsp + 0x40]
call qword [0x1404fe868]
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 0x14033027a
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.140330070
test eax, eax
je 0x14033026f
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14032f6d0
mov rcx, qword [rsp + 0x40]
call qword [0x1404fe868]
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 0x1403302e7
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.PrimaryDNSSuffix
call fcn.140330070
test eax, eax
je 0x1403302dc
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14032f6d0
mov rcx, qword [rsp + 0x40]
call qword [0x1404fe868]
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 0x140330485
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 0x14033047a
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 0x14033043e
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.140330070
test eax, eax
je 0x1403303c5
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14032f6d0
mov rcx, qword [rsp + 0x40]
call qword [0x1404fe868]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.140330070
test eax, eax
je 0x1403303fc
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14032f6d0
mov rcx, qword [rsp + 0x40]
call qword [0x1404fe868]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.DhcpDomain
call fcn.140330070
test eax, eax
je 0x140330433
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14032f6d0
mov rcx, qword [rsp + 0x40]
call qword [0x1404fe868]
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 0x140330360
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.140233ef0
mov rsi, qword [rsp + 0x1a0]
add rsp, 0x170
pop r14
pop rdi
pop rbp
ret