Function at 0x4168b0
Capabilities:
Create thread
Create udp socket
Reference 114dns dns server
Reference google public dns server

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1170
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], edi
mov eax, dword [ebx + 8]
mov ecx, 0x504fb0
mov dword [ebp - 4], 0
mov dword [0x504d9c], eax
mov eax, dword [ebx + 0xc]
mov dword [0x505aa4], eax
mov eax, dword [ebx + 0x10]
mov dword [0x505aac], eax
mov eax, dword [esi]
mov dword [0x504fac], eax
lea eax, [esi + 4]
push eax
call fcn.004185b0
mov eax, dword [esi + 0x10]
mov dword [0x504fbc], eax
mov eax, dword [esi + 0x14]
mov esi, dword [ebp - 0x18]
mov dword [0x504fc0], eax
mov eax, dword [esi]
mov dword [0x504fc4], eax
mov eax, dword [esi + 4]
mov dword [0x504fc8], eax
mov eax, dword [esi + 8]
mov dword [0x504fcc], eax
mov eax, dword [esi + 0xc]
mov dword [0x504fd0], eax
lea eax, [esi + 0x10]
cmp eax, 0x504fd4
je 0x416984
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416978
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x504fd4
call fcn.00418770
lea eax, [esi + 0x28]
mov ecx, 0x504fec
push eax
call fcn.004185b0
lea eax, [esi + 0x34]
mov ecx, 0x504ff8
push eax
call fcn.00418500
lea eax, [esi + 0x3c]
mov ecx, 0x505000
push eax
call fcn.00418500
lea eax, [esi + 0x44]
mov ecx, 0x505008
push eax
call fcn.00418500
cmp edi, 0x505010
je 0x4169dc
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x4169ce
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, 0x505010
push eax
call fcn.00407620
lea eax, [edi + 0x18]
cmp eax, 0x505028
je 0x4169fd
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x4169f1
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x505028
call fcn.00407620
mov eax, dword [edi + 0x30]
mov ecx, 0x505050
mov dword [0x505040], eax
mov eax, dword [edi + 0x34]
mov dword [0x505044], eax
movzx eax, word [edi + 0x38]
mov word [0x505048], ax
movzx eax, word [edi + 0x3a]
mov word [0x50504a], ax
movzx eax, word [edi + 0x3c]
mov word [0x50504c], ax
lea eax, [edi + 0x40]
push eax
call fcn.00404fd0
lea eax, [edi + 0xcc]
mov ecx, 0x5050dc
push eax
call fcn.00404fd0
lea eax, [edi + 0x158]
cmp eax, 0x505168
je 0x416a6e
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x416a62
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x505168
call fcn.00407620
mov eax, dword [edi + 0x170]
mov ecx, 0x5056f0
mov dword [0x505180], eax
movzx eax, word [edi + 0x174]
mov word [0x505184], ax
mov al, byte [edi + 0x176]
mov byte [0x505186], al
mov eax, dword [edi + 0x178]
mov dword [0x505188], eax
lea eax, [ebx + 0x20]
push eax
call fcn.00418200
movzx eax, word [0x50504a]
mov edx, 2
mov ecx, dword [0x505044]
mov word [0x5057ca], ax
movzx eax, word [0x505048]
push 1
mov word [0x5057c8], dx
mov dword [0x5057cc], ecx
mov word [0x5056e0], dx
mov dword [0x5056e4], ecx
mov word [0x5056e2], ax
call fcn.00478c20
mov eax, dword [0x5056d0]
add esp, 4
cmp eax, dword [0x5056d4]
je 0x416b05
mov dword [0x5056d4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 1
push 6
mov dword [ebp - 0x44], 4
call dword [sym.imp.DNSAPI.dll_DnsQueryConfig]
test eax, eax
je 0x416b87
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418040
jmp 0x416d25
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x416b9f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418040
jmp 0x416d25
mov eax, dword [ecx]
test eax, eax
jne 0x416bbd
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418040
jmp 0x416d25
xor edi, edi
test eax, eax
je 0x416c04
mov eax, dword [ebp - 0x2c]
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [ecx + esi + 4]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [ebp - 0x28]
je 0x416be9
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
jmp 0x416bf9
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00419960
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
inc edi
add esi, 4
cmp edi, dword [ecx]
jb 0x416bd0
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp esi, edi
je 0x416c46
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [ebp - 0x1c]
je 0x416c2f
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x416c3f
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00419800
mov eax, dword [ebp - 0x20]
add esi, 4
cmp esi, edi
jne 0x416c18
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418040
mov eax, dword [ebp - 0x20]
xor edi, edi
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x416d25
xor edx, edx
xor esi, esi
mov dword [ebp - 0x18], edx
nop
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
mov edx, dword [ecx + edx]
mov ecx, str.www.baidu.com
push eax
sub esp, 8
call fcn.004154f0
add esp, 0xc
test al, al
je 0x416cf9
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
je 0x416cf9
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004075b0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + esi]
mov eax, dword [0x5056d4]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [0x5056d8]
je 0x416ce8
mov dword [eax], ecx
add dword [0x5056d4], 4
jmp 0x416d05
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, 0x5056d0
call fcn.00419960
jmp 0x416d05
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004075b0
mov eax, dword [ebp - 0x20]
inc edi
mov ecx, dword [ebp - 0x24]
add esi, 4
mov edx, dword [ebp - 0x18]
sub eax, ecx
add edx, 4
sar eax, 2
mov dword [ebp - 0x18], edx
cmp edi, eax
jb 0x416c70
mov eax, dword [0x5056d0]
cmp eax, dword [0x5056d4]
jne 0x416d9c
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.8.8.8.8
call esi
mov ecx, dword [0x5056d4]
mov dword [ebp - 0x4c], eax
cmp ecx, dword [0x5056d8]
je 0x416d5b
mov dword [ecx], eax
add dword [0x5056d4], 4
jmp 0x416d6a
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, 0x5056d0
call fcn.00419960
push str.114.114.114.114
call esi
mov ecx, dword [0x5056d4]
mov dword [ebp - 0x4c], eax
cmp ecx, dword [0x5056d8]
je 0x416d8d
mov dword [ecx], eax
add dword [0x5056d4], 4
jmp 0x416d9c
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, 0x5056d0
call fcn.00419960
mov dword [0x505c90], 0x10000e0
mov esi, 0x4ef320
mov dword [0x505c94], 0x20000e0
mov edi, 5
nop word [eax + eax]
mov ecx, dword [esi]
mov edx, 0x464410
push esi
call fcn.00464440
add esp, 4
add esi, 8
sub edi, 1
jne 0x416dc0
call fcn.0046e180
sub esp, 0x10
mov dword [0x505b88], eax
mov edx, 0x504fac
mov ecx, 0x504da0
push 0x504fc0
push 0x504fbc
call fcn.00463b50
add esp, 0x18
push 0x504fb0
push dword [0x504fc0]
push 0x504da0
call fcn.00417f40
mov esi, dword [sym.imp.WINMM.dll_timeSetEvent]
cmp dword [0x505ab0], edi
jne 0x416e3d
push 1
push 0x504a18
push 0x417f20
push edi
push 0xea60
call esi
mov dword [0x505ab0], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
push 0x30
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00472d9c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
push ecx
push 0x504fd4
push 0x5050dc
push 0x505168
push 0x505008
push 0x505000
push 0x504ff8
push dword [0x504fc8]
mov ecx, 0x50518c
push dword [0x504fc4]
call fcn.00444460
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x51], 0
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp byte [eax + 0xd], 0
jne 0x416ede
nop dword [eax]
lea ecx, [eax + 0x10]
lea eax, [ecx + 0x18]
push eax
push ecx
call fcn.00419fc0
lea ecx, [ebp - 0x18]
call fcn.00418700
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xd], 0
je 0x416ec0
cmp dword [0x5059cc], 0
movzx eax, word [0x505184]
mov ecx, dword [0x505180]
jne 0x416f57
mov edx, 2
xorps xmm0, xmm0
push 0x11
movups xmmword [0x5059d0], xmm0
push edx
movlpd qword [0x5059b8], xmm0
push edx
movlpd qword [0x5059c0], xmm0
movups xmmword [ebp - 0x34], xmm0
mov word [0x5059d0], dx
mov dword [0x5059d4], ecx
mov word [0x5059d2], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x5059cc], eax
test eax, eax
je 0x416f57
push 1
push 0x504a18
push 0x417e00
push 0
push 0x3e8
call esi
mov dword [0x5059c8], eax
cmp dword [0x505aa8], 0
jne 0x416f7a
push 1
push 0x504a18
push 0x417f00
push 0
push 0x190
call esi
mov dword [0x505aa8], eax
push 0x50571c
push 0x505718
call fcn.0041f8d0
mov eax, dword [ebp - 0x40]
sub esp, 0x10
add eax, 0x5c
push eax
push ecx
mov ecx, 0x5057f0
call fcn.004160b0
push 0x11
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, 0x5057f0
call fcn.004163c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, 0x5057f0
call fcn.004163c0
cmp byte [0x504d20], 0
jne 0x4170a4
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
push 0x504d24
mov dword [ebp - 0x48], 0x504d24
mov byte [ebp - 0x44], 0
call fcn.004747a4
add esp, 4
test eax, eax
jne 0x41728d
mov eax, dword [0x504d50]
cmp eax, 0x7fffffff
jne 0x41700a
dec eax
mov dword [0x504d50], eax
jmp 0x41729a
mov byte [ebp - 0x44], 1
mov byte [ebp - 4], 5
cmp byte [0x504d20], 0
jne 0x417093
push 8
mov byte [0x504d20], 1
call fcn.00472d9c
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [eax], 0x415930
mov dword [eax + 4], 0x504d1c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
push ecx
push 0
push eax
push 0x40ba90
push 0
push 0
call fcn.004a0b8c
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x41727f
mov byte [ebp - 4], 5
cmp dword [0x504d58], 0
mov dword [ebp - 0x40], 0
jne 0x41727a
mov eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [0x504d54], ecx
mov dword [0x504d58], eax
push 0x504d24
mov byte [ebp - 4], 4
call fcn.004747b5
add esp, 4
call fcn.0041a940
test al, al
je 0x4170d2
movzx eax, byte [0x505186]
mov ecx, 0x504a1c
push eax
movzx eax, word [0x50504c]
push 0x505050
push eax
push dword [0x505044]
call fcn.004049a0
mov esi, dword [0x504fcc]
test esi, esi
je 0x417157
shl esi, 0xa
cmp byte [0x505ab8], 0
jne 0x417157
test esi, esi
jle 0x417157
push 0x505abc
call fcn.004747a4
add esp, 4
test eax, eax
jne 0x41728d
mov eax, dword [0x505ae8]
cmp eax, 0x7fffffff
jne 0x417118
dec eax
mov dword [0x505ae8], eax
jmp 0x41729a
cmp byte [0x505ab8], 0
jne 0x41714a
mov dword [0x505aec], esi
mov dword [0x505af0], esi
mov dword [0x505af4], esi
call fcn.00415e80
mov dword [0x505af8], eax
mov dword [0x505afc], edx
mov byte [0x505ab8], 1
push 0x505abc
call fcn.004747b5
add esp, 4
mov esi, dword [0x504fd0]
test esi, esi
je 0x4171d5
shl esi, 0xa
cmp byte [0x505b00], 0
jne 0x4171d5
test esi, esi
jle 0x4171d5
push 0x505b04
call fcn.004747a4
add esp, 4
test eax, eax
jne 0x41728d
mov eax, dword [0x505b30]
cmp eax, 0x7fffffff
je 0x417294
cmp byte [0x505b00], 0
jne 0x4171c8
mov dword [0x505b34], esi
mov dword [0x505b38], esi
mov dword [0x505b3c], esi
call fcn.00415e80
mov dword [0x505b40], eax
mov dword [0x505b44], edx
mov byte [0x505b00], 1
push 0x505b04
call fcn.004747b5
add esp, 4
mov eax, dword [ebp - 0x3c]
mov byte [0x504d98], 1
push dword [eax + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, eax
call fcn.00419570
push 0x30
push dword [ebp - 0x3c]
call fcn.00472d8e
mov edx, dword [ebp - 0x24]
add esp, 8
test edx, edx
je 0x417242
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x417223
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4172a1
push ecx
push edx
call fcn.00472d8e
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x41725a
mov edx, dword [ecx]
lea eax, [ebx + 0x20]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x40
call fcn.004a0c3d
push 6
mov dword [ebp - 0x4c], 0
call fcn.004740f8
push 5
call fcn.004740f8
dec eax
mov dword [0x505b30], eax
push 6
call fcn.004740f8
call fcn.004a091e
int3