Function at 0x40ef4f
Capabilities:
Create thread
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov dword [0x4198b4], ecx
push ebx
push esi
push edi
jmp 0x40f14a
push 0xc
pop ecx
mov byte [ebp - 1], 0
call fcn.00405f53
mov ebx, eax
test ebx, ebx
je 0x40ef81
mov edi, ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x40ef83
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
imul eax, ecx, 0xc
lea edi, [eax + 0x4198c0]
cmp dword [edi], ecx
jne 0x40ef99
mov al, 1
mov ebx, edi
jmp 0x40ef9c
mov al, byte [ebp - 1]
test al, al
jne 0x40efc5
push ecx
push 2
lea edx, [ebp - 8]
mov word [ebp - 8], 5
call fcn.0040f1da
mov eax, dword [ebp - 0x1c]
mov esi, ebx
mov byte [ebx + 4], 1
mov dword [ebx], eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x40f149
cmp byte [ebx + 4], 1
jne 0x40f131
push 0x802
lea eax, [ebp - 0x868]
push 0
push eax
call fcn.00401052
add esp, 0xc
lea edi, [ebp - 0x50]
xor eax, eax
and dword [ebp - 0x10], eax
and dword [ebp - 0xc], eax
push 8
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp - 0x14]
mov al, byte [edi + 3]
cmp al, 1
jne 0x40f02e
push 0x802
lea eax, [ebp - 0x868]
push eax
lea esi, [edi + 4]
push esi
push 2
call dword [sym.imp.WS2_32.dll_InetNtopW]
movzx edx, word [edi + 8]
mov ecx, esi
call fcn.0040f3bd
jmp 0x40f0df
cmp al, 3
jne 0x40f0b8
push 0x20
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00401052
push 0x200
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 6
call fcn.00401085
movsx ecx, byte [edi + 4]
mov esi, eax
push ecx
lea ecx, [edi + 5]
push ecx
push esi
call fcn.0040102c
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push 1
push eax
movsx eax, byte [edi + 4]
add eax, esi
push eax
call fcn.0040102c
add esp, 0x28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40f0e2
movsx eax, byte [edi + 4]
movzx edx, word [eax + edi + 5]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
lea ecx, [ecx + 4]
jmp 0x40f024
cmp al, 4
jne 0x40f0e2
push 0x802
lea eax, [ebp - 0x868]
push eax
lea esi, [edi + 4]
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_InetNtopW]
movzx edx, word [edi + 8]
mov ecx, esi
call fcn.0040f33c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push eax
push 0xa
mov word [ebp - 0x30], 5
mov byte [ebp - 0x2d], 1
call fcn.0040f1da
imul edi, dword [ebx], 0xc
mov esi, ebx
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebx + 8], eax
xor ecx, ecx
add edi, 0x4198c0
mov byte [ebx + 4], 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
push eax
push ecx
movsd dword es:[edi], dword [esi]
push ebx
push 0x40f16e
push ecx
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp - 0x14]
jmp 0x40f143
mov esi, dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
push esi
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.00401099
pop ecx
lea eax, [ebp - 0x60]
push eax
call fcn.0040f23d
cmp byte [0x419695], 0
lea edi, [ebp - 0x1c]
mov esi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x40ef66
pop edi
pop esi
pop ebx
leave
ret