Function at 0xefc790
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, edx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x34]
mov ebp, edx
push edi
mov edi, ecx
shr ebp, 2
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0xefc8ee
cmp ebp, 0x10
jb 0xefc8a5
lea eax, [ebx - 4]
mov dword [esp + 0x10], ecx
lea eax, [eax + ebp*4]
cmp edi, eax
ja 0xefc7eb
lea eax, [edi - 4]
lea eax, [eax + ebp*4]
cmp eax, ebx
jae 0xefc8a5
lea eax, [esi - 4]
lea eax, [eax + ebp*4]
cmp edi, eax
ja 0xefc803
lea eax, [edi - 4]
lea eax, [eax + ebp*4]
cmp eax, esi
jae 0xefc8a5
mov edx, esi
mov eax, ebp
sub edx, ebx
and eax, 0xfffffff0
mov dword [esp + 0x10], edx
mov edx, edi
mov ebp, dword [esp + 0x10]
sub edx, ebx
mov dword [esp + 0x24], edx
mov edx, esi
sub edx, edi
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x24]
lea edx, [edi + 0x20]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + ecx*4]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [eax + ebp - 0x40]
mov ebp, dword [esp + 0x28]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebp - 0x40]
mov ebp, dword [esp + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ecx*4 + 0x30]
add ecx, 0x10
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [esp + 0x2c]
jb 0xefc832
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ecx
cmp ecx, ebp
jae 0xefc8ee
mov eax, esi
lea ecx, [ebx + ecx*4]
sub eax, ebx
mov dword [esp + 0x2c], eax
mov eax, edi
mov edx, dword [esp + 0x2c]
sub eax, ebx
sub ebp, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
nop dword [eax]
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
sub ebp, 1
jne 0xefc8d0
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
shl ecx, 2
sub edx, ecx
mov dword [esp + 0x38], edx
je 0xefca02
add ebx, ecx
add edi, ecx
add esi, ecx
mov dword [esp + 0x34], ebx
xor ecx, ecx
test edx, edx
je 0xefca02
cmp edx, 0x40
jb 0xefc9d5
lea eax, [ebx - 1]
lea ebp, [edi - 1]
add eax, edx
add ebp, edx
cmp edi, eax
ja 0xefc930
cmp ebp, ebx
jae 0xefc9d5
lea eax, [esi - 1]
add eax, edx
cmp edi, eax
ja 0xefc941
cmp ebp, esi
jae 0xefc9d5
mov ebp, dword [esp + 0x20]
mov eax, edx
and eax, 0xffffffc0
mov edx, ebp
sub edx, dword [esp + 0x14]
add edi, 0x20
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x10]
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
jmp 0xefc974
mov ebp, dword [esp + 0x2c]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edi - 0x60], xmm1
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
movups xmm1, xmmword [edi + ebp - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [ecx + esi + 0x30]
add ecx, 0x40
mov ebp, ecx
pxor xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ecx, dword [esp + 0x28]
jb 0xefc970
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
cmp ebp, edx
jae 0xefca02
mov esi, dword [esp + 0x18]
lea eax, [ecx + ebx]
mov ebx, dword [esp + 0x20]
sub ebx, dword [esp + 0x14]
sub esi, dword [esp + 0x14]
sub edx, ecx
nop word [eax + eax]
mov cl, byte [ebx + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [esi + eax - 1], cl
sub edx, 1
jne 0xefc9f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret