Function at 0x14006e930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xef8
lea rax, [rsp + 0x50]
lea rcx, [0x1400f3d18]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_ntohl
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x5e]
mov rdi, rax
xor eax, eax
mov ecx, 0x3f2
rep stosb byte [rdi], al
mov r9, qword [rsp + 0xf10]
lea r8, [0x1400f3d28]
mov edx, 0x10c
lea rcx, [rsp + 0x4a0]
call fcn.14006d540
mov dx, 0x5c
lea rcx, [rsp + 0x4a0]
call fcn.14009a4b0
mov qword [rsp + 0x478], rax
cmp qword [rsp + 0x478], 0
jne 0x14006e9c9
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x478], rax
jmp 0x14006e9dd
mov rax, qword [rsp + 0x478]
add rax, 2
mov qword [rsp + 0x478], rax
lea rcx, [rsp + 0x50]
call fcn.14009a0ec
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x478]
call fcn.14009a484
test eax, eax
jne 0x14006ea1e
lea rcx, [rsp + 0x50]
call fcn.14009a0ec
mov rcx, qword [rsp + 0x478]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x478], rax
lea rax, [rsp + 0x468]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006eaa1
lea rax, [rsp + 0x470]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006ea9c
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
jmp 0x14006ec1f
lea rax, [rsp + 0xed0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006eae1
jmp 0x14006f3d3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x478]
mov rcx, qword [rsp + 0xed0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006eb3c
mov rcx, qword [rsp + 0xed0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov rcx, qword [rsp + 0xed0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x458]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Parameters
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006eba1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x470]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.TcpIp
mov rcx, qword [rsp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006ec09
mov rcx, qword [rsp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov rcx, qword [rsp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x38], 0x802
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
xor r8d, r8d
lea rdx, str.UseZeroBroadcast
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006ec74
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
xor r8d, r8d
lea rdx, str.EnableDHCP
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006ecc9
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3c], 0
je 0x14006f038
mov dword [rsp + 0x38], 0x802
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
xor r8d, r8d
lea rdx, str.DhcpIPAddress
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006ed45
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x480], 0
jmp 0x14006ed6a
mov eax, dword [rsp + 0x480]
inc eax
mov dword [rsp + 0x480], eax
mov rax, qword [rsp + 0xf20]
mov eax, dword [rax]
cmp dword [rsp + 0x480], eax
jge 0x14006ee9b
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax*2 + 0x6c0]
mov rcx, rax
call fcn.14006ac60
mov dword [rsp + 0xed8], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xed8]
mov dword [rax + 4], ecx
cmp dword [rsp + 0xed8], 0xffffffff
je 0x14006ee94
mov eax, 2
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf18]
lea rax, [rcx + rax + 0x100]
mov qword [rsp + 0x488], rax
mov eax, 2
mov rcx, qword [rsp + 0x488]
mov word [rcx], ax
cmp dword [rsp + 0x34], 0
jne 0x14006ee38
mov rax, qword [rsp + 0x488]
mov dword [rax + 4], 0xffffffff
jmp 0x14006ee47
mov rax, qword [rsp + 0x488]
mov dword [rax + 4], 0
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006ee64
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x14006ee47
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006ee90
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x14006ee92
jmp 0x14006ee9b
jmp 0x14006ee96
jmp 0x14006ee9b
jmp 0x14006ed5a
mov dword [rsp + 0x38], 0x802
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
xor r8d, r8d
lea rdx, str.DhcpSubnetMask
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006ef0c
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x460], 0
jmp 0x14006ef31
mov eax, dword [rsp + 0x460]
inc eax
mov dword [rsp + 0x460], eax
mov rax, qword [rsp + 0xf20]
mov eax, dword [rax]
cmp dword [rsp + 0x460], eax
jge 0x14006f002
movsxd rax, dword [rsp + 0x460]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf18]
lea rax, [rcx + rax + 0x80]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax*2 + 0x6c0]
mov rcx, rax
call fcn.14006ac60
mov dword [rsp + 0xedc], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xedc]
mov dword [rax + 4], ecx
cmp dword [rsp + 0xedc], 0xffffffff
je 0x14006effb
mov eax, 2
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006efcb
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x14006efae
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006eff7
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x14006eff9
jmp 0x14006f002
jmp 0x14006effd
jmp 0x14006f002
jmp 0x14006ef21
mov eax, dword [rsp + 0x480]
cmp dword [rsp + 0x460], eax
je 0x14006f033
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
jmp 0x14006f394
mov dword [rsp + 0x38], 0x802
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
xor r8d, r8d
lea rdx, str.IPAddress
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006f0a9
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x480], 0
jmp 0x14006f0ce
mov eax, dword [rsp + 0x480]
inc eax
mov dword [rsp + 0x480], eax
mov rax, qword [rsp + 0xf20]
mov eax, dword [rax]
cmp dword [rsp + 0x480], eax
jge 0x14006f1ff
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax*2 + 0x6c0]
mov rcx, rax
call fcn.14006ac60
mov dword [rsp + 0xee0], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xee0]
mov dword [rax + 4], ecx
cmp dword [rsp + 0xee0], 0xffffffff
je 0x14006f1f8
mov eax, 2
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf18]
lea rax, [rcx + rax + 0x100]
mov qword [rsp + 0x488], rax
mov eax, 2
mov rcx, qword [rsp + 0x488]
mov word [rcx], ax
cmp dword [rsp + 0x34], 0
jne 0x14006f19c
mov rax, qword [rsp + 0x488]
mov dword [rax + 4], 0xffffffff
jmp 0x14006f1ab
mov rax, qword [rsp + 0x488]
mov dword [rax + 4], 0
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006f1c8
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x14006f1ab
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006f1f4
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x14006f1f6
jmp 0x14006f1ff
jmp 0x14006f1fa
jmp 0x14006f1ff
jmp 0x14006f0be
mov dword [rsp + 0x38], 0x802
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x450]
xor r8d, r8d
lea rdx, str.SubnetMask
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x490], eax
cmp dword [rsp + 0x490], 0
je 0x14006f270
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x460], 0
jmp 0x14006f295
mov eax, dword [rsp + 0x460]
inc eax
mov dword [rsp + 0x460], eax
mov rax, qword [rsp + 0xf20]
mov eax, dword [rax]
cmp dword [rsp + 0x460], eax
jge 0x14006f366
movsxd rax, dword [rsp + 0x460]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf18]
lea rax, [rcx + rax + 0x80]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax*2 + 0x6c0]
mov rcx, rax
call fcn.14006ac60
mov dword [rsp + 0xee4], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xee4]
mov dword [rax + 4], ecx
cmp dword [rsp + 0xee4], 0xffffffff
je 0x14006f35f
mov eax, 2
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006f32f
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x14006f312
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14006f35b
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x14006f35d
jmp 0x14006f366
jmp 0x14006f361
jmp 0x14006f366
jmp 0x14006f285
mov eax, dword [rsp + 0x480]
cmp dword [rsp + 0x460], eax
je 0x14006f394
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f3d3
mov eax, dword [rsp + 0x480]
inc eax
mov rcx, qword [rsp + 0xf20]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x490], 0
je 0x14006f3cf
jmp 0x14006f3d3
mov al, 1
jmp 0x14006f3d5
xor al, al
add rsp, 0xef8
pop rdi
pop rsi
ret