Function at 0x404360
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x491e1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push str.arp__d
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ebp, [esi + 0xc]
push 0x4b9a58
mov ecx, ebp
call fcn.00474f89
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call fcn.00474b75
mov ecx, esi
call fcn.00403f10
lea eax, [esp + 0x144]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4043e6
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4b2410
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
mov edi, 1
push 6
push edi
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x404421
call sub.WSOCK32.dll_WSACleanup
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4b2404
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
lea ecx, [ecx + ecx*4]
push 0x1005
push 0xffff
push eax
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
mov dword [esp + 0x30], ecx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x404476
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4b23f0
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4044bb
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4b23dc
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
push ecx
lea ebx, [esi + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
call fcn.00474b75
push ecx
mov dword [esp + 0x2e4], 0
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4b23cc
call fcn.00474e6e
mov ecx, esi
mov dword [esp + 0x2e4], 0xffffffff
call fcn.00403ff0
mov eax, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x30], edi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x40453b
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4b23b8
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
mov eax, dword [esi + 8]
mov word [esp + 0x30], 2
push eax
call sub.WSOCK32.dll_inet_addr
push 0x17
mov dword [esp + 0x38], eax
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push 0x10
push ecx
push edx
mov word [esp + 0x3e], ax
call sub.WSOCK32.dll_connect
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x40], edi
lea edx, [esp + 0x28]
mov dword [esp + 0x44], eax
xor edi, edi
push edx
lea eax, [esp + 0x44]
push edi
push eax
push edi
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
call sub.WSOCK32.dll_select
test eax, eax
jg 0x4045bf
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4b23ac
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x2c], edi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x404601
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4b23b8
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d
push 0x4b9a58
mov ecx, ebx
call fcn.00474f89
mov ecx, esi
call fcn.004040c0
test eax, eax
je 0x404634
push str.UserName_
mov ecx, ebp
call fcn.0046e6d7
cmp eax, 0xffffffff
jne 0x404647
mov ecx, esi
call fcn.004040c0
test eax, eax
jne 0x404618
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
jmp 0x404754
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x404721
lea ebp, [esi + 0x44]
lea ebx, [esi + 0x30]
push edi
mov ecx, ebp
call fcn.004048f0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00474b75
push edi
mov ecx, ebx
mov dword [esp + 0x2e4], 1
call fcn.004048f0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00474b75
push edi
lea ecx, [esi + 0x1c]
mov byte [esp + 0x2e8], 2
call fcn.004048f0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00474b75
mov ecx, esi
mov dword [esp + 0x2e8], 0xffffffff
call fcn.00404190
test eax, eax
je 0x404746
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx - 8]
test eax, eax
je 0x404715
push ecx
lea eax, [esi + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00474b75
push edi
lea ecx, [esi + 0x58]
mov dword [esp + 0x2e4], 3
call fcn.004048f0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00474b75
mov ecx, esi
mov dword [esp + 0x2e4], 0xffffffff
call fcn.00403ff0
mov eax, dword [esi + 0x24]
inc edi
cmp edi, eax
jl 0x404658
mov ecx, esi
call fcn.00404330
mov eax, 1
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2d0
ret
mov ecx, esi
call fcn.00404330
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Telnet
call fcn.00474e6e
mov ecx, esi
call fcn.00403f80
xor eax, eax
jmp 0x40472d