Function at 0x404670
Capabilities:
Create udp socket
Encode data using xor
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x44e46d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x1b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1c4]
mov esi, ecx
cmp dword [esi + 0x3c], 0
jne 0x4046c1
xor eax, eax
jmp 0x4049ca
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4046ba
mov ecx, esi
call fcn.00404a00
test eax, eax
jge 0x4046f1
mov eax, 0x80004005
jmp 0x4049ca
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x40470f
mov esi, 0x80004005
jmp 0x4049c8
movzx eax, word [esi + 0x1c]
mov edx, dword [esi + 0x40]
mov ecx, 2
push eax
mov word [esp + 0x184], cx
mov dword [esp + 0x188], edx
call sub.WS2_32.dll_htons
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov word [esp + 0x182], ax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], 0
je 0x4049b5
add esi, 0x20
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x18]
push edx
mov eax, ebp
call fcn.00404da0
push eax
lea ecx, [esp + 0x194]
call fcn.00402970
mov dword [esp + 0x1bc], 0
mov edi, dword [esp + 0x1a4]
cmp edi, 0x5aa
jbe 0x40479e
mov edi, 0x5aa
lea eax, [esp + 0x7c]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push 2
mov ecx, 0x454768
call fcn.00404130
lea esi, [esp + 0xd4]
call fcn.004014e0
mov ecx, eax
mov byte [esp + 0x1c0], 1
call fcn.00401760
mov byte [esp + 0x1bc], 2
cmp dword [eax + 0x18], 0x10
jb 0x4047e6
mov ebx, dword [eax + 4]
jmp 0x4047e9
lea ebx, [eax + 4]
push edi
xor ecx, ecx
lea esi, [esp + 0x9c]
lea edx, [esp + 0x194]
call fcn.00404d70
push eax
lea ecx, [esp + 0x64]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x48], esp
push 4
mov ecx, 0x45476c
mov byte [esp + 0x1e4], 3
call fcn.00404130
lea esi, [esp + 0x130]
call fcn.004014e0
mov ecx, eax
mov byte [esp + 0x1c4], 4
call fcn.00401760
mov byte [esp + 0x1c0], 5
cmp dword [eax + 0x18], 0x10
jb 0x404850
mov eax, dword [eax + 4]
jmp 0x404853
add eax, 4
mov edx, dword [esp + 0x24]
push edx
mov edi, eax
lea esi, [esp + 0x4c]
call fcn.004054c0
add esp, 4
push eax
lea edi, [esp + 0x30]
mov byte [esp + 0x1c4], 6
call fcn.00405570
push eax
mov edi, ebx
lea esi, [esp + 0x170]
mov byte [esp + 0x1c8], 7
call fcn.004054c0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.004029a0
lea ecx, [esp + 0x44]
call fcn.004029a0
lea ecx, [esp + 0x60]
call fcn.004029a0
lea esi, [esp + 0x10c]
call fcn.004037a0
lea ecx, [esp + 0x98]
call fcn.004029a0
lea ecx, [esp + 0x7c]
call fcn.004029a0
lea esi, [esp + 0xb4]
mov byte [esp + 0x1bc], 0xf
call fcn.004037a0
mov eax, dword [esp + 0x178]
xor edi, edi
test eax, eax
jbe 0x40491b
nop
lea eax, [esp + 0x164]
call fcn.00404d40
mov bl, byte [eax]
lea eax, [esp + 0x164]
xor bl, 0xc
call fcn.00402a70
mov byte [eax], bl
mov eax, dword [esp + 0x178]
inc edi
cmp edi, eax
jb 0x4048f0
cmp dword [esp + 0x17c], 0x10
mov ecx, dword [esp + 0x168]
jae 0x404933
lea ecx, [esp + 0x168]
push 0x10
lea edx, [esp + 0x184]
push edx
push 0
push eax
mov eax, dword [esp + 0x2c]
push ecx
push eax
call sub.WS2_32.dll_sendto
or esi, 0xffffffff
lea ecx, [esp + 0x164]
cmp eax, esi
je 0x40499d
call fcn.004029a0
lea ecx, [esp + 0x190]
mov dword [esp + 0x1bc], esi
call fcn.004029a0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
mov dword [esp + 0x18], esi
cmp esi, ecx
jb 0x404766
jmp 0x4049b5
call fcn.004029a0
lea ecx, [esp + 0x190]
mov dword [esp + 0x1bc], esi
call fcn.004029a0
mov eax, ebp
call fcn.00404e40
mov edx, dword [esp + 0x1c]
push edx
xor esi, esi
call sub.WS2_32.dll_closesocket
mov eax, esi
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00439641
add esp, 0x1ac
ret 4