Function at 0x10030000
Capabilities:
Reference 114dns dns server
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e1a5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
cmp byte [esi + 0x2e], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], eax
je 0x10030342
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030096
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003200
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10026340
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x41], al
cmp ecx, 0xf
jbe 0x100300f6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100300e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003045f
push ecx
push edx
call fcn.100666c9
mov al, byte [ebp - 0x41]
add esp, 8
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
test al, al
jne 0x10030108
cmp edi, esi
cmovne esi, edi
mov dword [ebp - 0x30], esi
cmp edi, esi
jne 0x10030188
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 4
push eax
push 0
push 0
push 1
push 6
call dword [sym.imp.DNSAPI.dll_DnsQueryConfig]
test eax, eax
jne 0x10030188
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10030188
mov ecx, dword [eax]
test ecx, ecx
je 0x10030181
xor edi, edi
test ecx, ecx
je 0x1003017e
nop word [eax + eax]
mov eax, dword [eax + edi*4 + 4]
mov dword [ebp - 0x54], eax
cmp esi, dword [ebp - 0x2c]
je 0x10030166
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x30], esi
jmp 0x10030176
lea eax, [ebp - 0x54]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.1001a7d0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
inc edi
cmp edi, dword [eax]
jb 0x10030150
mov edi, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esi, edi
sar esi, 2
test esi, esi
jne 0x1003027b
mov eax, dword [str.8.8.8.8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov ax, word [0x1009c974]
mov word [ebp - 0x24], ax
mov al, byte [0x1009c976]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
call fcn.1001a9d0
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
cmp ecx, 0xf
jbe 0x1003020b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030201
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003045a
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, dword [0x1009c980]
movq xmm0, qword [str.114.114.114.114]
mov dword [ebp - 0x20], eax
mov ax, word [0x1009c984]
mov word [ebp - 0x1c], ax
mov al, byte [0x1009c986]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], 0
lea ecx, [ebp - 0x28]
call fcn.1001a9d0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x28], eax
cmp ecx, 0xf
jbe 0x100302d0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100302be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003045f
jmp 0x100302be
mov eax, dword [edi]
cmp esi, 1
mov esi, dword [ebp - 0x4c]
mov dword [esi + 0x24], eax
jne 0x100302ca
mov eax, dword [str.8.8.8.8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x1009c974]
mov word [ebp - 0x24], ax
mov al, byte [0x1009c976]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
jmp 0x10030244
push ecx
push edx
call fcn.100666c9
add esp, 8
jmp 0x100302d0
mov eax, dword [edi + 4]
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003030b
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10030301
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003045f
push ecx
push edi
call fcn.100666c9
add esp, 8
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x30], 0
je 0x1003043b
push dword [ebp + 0x20]
mov ecx, esi
push dword [ebp + 0x1c]
push dword [ebp - 0x58]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x5c]
call fcn.10030a40
movzx eax, al
test eax, eax
mov dword [esi + 4], eax
setne al
jmp 0x1003043d
mov eax, dword [str.8.8.8.1]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov ax, word [0x1009c98c]
mov word [ebp - 0x24], ax
mov al, byte [0x1009c98e]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
call fcn.1001a9d0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
cmp ecx, 0xf
jbe 0x100303b5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100303ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003045f
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, dword [str.8.8.8.8]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
xorps xmm0, xmm0
mov ax, word [0x1009c974]
mov word [ebp - 0x3c], ax
mov al, byte [0x1009c976]
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x39], 0
call fcn.1001a9d0
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x28], eax
cmp ecx, 0xf
jbe 0x10030424
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003041a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003045f
push ecx
push edx
call fcn.100666c9
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x1003030e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 0x1c
call fcn.10070c0f
call fcn.10070c0f
int3