Function at 0x3356a1
Capabilities:
Create udp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xae8
mov ecx, dword [ebp + 0x14]
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x94c]
xor eax, eax
mov dword [ebp - 0x958], ecx
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x74c]
mov dword [ebp - 0x950], ecx
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], al
mov dword [ebp - 0x28], eax
mov dword [ecx], eax
cmp ebx, eax
je 0x335b00
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3356f1
sub eax, edx
cmp eax, 0x200
jae 0x335b00
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 0x11
push 2
pop edi
push edi
push edi
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x33575c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
jne 0x335b00
lea eax, [ebp - 0xae8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 8], eax
test eax, eax
jne 0x335b00
push 0x11
push edi
push edi
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x335b00
lea edx, [ebp - 0x54c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x335766
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0032c0f6
pop ecx
lea eax, [ebp - 0x23c]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x33578e
and dword [ebp - 0x10], 0
sub eax, edx
lea ecx, [ebp + eax - 0x23b]
mov dword [ebp - 0x30], eax
xor eax, eax
inc eax
rol ax, 8
cmp dword [ebp + 0xc], 0
movzx eax, ax
mov dword [ebp - 0x2c], ecx
mov word [ecx], ax
mov word [ecx + 2], ax
jbe 0x335b00
cmp dword [ebp - 0xc], 0
jne 0x335b19
push 0x200
lea eax, [ebp - 0x54c]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push 0x35
pop ebx
lea esi, [eax + ecx*4]
mov eax, dword [esi]
push 0x3255a8
push eax
call sub.ntdll.dll_strstr
mov edi, eax
add esp, 0x14
test edi, edi
je 0x335837
mov ax, di
sub ax, word [esi]
mov ecx, 0x200
movzx eax, ax
cmp ax, cx
jae 0x335aeb
push eax
push dword [esi]
lea eax, [ebp - 0x54c]
push eax
call sub.ntdll.dll_memcpy
inc edi
push edi
call sub.ntdll.dll_atoi
add esp, 0x10
movzx ebx, ax
jmp 0x33589c
mov edi, 0x200
push edi
lea eax, [ebp - 0x54c]
push 0
push eax
call sub.ntdll.dll_memset
mov esi, dword [esi]
add esp, 0xc
test esi, esi
je 0x33589c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x335859
sub eax, edx
je 0x33589c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x335869
sub eax, edx
cmp eax, edi
jb 0x33587d
mov eax, 0x1ff
jmp 0x33588b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x335882
sub eax, edx
push eax
lea eax, [ebp - 0x54c]
push esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x54c]
rol bx, 8
push eax
mov word [ebp - 0x42], bx
call dword [sym.imp.WS2_32.dll_inet_addr]
or edi, 0xffffffff
mov dword [ebp - 0x40], eax
cmp eax, edi
je 0x335aeb
test eax, eax
je 0x335aeb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp - 0x1c]
and byte [ebp - 0x246], 1
or byte [ebp - 0x246], 1
and byte [ebp - 0x245], 0
mov word [ebp - 0x248], ax
push 0x10
pop ebx
mov eax, 0x100
mov word [ebp - 0x244], ax
xor eax, eax
mov word [ebp - 0x242], ax
mov word [ebp - 0x240], ax
mov word [ebp - 0x23e], ax
push ebx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x30]
push 0
add eax, 0x11
push eax
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x335aeb
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x34c]
push ecx
push eax
mov dword [ebp - 0x348], esi
mov dword [ebp - 0x34c], 1
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x335aeb
lea eax, [ebp - 0x34c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x335aeb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x200
lea eax, [ebp - 0x248]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x335aeb
test eax, eax
je 0x335aeb
mov edi, dword [ebp - 0x2c]
mov ax, word [ebp - 0x242]
add edi, 4
rol ax, 8
movzx eax, ax
mov dword [ebp + 0x14], edi
mov dword [ebp - 0x18], eax
test ax, ax
je 0x3359f3
pushal
rdtsc
xor edx, edx
dec edx
shr edx, 1
and eax, edx
mov dword [ebp - 0x20], eax
popal
mov eax, dword [ebp - 0x20]
movzx ecx, word [ebp - 0x18]
cdq
idiv ecx
mov edi, dword [ebp + 0x14]
mov byte [ebp - 1], dl
movzx eax, word [ebp - 0x18]
and dword [ebp - 0x14], 0
and dword [ebp + 0x14], 0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x335aeb
mov esi, dword [ebp - 0x34]
cmp dword [ebp + 0x14], esi
jge 0x335ad8
push dword [ebp - 0x958]
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.0032c00f
add edi, dword [ebp + 0x14]
add esp, 0x14
test eax, eax
je 0x335ac9
mov eax, dword [ebp - 0x958]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x335a45
sub eax, ecx
je 0x335ac9
mov eax, edi
mov dword [ebp - 0x954], eax
movzx eax, word [eax]
push eax
add edi, 0xa
call dword [sym.imp.WS2_32.dll_ntohs]
xor ebx, ebx
inc ebx
cmp ax, bx
jne 0x335aab
mov eax, dword [ebp - 0x954]
mov ax, word [eax + 8]
rol ax, 8
movzx esi, ax
lea eax, [esi + 1]
push eax
push edi
push dword [ebp - 0x950]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x950]
mov byte [esi + eax], 0
movzx eax, byte [ebp - 1]
add esp, 0xc
add edi, esi
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x14], eax
je 0x335ade
jmp 0x335ac9
push dword [ebp - 0x958]
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.0032c00f
add esp, 0x14
add edi, dword [ebp + 0x14]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x335a0a
cmp dword [ebp - 0xc], 0
je 0x335aeb
mov eax, dword [ebp - 0x950]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jb 0x3357c3
cmp dword [ebp - 0xc], 0
jne 0x335b19
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x335b19
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret