Function at 0x100462f0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x30]
push esi
mov dword [ebx + 0x34], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x10046389
cmp ecx, 0x40
jb 0x10046379
movaps xmm2, xmmword [0x100a0af0]
mov edx, ecx
and edx, 0xffffffc0
nop
movups xmm0, xmmword [esi + eax]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + eax], xmm1
movups xmm0, xmmword [esi + eax + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + eax + 0x10], xmm1
movups xmm0, xmmword [esi + eax + 0x20]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + eax + 0x20], xmm1
movups xmm0, xmmword [esi + eax + 0x30]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + eax + 0x30], xmm1
add eax, 0x40
cmp eax, edx
jb 0x10046330
cmp eax, ecx
jae 0x10046389
nop dword [eax]
xor byte [eax + esi], 2
inc eax
cmp eax, ecx
jb 0x10046380
movd xmm0, ecx
mov eax, ecx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0xc], 0x6d65524d
mov dword [ebp - 8], 0x65746f
addsd xmm0, qword [eax*8 + 0x100a0ef0]
mulsd xmm0, qword [0x100a04c8]
addsd xmm0, qword [0x100a04d0]
call fcn.10087bc1
push eax
mov dword [ebp - 4], eax
call fcn.1004eea7
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x1004657e
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
call fcn.10001150
add esp, 0x10
test eax, eax
jne 0x10046572
mov esi, dword [ebp - 4]
cmp esi, 0x3fffff
ja 0x10046572
test esi, esi
je 0x100464b2
lea eax, [ebx + 0x3c]
or esi, 0x89000000
push eax
add esi, 0xc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x10046427
xor eax, eax
jmp 0x1004642c
mov eax, dword [ebx + 0x34]
sub eax, ecx
add eax, 4
lea ecx, [ebx + 0x2c]
push eax
call fcn.10014df0
cmp eax, 0xffffffff
je 0x10046446
mov eax, dword [ebx + 0x34]
mov dword [eax], esi
add dword [ebx + 0x34], 4
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 0x3c]
push esi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x10046463
xor eax, eax
jmp 0x10046468
mov eax, dword [ebx + 0x34]
sub eax, ecx
add eax, 4
lea ecx, [ebx + 0x2c]
push eax
call fcn.10014df0
push esi
cmp eax, 0xffffffff
je 0x10046486
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
add dword [ebx + 0x34], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 4]
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x2c]
push esi
call fcn.10014d70
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebx + 0x2c]
call fcn.10014d70
push esi
call fcn.1004eeb0
add esp, 4
mov edi, dword [ebx + 0x30]
test edi, edi
jne 0x100464bd
xor ecx, ecx
jmp 0x100464c2
mov ecx, dword [ebx + 0x34]
sub ecx, edi
xor esi, esi
mov dword [ebp - 8], ecx
mov eax, ecx
mov dword [ebp + 8], esi
cmp ecx, 0x6000
mov dword [ebp + 0xc], eax
mov ecx, dword [sym.imp.WS2_32.dll_send]
jb 0x10046532
nop dword [eax]
xor esi, esi
push 0
push 0x6000
push edi
push dword [ebx + 0x58]
call ecx
test eax, eax
jg 0x100464ff
mov ecx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x100464e2
cmp esi, 0xf
je 0x1004657e
mov esi, dword [ebp + 8]
add edi, 0x6000
add esi, eax
push 0xa
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
mov ecx, dword [sym.imp.WS2_32.dll_send]
sub eax, 0x6000
mov dword [ebp + 0xc], eax
cmp eax, 0x6000
jae 0x100464e0
test eax, eax
je 0x10046560
xor esi, esi
push 0
push eax
push edi
push dword [ebx + 0x58]
call ecx
mov edx, eax
test edx, edx
jg 0x10046556
mov ecx, dword [sym.imp.WS2_32.dll_send]
inc esi
mov eax, dword [ebp + 0xc]
cmp esi, 0xf
jl 0x10046538
cmp esi, 0xf
je 0x1004657e
mov esi, dword [ebp + 8]
add esi, edx
or eax, 0xffffffff
cmp esi, dword [ebp - 8]
cmove eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
push esi
call fcn.1004eeb0
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8