Function at 0x1400952a0
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, 0xee8
lea rax, [rsp + 0x50]
lea rcx, [0x140126138]
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 + 0xf00]
lea r8, [0x140126148]
mov edx, 0x10c
lea rcx, [rsp + 0x4a0]
call fcn.140093ec0
mov dx, 0x5c
lea rcx, [rsp + 0x4a0]
call fcn.1400d0300
mov qword [rsp + 0x478], rax
cmp qword [rsp + 0x478], 0
jne 0x140095339
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x478], rax
jmp 0x14009534d
mov rax, qword [rsp + 0x478]
add rax, 2
mov qword [rsp + 0x478], rax
lea rcx, [rsp + 0x50]
call fcn.1400cfcb0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x478]
call fcn.1400d02c0
test eax, eax
jne 0x14009538e
lea rcx, [rsp + 0x50]
call fcn.1400cfcb0
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 0x140095411
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 0x14009540c
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140095d0a
jmp 0x14009558f
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 0x140095451
jmp 0x140095d0a
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 0x1400954ac
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 0x140095d0a
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 0x140095511
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 0x140095d0a
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 0x140095579
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 0x140095d0a
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 0x1400955e4
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 0x140095639
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3c], 0
je 0x14009598b
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 0x1400956b5
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 0x140095d0a
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x480], 0
jmp 0x1400956db
mov eax, dword [rsp + 0x480]
add eax, 1
mov dword [rsp + 0x480], eax
mov rax, qword [rsp + 0xf10]
mov eax, dword [rax]
cmp dword [rsp + 0x480], eax
jge 0x1400957fb
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf08]
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.140091980
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0xffffffff
je 0x1400957f4
mov rax, qword [rsp + 0x40]
mov word [rax], 2
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf08]
lea rax, [rcx + rax + 0x100]
mov qword [rsp + 0x488], rax
mov rax, qword [rsp + 0x488]
mov word [rax], 2
cmp dword [rsp + 0x34], 0
jne 0x140095796
mov rax, qword [rsp + 0x488]
mov dword [rax + 4], 0xffffffff
jmp 0x1400957a5
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 0x1400957c3
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x1400957a5
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x1400957f0
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x1400957f2
jmp 0x1400957fb
jmp 0x1400957f6
jmp 0x1400957fb
jmp 0x1400956ca
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 0x14009586c
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 0x140095d0a
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x460], 0
jmp 0x140095892
mov eax, dword [rsp + 0x460]
add eax, 1
mov dword [rsp + 0x460], eax
mov rax, qword [rsp + 0xf10]
mov eax, dword [rax]
cmp dword [rsp + 0x460], eax
jge 0x140095955
movsxd rax, dword [rsp + 0x460]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf08]
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.140091980
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0xffffffff
je 0x14009594e
mov rax, qword [rsp + 0x40]
mov word [rax], 2
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14009591d
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x1400958ff
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x14009594a
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x14009594c
jmp 0x140095955
jmp 0x140095950
jmp 0x140095955
jmp 0x140095881
mov eax, dword [rsp + 0x480]
cmp dword [rsp + 0x460], eax
je 0x140095986
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 0x140095d0a
jmp 0x140095cca
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 0x1400959fc
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 0x140095d0a
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x480], 0
jmp 0x140095a22
mov eax, dword [rsp + 0x480]
add eax, 1
mov dword [rsp + 0x480], eax
mov rax, qword [rsp + 0xf10]
mov eax, dword [rax]
cmp dword [rsp + 0x480], eax
jge 0x140095b42
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf08]
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.140091980
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0xffffffff
je 0x140095b3b
mov rax, qword [rsp + 0x40]
mov word [rax], 2
movsxd rax, dword [rsp + 0x480]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf08]
lea rax, [rcx + rax + 0x100]
mov qword [rsp + 0x488], rax
mov rax, qword [rsp + 0x488]
mov word [rax], 2
cmp dword [rsp + 0x34], 0
jne 0x140095add
mov rax, qword [rsp + 0x488]
mov dword [rax + 4], 0xffffffff
jmp 0x140095aec
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 0x140095b0a
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x140095aec
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x140095b37
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x140095b39
jmp 0x140095b42
jmp 0x140095b3d
jmp 0x140095b42
jmp 0x140095a11
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 0x140095bb3
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 0x140095d0a
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x460], 0
jmp 0x140095bd9
mov eax, dword [rsp + 0x460]
add eax, 1
mov dword [rsp + 0x460], eax
mov rax, qword [rsp + 0xf10]
mov eax, dword [rax]
cmp dword [rsp + 0x460], eax
jge 0x140095c9c
movsxd rax, dword [rsp + 0x460]
imul rax, rax, 0x180
mov rcx, qword [rsp + 0xf08]
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.140091980
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0xffffffff
je 0x140095c95
mov rax, qword [rsp + 0x40]
mov word [rax], 2
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x140095c64
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x140095c46
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x6c0]
test eax, eax
je 0x140095c91
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jb 0x140095c93
jmp 0x140095c9c
jmp 0x140095c97
jmp 0x140095c9c
jmp 0x140095bc8
mov eax, dword [rsp + 0x480]
cmp dword [rsp + 0x460], eax
je 0x140095cca
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 0x140095d0a
mov eax, dword [rsp + 0x480]
add eax, 1
mov rcx, qword [rsp + 0xf10]
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 0x140095d06
jmp 0x140095d0a
mov al, 1
jmp 0x140095d0c
xor al, al
add rsp, 0xee8
pop rdi
pop rsi
ret