Function at 0x100801a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [edx + 4]
push edi
mov edi, dword [ebp + 0x10]
lea ebx, [ebx - 1]
shr ebx, 0x1f
dec ebx
mov dword [ebp + 8], ebx
mov eax, dword [edi + 4]
xor eax, ecx
and eax, ebx
movd xmm0, ebx
xor ecx, eax
pshufd xmm3, xmm0, 0
mov dword [edx + 4], ecx
xor dword [edi + 4], eax
mov eax, dword [ebp + 0x14]
lea esi, [eax - 1]
cmp esi, 9
ja case.default.0x100801e2
jmp dword [esi*4 + 0x100803e8]
mov ebx, 0xa
lea ecx, [eax - 0xa]
cmp eax, ebx
jle 0x100802d5
cmp ecx, 4
jb 0x100802ad
mov eax, dword [edi]
mov edi, dword [edx]
mov dword [ebp - 0x14], eax
add eax, 0x28
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
lea eax, [eax + esi*4]
mov dword [ebp - 8], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0xc], eax
lea eax, [edi + esi*4]
cmp dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
ja 0x1008023a
cmp esi, dword [ebp - 0xc]
jae 0x100802ad
cmp dword [ebp - 4], edi
ja 0x10080243
cmp esi, edi
jae 0x100802ad
cmp dword [ebp - 4], edx
ja 0x1008024c
cmp esi, edx
jae 0x100802ad
mov esi, dword [ebp - 0xc]
cmp esi, edi
ja 0x10080258
cmp dword [ebp - 0x10], edi
jae 0x100802ad
cmp esi, edx
ja 0x10080261
cmp dword [ebp - 0x10], edx
jae 0x100802ad
and ecx, reloc.WS2_32.dll_closesocket
jns 0x1008026e
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edi, dword [ebp - 0x18]
mov esi, eax
sub esi, ecx
mov ecx, dword [ebp - 0x14]
nop dword [eax + eax]
movups xmm2, xmmword [ecx + ebx*4]
movups xmm1, xmmword [edi + ebx*4]
movaps xmm0, xmm2
pxor xmm0, xmm1
pand xmm0, xmm3
pxor xmm1, xmm0
pxor xmm2, xmm0
movups xmmword [edi + ebx*4], xmm1
movups xmmword [ecx + ebx*4], xmm2
add ebx, 4
cmp ebx, esi
jl 0x10080280
mov edi, dword [ebp + 0x10]
cmp ebx, eax
jge 0x100802d5
mov eax, dword [edx]
mov ecx, dword [eax + ebx*4]
lea edx, [eax + ebx*4]
mov eax, dword [edi]
mov esi, dword [eax + ebx*4]
xor esi, ecx
and esi, dword [ebp + 8]
xor ecx, esi
mov dword [edx], ecx
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
xor dword [eax + ebx*4], esi
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x100802b1
mov ebx, dword [ebp + 8]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x24]
mov edx, dword [eax + 0x24]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x24], ecx
mov eax, dword [edi]
xor dword [eax + 0x24], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x20]
mov edx, dword [eax + 0x20]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x20], ecx
mov eax, dword [edi]
xor dword [eax + 0x20], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x1c]
mov edx, dword [eax + 0x1c]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi]
xor dword [eax + 0x1c], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
mov edx, dword [eax + 0x18]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x18], ecx
mov eax, dword [edi]
xor dword [eax + 0x18], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x14]
mov edx, dword [eax + 0x14]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x14], ecx
mov eax, dword [edi]
xor dword [eax + 0x14], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 0x10]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi]
xor dword [eax + 0x10], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 0xc]
mov edx, dword [eax + 0xc]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0xc], ecx
mov eax, dword [edi]
xor dword [eax + 0xc], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 8]
mov edx, dword [eax + 8]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi]
xor dword [eax + 8], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 4]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 4], ecx
mov eax, dword [edi]
xor dword [eax + 4], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
mov esi, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [edi]
pop edi
pop esi
pop ebx
xor dword [eax], ecx
mov esp, ebp
pop ebp
ret