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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b315
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100a70c0]
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 - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], eax
je 0x100302bb
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 0x10030006
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003170
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.100260c0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x41], al
cmp ecx, 0xf
jbe 0x10030066
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030059
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303d8
push ecx
push edx
call fcn.10063674
mov al, byte [ebp - 0x41]
add esp, 8
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
test al, al
jne 0x10030078
cmp edi, esi
cmovne esi, edi
mov dword [ebp - 0x30], esi
cmp edi, esi
jne 0x10030101
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], 4
push eax
push 0
push 0
push 1
push 6
call dword [sym.imp.DNSAPI.dll_DnsQueryConfig]
test eax, eax
jne 0x10030101
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10030101
mov edx, dword [eax]
test edx, edx
je 0x100300fa
xor ecx, ecx
mov dword [ebp - 0x50], ecx
test edx, edx
je 0x100300fa
xor edi, edi
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x58], eax
cmp esi, dword [ebp - 0x2c]
je 0x100300d6
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x30], esi
jmp 0x100300e9
lea eax, [ebp - 0x58]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.1001a740
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
inc ecx
add edi, 4
mov dword [ebp - 0x50], ecx
cmp ecx, dword [eax]
jb 0x100300c0
mov edi, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esi, edi
sar esi, 2
test esi, esi
jne 0x100301f4
mov eax, dword [str.8.8.8.8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov ax, word [0x100999c4]
mov word [ebp - 0x24], ax
mov al, byte [0x100999c6]
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.1001a940
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
cmp ecx, 0xf
jbe 0x10030184
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003017a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303d3
push ecx
push edx
call fcn.10063674
add esp, 8
mov eax, dword [0x100999d0]
movq xmm0, qword [str.114.114.114.114]
mov dword [ebp - 0x20], eax
mov ax, word [0x100999d4]
mov word [ebp - 0x1c], ax
mov al, byte [0x100999d6]
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.1001a940
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x28], eax
cmp ecx, 0xf
jbe 0x10030249
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030237
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303d8
jmp 0x10030237
mov eax, dword [edi]
cmp esi, 1
mov esi, dword [ebp - 0x4c]
mov dword [esi + 0x24], eax
jne 0x10030243
mov eax, dword [str.8.8.8.8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x100999c4]
mov word [ebp - 0x24], ax
mov al, byte [0x100999c6]
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 0x100301bd
push ecx
push edx
call fcn.10063674
add esp, 8
jmp 0x10030249
mov eax, dword [edi + 4]
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10030284
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1003027a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303d8
push ecx
push edi
call fcn.10063674
add esp, 8
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x30], 0
je 0x100303b4
push dword [ebp + 0x20]
mov ecx, esi
push dword [ebp + 0x1c]
push dword [ebp - 0x5c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x60]
call fcn.100309f0
movzx eax, al
test eax, eax
mov dword [esi + 4], eax
setne al
jmp 0x100303b6
mov eax, dword [str.8.8.8.1]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov ax, word [0x100999dc]
mov word [ebp - 0x24], ax
mov al, byte [0x100999de]
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.1001a940
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
cmp ecx, 0xf
jbe 0x1003032e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030324
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303d8
push ecx
push edx
call fcn.10063674
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 [0x100999c4]
mov word [ebp - 0x3c], ax
mov al, byte [0x100999c6]
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.1001a940
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x28], eax
cmp ecx, 0xf
jbe 0x1003039d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030393
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303d8
push ecx
push edx
call fcn.10063674
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x10030287
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.10063317
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1006dd1f
call fcn.1006dd1f
int3