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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
push 8
call fcn.004036c5
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x6a9aa3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.004036c5
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x6a9aa3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.004036c5
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x6a9aa3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401a1e
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
jne 0x4015af
mov ebx, dword [ebp - 0xc]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x401258
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40126b
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
call fcn.0040206a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4012ab
push eax
mov ebx, eax
call fcn.004010bd
inc eax
push eax
call fcn.004036c5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4012bc
push ebx
call fcn.004036ad
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4012dc
push eax
mov ebx, eax
call fcn.004010bd
inc eax
push eax
call fcn.004036c5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4012ed
push ebx
call fcn.004036ad
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40130d
push eax
mov ebx, eax
call fcn.004010bd
inc eax
push eax
call fcn.004036c5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40131e
push ebx
call fcn.004036ad
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40133f
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401352
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov eax, str.8.8.8.8
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.114.114.114.114
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
call fcn.00402d93
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x401399
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4013a9
push ebx
call fcn.004036ad
add esp, 4
cmp dword [ebp - 0x40], 1
jne 0x4015a0
push getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4013c6
mov eax, 0x6a9a44
push eax
push getpeername
push 0
push 0x6a9a45
push getpeername
push 0
push 0x6a9a4d
push getpeername
push 0
push 0x6a9a5a
push 4
mov ebx, 0x404d00
call fcn.004036bf
add esp, 0x34
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x401410
mov eax, 0x6a9a44
push eax
push getpeername
push 0
push 0x6a9a6a
push getpeername
push 0
push 0x6a9a4d
push getpeername
push 0
push 0x6a9a5a
push 4
mov ebx, 0x404d00
call fcn.004036bf
add esp, 0x34
mov ebx, dword [ebp - 0x10]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x401464
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401477
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push 0x6a9a72
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push str.cmd__c_devcon_disable__
mov ecx, 3
call fcn.00401128
add esp, 0xc
mov dword [ebp - 0x38], eax
push 0x80000301
push 0
push 1
push getpeername
push 0
push 1
push getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4014c9
mov eax, 0x6a9a44
push eax
push 3
mov ebx, 0x403990
call fcn.004036bf
add esp, 0x28
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4014ec
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x10]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x401509
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40151c
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push 0x6a9a72
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push str.cmd__c_devcon_enable__
mov ecx, 3
call fcn.00401128
add esp, 0xc
mov dword [ebp - 0x38], eax
push 0x80000301
push 0
push 1
push getpeername
push 0
push 1
push getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40156e
mov eax, 0x6a9a44
push eax
push 3
mov ebx, 0x403990
call fcn.004036bf
add esp, 0x28
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401591
push ebx
call fcn.004036ad
add esp, 4
mov eax, 1
jmp 0x401811
mov eax, 0
jmp 0x401811
mov ebx, dword [ebp - 0xc]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4015cc
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4015df
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push 0
push 0
push 0
push getpeername
push 0
push 0x6a9a45
push getpeername
push 0
push 0x6a9a4d
push getpeername
push 0
push 0x6a9a5a
push 4
mov ebx, 0x404c00
call fcn.004036bf
add esp, 0x34
mov dword [ebp - 0x38], eax
push 0
push 0
push 0
push getpeername
push 0
push 0x6a9a6a
push getpeername
push 0
push 0x6a9a4d
push getpeername
push 0
push 0x6a9a5a
push 4
mov ebx, 0x404c00
call fcn.004036bf
add esp, 0x34
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
call fcn.00402d93
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401694
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4016a4
push ebx
call fcn.004036ad
add esp, 4
cmp dword [ebp - 0x40], 1
jne 0x401807
mov ebx, dword [ebp - 0x10]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4016cb
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4016de
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push 0x6a9a72
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push str.cmd__c_devcon_disable__
mov ecx, 3
call fcn.00401128
add esp, 0xc
mov dword [ebp - 0x38], eax
push 0x80000301
push 0
push 1
push getpeername
push 0
push 1
push getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x401730
mov eax, 0x6a9a44
push eax
push 3
mov ebx, 0x403990
call fcn.004036bf
add esp, 0x28
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401753
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x10]
call fcn.0040109d
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x401770
push 4
call fcn.004036b3
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401783
push 1
call fcn.004036b3
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push 0x6a9a72
mov ebx, dword [ebp - 0x34]
push dword [ebx]
push str.cmd__c_devcon_enable__
mov ecx, 3
call fcn.00401128
add esp, 0xc
mov dword [ebp - 0x38], eax
push 0x80000301
push 0
push 1
push getpeername
push 0
push 1
push getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4017d5
mov eax, 0x6a9a44
push eax
push 3
mov ebx, 0x403990
call fcn.004036bf
add esp, 0x28
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4017f8
push ebx
call fcn.004036ad
add esp, 4
mov eax, 1
jmp 0x401811
mov eax, 0
jmp 0x401811
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401830
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40182c
imul eax, dword [ebx]
jmp 0x401821
mov ecx, eax
test ecx, ecx
je 0x40184f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401848
push ebx
push eax
call fcn.004036ad
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401836
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401875
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401871
imul eax, dword [ebx]
jmp 0x401866
mov ecx, eax
test ecx, ecx
je 0x401894
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40188d
push ebx
push eax
call fcn.004036ad
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40187b
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4018ba
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4018b6
imul eax, dword [ebx]
jmp 0x4018ab
mov ecx, eax
test ecx, ecx
je 0x4018d9
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4018d2
push ebx
push eax
call fcn.004036ad
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4018c0
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4018f1
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401901
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401911
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401921
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401931
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401941
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401951
push ebx
call fcn.004036ad
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401961
push ebx
call fcn.004036ad
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4