Function at 0x1315ab30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
sub esp, 0x40c
mov al, 0x74
push ebx
mov byte [esp + 5], al
mov byte [esp + 6], al
mov al, 0x2f
push esi
mov byte [esp + 0xd], al
mov byte [esp + 0xe], al
lea eax, [esp + 8]
push edi
mov esi, 0x1315df70
push eax
mov ebx, ecx
push esi
mov byte [esp + 0x14], 0x68
mov byte [esp + 0x17], 0x70
mov byte [esp + 0x18], 0x3a
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_strstr
add esp, 8
test eax, eax
je 0x1315ab90
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 0x1315df70
push 0x131520dc
push esi
call sub.msvcrt.dll_strstr
add esp, 8
test eax, eax
je 0x1315ac04
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x24]
push 0x131520dc
rep stosd dword es:[edi], eax
push esi
call sub.msvcrt.dll_strcspn
push eax
lea ecx, [esp + 0x30]
push esi
push ecx
call sub.msvcrt.dll_strncpy
push 0x131520dc
push esi
call sub.msvcrt.dll_strcspn
add esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
add esp, 0x1c
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jae 0x1315ac3b
mov edi, 0x131520dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x288]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [0x1315e074]
xor edx, edx
mov dword [esp + 0x14], edx
push eax
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [esp + 0x24]
mov word [esp + 0x16], ax
push ecx
mov ecx, ebx
call fcn.1315b460
mov dl, byte [0x1315d624]
mov dword [esp + 0x18], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
mov esi, 0x13152334
lea edi, [esp + 0x188]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x188]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x188]
push ecx
push eax
call fcn.13157480
add esp, 8
lea ecx, [esp + 0x24]
push ecx
push 3
mov ecx, ebx
call fcn.131597b0
add eax, 5
mov ecx, ebx
push eax
push 3
call fcn.131597b0
mov edx, dword [0x1315e074]
add eax, 6
push eax
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x19c]
push ecx
lea eax, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x1315ec04]
add esp, 0x20
test eax, eax
jne 0x1315ada2
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_connect]
push 6
push 1
push 2
call ebx
lea ecx, [esp + 0x18]
mov esi, eax
push 0x10
push ecx
push esi
call ebp
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x8c]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x1315df6c]
push eax
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x1315ec04]
test eax, eax
je 0x1315ad3f
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40c
ret