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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov dword [0x559cac], ecx
push ebx
push esi
push edi
jmp 0x410669
push 0xc
pop ecx
mov byte [ebp - 1], 0
call fcn.00406099
mov ebx, eax
test ebx, ebx
je 0x4104a0
mov edi, ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x4104a2
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
imul eax, ecx, 0xc
lea edi, [eax + 0x426980]
cmp dword [edi], ecx
jne 0x4104b8
mov al, 1
mov ebx, edi
jmp 0x4104bb
mov al, byte [ebp - 1]
test al, al
jne 0x4104e4
push ecx
push 2
lea edx, [ebp - 8]
mov word [ebp - 8], 5
call fcn.004106f9
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 0x410668
cmp byte [ebx + 4], 1
jne 0x410650
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 0x41054d
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.004108dc
jmp 0x4105fe
cmp al, 3
jne 0x4105d7
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 0x410601
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 0x410543
cmp al, 4
jne 0x410601
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.0041085b
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.004106f9
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, 0x426980
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 0x41068d
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 0x410662
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.0041075c
cmp byte [0x426755], 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 0x410485
pop edi
pop esi
pop ebx
leave
ret