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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b225
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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 - 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 0x10030312
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 0x10030066
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.10026130
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x41], al
cmp ecx, 0xf
jbe 0x100300c6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100300b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003042f
push ecx
push edx
call fcn.100635d4
mov al, byte [ebp - 0x41]
add esp, 8
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
test al, al
jne 0x100300d8
cmp edi, esi
cmovne esi, edi
mov dword [ebp - 0x30], esi
cmp edi, esi
jne 0x10030158
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 0x10030158
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10030158
mov ecx, dword [eax]
test ecx, ecx
je 0x10030151
xor edi, edi
test ecx, ecx
je 0x1003014e
nop word [eax + eax]
mov eax, dword [eax + edi*4 + 4]
mov dword [ebp - 0x54], eax
cmp esi, dword [ebp - 0x2c]
je 0x10030136
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x30], esi
jmp 0x10030146
lea eax, [ebp - 0x54]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.1001a7b0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
inc edi
cmp edi, dword [eax]
jb 0x10030120
mov edi, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esi, edi
sar esi, 2
test esi, esi
jne 0x1003024b
mov eax, dword [str.8.8.8.8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov ax, word [0x1009994c]
mov word [ebp - 0x24], ax
mov al, byte [0x1009994e]
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.1001a9b0
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
cmp ecx, 0xf
jbe 0x100301db
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100301d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003042a
push ecx
push edx
call fcn.100635d4
add esp, 8
mov eax, dword [0x10099958]
movq xmm0, qword [str.114.114.114.114]
mov dword [ebp - 0x20], eax
mov ax, word [0x1009995c]
mov word [ebp - 0x1c], ax
mov al, byte [0x1009995e]
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.1001a9b0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x28], eax
cmp ecx, 0xf
jbe 0x100302a0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003028e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003042f
jmp 0x1003028e
mov eax, dword [edi]
cmp esi, 1
mov esi, dword [ebp - 0x4c]
mov dword [esi + 0x24], eax
jne 0x1003029a
mov eax, dword [str.8.8.8.8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x1009994c]
mov word [ebp - 0x24], ax
mov al, byte [0x1009994e]
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 0x10030214
push ecx
push edx
call fcn.100635d4
add esp, 8
jmp 0x100302a0
mov eax, dword [edi + 4]
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100302db
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100302d1
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003042f
push ecx
push edi
call fcn.100635d4
add esp, 8
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x30], 0
je 0x1003040b
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.10030a50
movzx eax, al
test eax, eax
mov dword [esi + 4], eax
setne al
jmp 0x1003040d
mov eax, dword [str.8.8.8.1]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov ax, word [0x10099964]
mov word [ebp - 0x24], ax
mov al, byte [0x10099966]
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.1001a9b0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
cmp ecx, 0xf
jbe 0x10030385
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003037b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003042f
push ecx
push edx
call fcn.100635d4
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 [0x1009994c]
mov word [ebp - 0x3c], ax
mov al, byte [0x1009994e]
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.1001a9b0
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x28], eax
cmp ecx, 0xf
jbe 0x100303f4
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100303ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003042f
push ecx
push edx
call fcn.100635d4
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x100302de
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.10063277
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1006dc9f
call fcn.1006dc9f
int3