Function at 0x4efff0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x68
cmp dword [ebx + 0xc], 0
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x38], esi
jge 0x4f0023
movss xmm0, dword [0x739ac8]
xorps xmm1, xmm1
jmp 0x4f002e
movss xmm1, dword [0x739ac8]
xorps xmm0, xmm0
shr edx, 3
mov edi, 1
bsf eax, edx
unpcklps xmm1, xmm0
cmp eax, 0x20
movlhps xmm1, xmm1
movaps xmmword [ebp - 0x60], xmm1
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x18], ecx
je 0x4f0095
mov eax, edi
shl eax, cl
push 0x20
lea eax, [eax + eax*2]
shl eax, 6
sub eax, 0x140
push eax
call fcn.005d7dea
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x4f0086
mov eax, dword [ebp - 0x18]
shl eax, 2
push eax
call fcn.005cfa14
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4f0092
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 4]
add ecx, 0xfffffffe
mov esi, 8
mov dword [ebp - 8], eax
shl esi, cl
push 0x20
mov dword [ebp - 0x10], 0x10
lea eax, [esi*8]
push eax
call fcn.005d7dea
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, esi
mov ecx, eax
call fcn.004f3050
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x34], edx
lea ecx, [eax - 1]
shl edi, cl
mov dword [ebp - 4], edi
test eax, eax
je 0x4f03eb
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
push 0x20
sub ecx, dword [eax + 4]
mov eax, dword [eax + 0x18]
sar ecx, 3
mov dword [eax + edx*4], ecx
test edx, edx
jne 0x4f0238
shr edi, 2
mov dword [ebp - 0x2c], edi
lea eax, [edi*8]
push eax
call fcn.005d7dea
add esp, 8
mov esi, eax
xor ecx, ecx
mov dword [ebp - 0x20], esi
cmp edi, 4
jb 0x4f01c4
mov ecx, dword [ebp - 4]
lea edx, [esi + 8]
mov esi, dword [ebp - 0x14]
mov eax, ecx
shl eax, 5
mov dword [ebp - 0x24], eax
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*8]
mov dword [ebp - 0x1c], eax
mov eax, ecx
shl eax, 4
add eax, esi
mov dword [ebp - 0x28], eax
lea eax, [esi + ecx*8]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [edi - 4]
mov edi, dword [ebp - 0x28]
shr eax, 2
inc eax
mov dword [ebp - 0x30], eax
lea ecx, [eax*4]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x14]
nop
mov eax, dword [ecx]
lea edx, [edx + 0x20]
mov dword [edx - 0x28], eax
mov eax, dword [ecx + 4]
add ecx, esi
mov dword [edx - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [edx - 0x20], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0xc], esi
mov eax, dword [eax + 4]
mov dword [edx - 0x1c], eax
mov eax, dword [edi]
mov dword [edx - 0x18], eax
mov eax, dword [edi + 4]
add edi, esi
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x1c], esi
sub dword [ebp - 0x30], 1
mov eax, dword [eax + 4]
mov dword [edx - 0xc], eax
jne 0x4f0170
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
cmp ecx, edi
jae 0x4f01f2
mov edx, dword [ebp - 0x14]
mov eax, ecx
imul eax, dword [ebp - 4]
lea edx, [edx + eax*8]
mov eax, dword [edx]
mov edi, dword [ebp - 4]
mov dword [esi + ecx*8], eax
mov eax, dword [edx + 4]
mov dword [esi + ecx*8 + 4], eax
inc ecx
lea eax, [edi*8]
add edx, eax
cmp ecx, dword [ebp - 0x2c]
jb 0x4f01d4
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov edx, edi
shr edx, 2
test edx, edx
je 0x4f0228
mov eax, dword [ebp - 8]
movups xmm1, xmmword [esi + ecx*8]
lea eax, [eax + 0x20]
movaps xmm0, xmm1
add ecx, 2
shufps xmm0, xmm1, 0xa0
shufps xmm1, xmm1, 0xf5
xorps xmm1, xmmword [ebp - 0x60]
movups xmmword [eax - 0x20], xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jb 0x4f0203
mov eax, edi
shr eax, 2
shl eax, 4
add dword [ebp - 8], eax
jmp 0x4f03c5
shr edi, 3
lea esi, [edi*8]
push esi
call fcn.005d7dea
push 0x20
push esi
mov dword [ebp - 0x24], eax
call fcn.005d7dea
push 0x20
push esi
mov dword [ebp - 0xc], eax
call fcn.005d7dea
xor ecx, ecx
add esp, 0x18
mov dword [ebp - 0x28], ecx
mov esi, eax
mov dword [ebp - 0x20], esi
test edi, edi
je 0x4f039e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0x1c], esi
lea ecx, [eax*8]
shl eax, 4
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, esi
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
sub ecx, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [eax]
lea edx, [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x40]
mov dword [esi + ecx], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
add dword [ebp - 0x1c], 8
mov eax, dword [eax + 4]
mov dword [edx + ecx - 8], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov dword [edx - 0xc], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x28]
add ecx, edi
mov dword [edx - 8], eax
imul ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ecx*8]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x4c]
add dword [ebp - 0x30], esi
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + edx - 8], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
inc ecx
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
cmp ecx, edi
jb 0x4f02b1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
sub edi, edx
mov ecx, dword [ebp - 8]
sub esi, edx
movaps xmm2, xmmword [ebp - 0x60]
add ecx, 0x20
shr eax, 3
dec eax
mov dword [ebp - 0x4c], edi
shr eax, 1
mov dword [ebp - 0x48], esi
inc eax
movups xmm1, xmmword [edx + edi]
lea ecx, [ecx + 0x60]
lea edx, [edx + 0x10]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xa0
movups xmmword [ecx - 0x80], xmm0
shufps xmm1, xmm1, 0xf5
xorps xmm1, xmm2
movups xmmword [ecx - 0x70], xmm1
movups xmm1, xmmword [edx - 0x10]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xa0
movups xmmword [ecx - 0x60], xmm0
shufps xmm1, xmm1, 0xf5
xorps xmm1, xmm2
movups xmmword [ecx - 0x50], xmm1
movups xmm1, xmmword [edx + esi - 0x10]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xa0
shufps xmm1, xmm1, 0xf5
movups xmmword [ecx - 0x40], xmm0
xorps xmm1, xmm2
movups xmmword [ecx - 0x30], xmm1
sub eax, 1
jne 0x4f0341
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
mov eax, edi
push dword [ebp - 0x24]
shr eax, 3
lea eax, [eax + eax*2]
shl eax, 4
add dword [ebp - 8], eax
call fcn.005d7dd0
add esp, 4
push dword [ebp - 0xc]
call fcn.005d7dd0
add esp, 4
push esi
call fcn.005d7dd0
mov edx, dword [ebp - 0x34]
add edi, edi
mov dword [ebp - 0x10], edi
inc edx
mov edi, dword [ebp - 4]
add esp, 4
sar edi, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edx
cmp edx, dword [ebp - 0x18]
jb 0x4f00e2
push dword [ebp - 0x14]
call fcn.005d7dd0
mov ecx, dword [ebp - 0x38]
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x18]
pop edi
mov dword [ecx + 0x24], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret