Function at 0x40274d
Capabilities:
Reference cloudflare dns server

Disassembly:
mov eax, 0x4229b6
call fcn.0040e090
sub esp, 0x2b8
mov al, byte [ebp + 0xf]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.00402fae
lea eax, [esi + 0x470]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.00408d2c
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
lea ebx, [eax + 0x15]
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x1c], al
call fcn.00402fae
push ebx
call fcn.0040e350
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00403355
lea eax, [ebp - 0x1c]
lea edi, [esi + 0x460]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
call fcn.00403314
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402fae
mov eax, dword [esi + 0x464]
cmp dword [ebp - 0x20], eax
jne 0x4028a9
and byte [ebp - 0x2c4], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c3]
add esi, 0x48c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push esi
lea eax, [ebp - 0x2c4]
push str._s__s
push eax
call fcn.0040e0af
push 0x20
call fcn.0041b3a8
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x402837
mov ecx, eax
call fcn.00406ea9
mov esi, eax
jmp 0x402839
xor esi, esi
lea eax, [ebp - 0x2c4]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.00406f36
test al, al
je 0x402896
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402fae
push ebx
call fcn.0040e350
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00403355
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00402e0a
mov ecx, eax
push 1
pop eax
mov dword [ecx], esi
mov byte [ebp - 4], al
push eax
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x1c]
jmp 0x402927
test esi, esi
je 0x4028a2
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
jmp 0x40292c
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402fae
push ebx
call fcn.0040e350
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00403355
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
mov byte [ebp - 4], 5
call fcn.00402e0a
mov esi, dword [eax]
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402fae
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.00402fae
push ebx
call fcn.0040e350
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x38]
call fcn.00403355
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
mov byte [ebp - 4], 6
call fcn.00402e0a
add eax, 4
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x38]
inc dword [eax]
call fcn.00402fae
and byte [ebp - 0x1c4], 0
push 0x5d
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c3]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c4]
stosw word es:[edi], ax
call fcn.00403a5d
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x1b1], 7
inc eax
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040e140
lea eax, [ebp - 0x19c]
push ebx
push eax
call fcn.0040e140
lea eax, [ebp - 0x9d]
push str.1.0.0.1
push eax
call fcn.0040e140
add esp, 0x18
push 0x164
call dword [sym.imp.WS2_32.dll_htonl]
test esi, esi
mov dword [ebp - 0x1b5], eax
je 0x4029ad
and dword [ebp - 0x85], 0
mov esi, dword [esi + 0x18]
mov dword [ebp - 0x89], esi
jmp 0x4029be
and dword [ebp - 0x89], 0
mov dword [ebp - 0x85], 3
lea eax, [ebp - 0x1b1]
mov ecx, 0x4323d0
push eax
call fcn.004047d3
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c4]
push 0x177
push edx
mov eax, dword [ecx]
call dword [eax + 8]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00408d45
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.00402fae
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8