Function at 0x10043130
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 0x100431c9
cmp ecx, 0x40
jb 0x100431b9
movaps xmm2, xmmword [0x1009ca50]
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 0x10043170
cmp eax, ecx
jae 0x100431c9
nop dword [eax]
xor byte [eax + esi], 2
inc eax
cmp eax, ecx
jb 0x100431c0
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 + 0x1009ccc0]
mulsd xmm0, qword [0x1009c418]
addsd xmm0, qword [0x1009c420]
call fcn.10084971
push eax
mov dword [ebp - 4], eax
call fcn.1004bc67
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x100433be
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
call fcn.10001150
add esp, 0x10
test eax, eax
jne 0x100433b2
mov esi, dword [ebp - 4]
cmp esi, 0x3fffff
ja 0x100433b2
test esi, esi
je 0x100432f2
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 0x10043267
xor eax, eax
jmp 0x1004326c
mov eax, dword [ebx + 0x34]
sub eax, ecx
add eax, 4
lea ecx, [ebx + 0x2c]
push eax
call fcn.100143b0
cmp eax, 0xffffffff
je 0x10043286
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 0x100432a3
xor eax, eax
jmp 0x100432a8
mov eax, dword [ebx + 0x34]
sub eax, ecx
add eax, 4
lea ecx, [ebx + 0x2c]
push eax
call fcn.100143b0
push esi
cmp eax, 0xffffffff
je 0x100432c6
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.10014330
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebx + 0x2c]
call fcn.10014330
push esi
call fcn.1004bc70
add esp, 4
mov edi, dword [ebx + 0x30]
test edi, edi
jne 0x100432fd
xor ecx, ecx
jmp 0x10043302
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 0x10043372
nop dword [eax]
xor esi, esi
push 0
push 0x6000
push edi
push dword [ebx + 0x58]
call ecx
test eax, eax
jg 0x1004333f
mov ecx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10043322
cmp esi, 0xf
je 0x100433be
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 0x10043320
test eax, eax
je 0x100433a0
xor esi, esi
push 0
push eax
push edi
push dword [ebx + 0x58]
call ecx
mov edx, eax
test edx, edx
jg 0x10043396
mov ecx, dword [sym.imp.WS2_32.dll_send]
inc esi
mov eax, dword [ebp + 0xc]
cmp esi, 0xf
jl 0x10043378
cmp esi, 0xf
je 0x100433be
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.1004bc70
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8