Function at 0x10046fd0
Capabilities:
Create udp socket
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, 0x20c
mov eax, dword [0x100d9180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
push edi
mov dword [ebp - 0x208], eax
xor esi, esi
nop word [eax + eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x204]
push eax
push 2
call ebx
test eax, eax
jne 0x10047072
push 0x30
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10068bc0
push 0x30
lea eax, [ebp - 0x64]
mov byte [ebp - 0x34], 0x1b
push 0
push eax
call fcn.10068bc0
add esp, 0x18
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10047072
lea eax, [ebp - 0x20c]
xorps xmm0, xmm0
push eax
push 0
push 0x100be700
push dword [ebp - 0x208]
movups xmmword [ebp - 0x74], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1004708d
inc esi
cmp esi, 0xa
jl 0x10047000
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006638a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20c]
mov eax, edx
test eax, eax
je 0x100470b7
nop dword [eax]
cmp dword [eax + 4], 2
jne 0x100470b0
mov ecx, dword [eax + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x74], xmm0
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x100470a0
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x20]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x24], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x1c]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x20], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x18]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x1c], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x14]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x18], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x10]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x14], edx
mov edx, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shr edx, 8
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
mov ecx, dword [ebp - 0xc]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x10], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 8]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0xc], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
push 0x10
or edx, eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x30
lea eax, [ebp - 0x34]
mov dword [ebp - 8], edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x20]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x24], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x1c]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x20], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
shr edx, 8
or eax, ecx
mov ecx, dword [ebp - 0x18]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x1c], edx
mov edx, ecx
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x14]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x18], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x10]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x14], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0xc]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x10], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 8]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0xc], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
push 0x3e8
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x30
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 0x54]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x50]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x54], edx
mov edx, ecx
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x4c]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x50], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x48]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x44]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x48], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 0x40]
shl eax, 8
or edx, eax
mov eax, ecx
mov dword [ebp - 0x44], edx
mov edx, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
shr edx, 8
or eax, ecx
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
shl eax, 8
and esi, 0xff0000
or edx, eax
mov eax, ecx
shr eax, 0x10
or esi, eax
mov dword [ebp - 0x40], edx
mov eax, ecx
shr esi, 8
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
mov ecx, dword [ebp - 0x38]
shl eax, 8
mov edx, ecx
or esi, eax
and edx, 0xff0000
mov eax, ecx
mov dword [ebp - 0x3c], esi
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebp - 0x38], edx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 0xcccccccd
mul esi
pop edi
shr edx, 3
xor ecx, ebp
pop esi
pop ebx
lea eax, [edx + edx*4]
xor edx, edx
lea eax, [eax*2 - 0x3aa7e80]
and eax, 0x7fffffff
call fcn.1006638a
mov esp, ebp
pop ebp
ret