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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b335
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 0x100302db
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 0x10030026
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 0x10030086
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030079
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303f8
push ecx
push edx
call fcn.10063694
mov al, byte [ebp - 0x41]
add esp, 8
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
test al, al
jne 0x10030098
cmp edi, esi
cmovne esi, edi
mov dword [ebp - 0x30], esi
cmp edi, esi
jne 0x10030121
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 0x10030121
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10030121
mov edx, dword [eax]
test edx, edx
je 0x1003011a
xor ecx, ecx
mov dword [ebp - 0x50], ecx
test edx, edx
je 0x1003011a
xor edi, edi
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x58], eax
cmp esi, dword [ebp - 0x2c]
je 0x100300f6
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x30], esi
jmp 0x10030109
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 0x100300e0
mov edi, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esi, edi
sar esi, 2
test esi, esi
jne 0x10030214
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 0x100301a4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003019a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303f3
push ecx
push edx
call fcn.10063694
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 0x10030269
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030257
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303f8
jmp 0x10030257
mov eax, dword [edi]
cmp esi, 1
mov esi, dword [ebp - 0x4c]
mov dword [esi + 0x24], eax
jne 0x10030263
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 0x100301dd
push ecx
push edx
call fcn.10063694
add esp, 8
jmp 0x10030269
mov eax, dword [edi + 4]
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100302a4
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1003029a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303f8
push ecx
push edi
call fcn.10063694
add esp, 8
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x30], 0
je 0x100303d4
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.10030a10
movzx eax, al
test eax, eax
mov dword [esi + 4], eax
setne al
jmp 0x100303d6
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 0x1003034e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10030344
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303f8
push ecx
push edx
call fcn.10063694
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 0x100303bd
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100303b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100303f8
push ecx
push edx
call fcn.10063694
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x100302a7
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.10063337
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1006dd3f
call fcn.1006dd3f
int3