Function at 0x40bcc0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x54c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x548], eax
push ebp
mov ebp, dword [esp + 0x554]
push esi
push edi
mov eax, 0x80
push 0x7f
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1d]
push 0
push eax
mov dword [esp + 0x18], 0
mov byte [esp + 0x24], 0
call fcn.00420f50
mov ecx, 0xf
mov esi, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
push 0x475
lea ecx, [esp + 0xdb]
push 0
push ecx
movsb byte es:[edi], byte [esi]
call fcn.00420f50
add esp, 0xc
test ebp, ebp
je 0x40bdb4
test ebx, ebx
je 0x40bdb4
mov eax, ebp
mov dword [ebx], 0
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40bd48
lea edi, [esp + 0x98]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
nop
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40bd60
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0xc]
push edx
push 0xf003f
mov ecx, eax
push 0
lea eax, [esp + 0xa4]
push eax
and ecx, 3
push reloc.WS2_32.dll_bind
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bdcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_11_error__error_num_is___d___n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.0041aec3
add esp, 0x54c
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push str.NameServer
push eax
call esi
test eax, eax
je 0x40be19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_22_error__error_num_is___d___n
mov ecx, 0x43b48c
call fcn.0040a090
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bdb4
lea edx, [esp + 0x18]
push 0x42dd80
push edx
call fcn.0041d110
add esp, 8
test eax, eax
je 0x40bed4
lea eax, [esp + 0x18]
push str.127.0.0.1
push eax
call fcn.0041d262
add esp, 8
test eax, eax
jne 0x40beb7
lea eax, [esp + 0x18]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40be50
mov ecx, dword [str._127.0.0.1]
mov edx, dword [0x42fae8]
mov dword [eax], ecx
mov cx, word [0x42faec]
mov dword [eax + 4], edx
mov dl, byte [0x42faee]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40be86
sub eax, edx
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 1]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push str.NameServer
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebx], 0
jmp 0x40bebd
mov dword [ebx], 1
push str.install_dns_successfully__n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
jmp 0x40bfe3
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.DhcpNameServer
push edx
call esi
test eax, eax
jne 0x40bf8e
lea eax, [esp + 0x18]
push 0x42dd80
push eax
call fcn.0041d110
add esp, 8
test eax, eax
je 0x40bf8e
lea ecx, [esp + 0x18]
push str.127.0.0.1
push ecx
call fcn.0041d262
add esp, 8
test eax, eax
jne 0x40bf86
lea eax, [esp + 0x18]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40bf30
mov edx, dword [str._127.0.0.1]
mov ecx, dword [0x42fae8]
mov dword [eax], edx
mov dx, word [0x42faec]
mov dword [eax + 4], ecx
mov cl, byte [0x42faee]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bf66
sub eax, edx
lea edx, [eax + eax + 1]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.DhcpNameServer
jmp 0x40bfd2
mov dword [ebx], 1
jmp 0x40bfe3
mov eax, dword [0x42fadc]
mov edx, dword [str.127.0.0.1]
mov cx, word [0x42fae0]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
mov word [esp + 0x20], cx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bfb4
sub eax, edx
lea edx, [eax + eax + 1]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.NameServer
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebx], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.install_local_DNS_server_ok_n
mov ecx, 0x43b48c
call fcn.0040a090
mov ecx, dword [esp + 0x558]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0041aec3
add esp, 0x54c
ret