Function at 0x4a7150
Capabilities:
Reference opendns dns server
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0a24
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x6385e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x20]
call fcn.00446640
mov dword [ebp - 4], 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters_
lea ecx, [ebp - 0x2c]
call fcn.004b3550
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00414b30
mov ecx, eax
call fcn.00414800
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a736f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 0
je 0x4a71f7
push 1
mov eax, dword [ebp - 0xec]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xec]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x138], eax
jmp 0x4a7201
mov dword [ebp - 0x138], 0
push str.Interfaces_
lea ecx, [ebp - 0x2c]
call fcn.004b3b40
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00414b30
mov ecx, eax
call fcn.00414800
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a736f
push 0
lea ecx, [ebp - 0x38]
call fcn.00430200
mov byte [ebp - 4], 2
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00414060
mov dword [ebp - 0x3c], 0
jmp 0x4a7259
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
call fcn.004b9730
cmp dword [ebp - 0x3c], eax
jge 0x4a731f
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00430700
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00414800
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4a731a
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004b34d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00430700
push eax
lea ecx, [ebp - 0x4c]
call fcn.004b3ad0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.004a7e00
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xf4], edx
cmp dword [ebp - 0xf4], 0
je 0x4a7304
push 1
mov eax, dword [ebp - 0xf4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xf4]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x13c], eax
jmp 0x4a730e
mov dword [ebp - 0x13c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004b3860
jmp 0x4a7250
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 0
je 0x4a7359
push 1
mov eax, dword [ebp - 0xfc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xfc]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x140], eax
jmp 0x4a7363
mov dword [ebp - 0x140], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00430250
lea ecx, [ebp - 0x20]
call fcn.004c3bf0
test eax, eax
jle 0x4a78c1
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4a78c1
mov ecx, dword [ebp - 0x50]
mov dword [ecx], 4
push str.208.67.222.222
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 0x50]
mov dword [edx + 4], eax
push str.194.134.5.5
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], eax
push str.208.67.220.220
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xc], eax
push str.194.134.0.97
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x74]
call fcn.00446780
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.004b34a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.004b34a0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x74]
call fcn.004467e0
movzx edx, al
test edx, edx
je 0x4a7893
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x134]
mov ecx, dword [ecx + 4]
call fcn.0041e0d0
test eax, eax
je 0x4a7440
jmp 0x4a740b
mov dword [ebp - 0x7c], 0
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.004a7900
mov byte [ebp - 4], 7
push str..sbl.spamhaus.org
lea ecx, [ebp - 0x88]
call fcn.004b3b40
push 0
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0x1008
push 1
lea ecx, [ebp - 0x88]
call fcn.004553f0
push eax
call sub.DNSAPI.dll_DnsQuery_W
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x4a786e
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x4a786e
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 0xc]
and edx, 3
cmp edx, 1
je 0x4a74cc
jmp 0x4a785b
mov eax, dword [ebp - 0x8c]
movzx ecx, word [eax + 8]
cmp ecx, 1
jne 0x4a785b
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4a785b
lea ecx, [ebp - 0xdc]
call fcn.004b34a0
mov byte [ebp - 4], 8
push 0
lea ecx, [ebp - 0xac]
call fcn.00430200
mov byte [ebp - 4], 9
lea edx, [ebp - 0xac]
push edx
push 0x5fc5a0
lea ecx, [ebp - 0x68]
call fcn.004b63d0
test eax, eax
jle 0x4a75ea
lea ecx, [ebp - 0xac]
call fcn.004b9730
sub eax, 1
push eax
lea ecx, [ebp - 0xac]
call fcn.00430700
push eax
lea ecx, [ebp - 0xe8]
call fcn.004b34d0
mov byte [ebp - 4], 0xa
push 0x5ff03c
lea ecx, [ebp - 0xe8]
call fcn.004b6880
movzx eax, al
test eax, eax
je 0x4a75db
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x134]
call fcn.004a7c20
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x148]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.004b3890
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10c]
call fcn.004b3860
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe8]
call fcn.004b3860
lea ecx, [ebp - 0xdc]
call fcn.00404b70
test eax, eax
jne 0x4a7608
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0xdc]
call fcn.004b3890
push str.Policies_UnsafeDNS_Title
lea ecx, [ebp - 0x118]
call fcn.004b3550
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx + 4]
call fcn.0041b330
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x118]
call fcn.004b3860
lea ecx, [ebp - 0x5c]
call fcn.004553f0
push eax
lea ecx, [ebp - 0xcc]
call fcn.004553f0
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004b4d50
add esp, 0xc
mov byte [ebp - 4], 0xf
push str.Policies_UnsafeDNS_Description
lea ecx, [ebp - 0x124]
call fcn.004b3550
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
call fcn.0041b330
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x124]
call fcn.004b3860
push 0x60
call fcn.0054d57b
add esp, 4
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x12c], 0
je 0x4a76f0
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x12c]
call fcn.004a5cc0
mov dword [ebp - 0x14c], eax
jmp 0x4a76fa
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0xb4], edx
lea ecx, [ebp - 0xc0]
call fcn.004553f0
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00490030
mov ecx, dword [ebp - 0xb4]
call fcn.00435950
push eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
call fcn.0042c160
mov byte [ebp - 0xcd], al
movzx ecx, byte [ebp - 0xcd]
test ecx, ecx
sete dl
movzx eax, dl
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00412490
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx + 4]
call fcn.0041e250
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0xb4]
call fcn.00409180
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
call fcn.0040fb30
push 7
mov ecx, dword [ebp - 0xb0]
call fcn.0040fb50
push 8
mov ecx, dword [ebp - 0xb0]
call fcn.0040fb50
movzx edx, byte [ebp - 0xcd]
neg edx
sbb edx, edx
neg edx
add edx, 7
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.0040fa60
push 1
mov ecx, dword [ebp - 0xb0]
call fcn.0040f9c0
movzx eax, byte [ebp - 0xcd]
test eax, eax
sete cl
movzx edx, cl
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.0040fa10
push 1
mov ecx, dword [ebp - 0xb0]
call fcn.0040faa0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc0]
call fcn.004b3860
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa0]
call fcn.004b3860
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xcc]
call fcn.004b3860
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xac]
call fcn.00430250
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.004b3860
jmp 0x4a786e
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
jmp 0x4a74a9
cmp dword [ebp - 0x7c], 0
je 0x4a787f
push 1
mov edx, dword [ebp - 0x7c]
push edx
call sub.DNSAPI.dll_DnsRecordListFree
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x88]
call fcn.004b3860
jmp 0x4a740b
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.004b3860
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.004b3860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004467c0
mov byte [ebp - 0x12d], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042f870
mov al, byte [ebp - 0x12d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret