Function at 0x10037170
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x1003729b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0x100007f
jne 0x1003719c
mov al, 1
jmp 0x100373df
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x100371ac
mov al, 1
jmp 0x100373df
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x1010101
jne 0x100371bf
mov al, 1
jmp 0x100373df
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
jne 0x100371cf
mov al, 1
jmp 0x100373df
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100371ec
xor al, al
jmp 0x100373df
movsx ecx, byte [0x10121bc8]
test ecx, ecx
je 0x10037213
push 0x10121bc8
mov edx, dword [ebp - 8]
push edx
call fcn.10008260
add esp, 8
test eax, eax
jne 0x10037213
mov al, 1
jmp 0x100373df
movsx eax, byte [0x101277e0]
test eax, eax
je 0x10037270
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x10037270
mov eax, dword [ebp - 8]
push eax
push 0x101277e0
call fcn.10008370
add esp, 8
test eax, eax
je 0x1003726e
cmp dword [0x1011fd7c], 0x68
je 0x1003724f
cmp dword [0x1011fd7c], 2
jne 0x10037267
mov ecx, dword [ebp - 8]
push ecx
push 0x101277e0
push str.CSendMonitorDDX::isMyIP_g_tc_ExceptIP_:__s__strAddr_:__s
push 0
call fcn.1003b780
add esp, 0x10
mov al, 1
jmp 0x100373df
jmp 0x10037294
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x10037294
mov ecx, dword [ebp - 8]
push ecx
call fcn.10015e10
add esp, 4
movzx edx, al
test edx, edx
je 0x10037294
mov al, 1
jmp 0x100373df
xor al, al
jmp 0x100373df
cmp dword [ebp + 0xc], 0
jne 0x100372a8
xor al, al
jmp 0x100373df
movsx eax, byte [0x10121bc8]
test eax, eax
je 0x100372cf
push 0x10121bc8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10008260
add esp, 8
test eax, eax
jne 0x100372cf
mov al, 1
jmp 0x100373df
push 8
push str.169.254.
mov edx, dword [ebp + 0xc]
push edx
call fcn.100082c0
add esp, 0xc
test eax, eax
jne 0x100372f7
mov dword [0x10067500], 0x1f2e3d4c
mov al, 1
jmp 0x100373df
push 0x100601f0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10008260
add esp, 8
test eax, eax
jne 0x10037313
mov al, 1
jmp 0x100373df
push str.0.0.0.0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10008260
add esp, 8
test eax, eax
jne 0x1003732f
mov al, 1
jmp 0x100373df
push str.1.1.1.1
mov edx, dword [ebp + 0xc]
push edx
call fcn.10008260
add esp, 8
test eax, eax
jne 0x1003734b
mov al, 1
jmp 0x100373df
push str.255.255.255.255
mov eax, dword [ebp + 0xc]
push eax
call fcn.10008260
add esp, 8
test eax, eax
jne 0x10037364
mov al, 1
jmp 0x100373df
movsx ecx, byte [0x101277e0]
test ecx, ecx
je 0x100373bc
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x100373bc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x101277e0
call fcn.10008370
add esp, 8
test eax, eax
je 0x100373bc
cmp dword [0x1011fd7c], 0x68
je 0x100373a0
cmp dword [0x1011fd7c], 2
jne 0x100373b8
mov edx, dword [ebp + 0xc]
push edx
push 0x101277e0
push str.CSendMonitorDDX::isMyIP2_g_tc_ExceptIP_:__s__addr_:__s
push 0
call fcn.1003b780
add esp, 0x10
mov al, 1
jmp 0x100373df
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100373dd
mov edx, dword [ebp + 0xc]
push edx
call fcn.10015e10
add esp, 4
movzx eax, al
test eax, eax
je 0x100373dd
mov al, 1
jmp 0x100373df
xor al, al
mov esp, ebp
pop ebp
ret 8