Function at 0x4bbe20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x18], ebp
test edi, edi
je 0x4bc0b6
mov esi, dword [esp + 0x28]
cmp esi, 8
jb 0x4bc0b6
cmp esi, 0x4000
ja 0x4bc0b6
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4bc0b6
push ebx
lea ebx, [esi + esi*4]
shl ebx, 2
push ebx
call dword [0x6b21a0]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x4bbe91
mov esi, dword [esp + 0x14]
or eax, 0xffffffff
pop ebx
mov dword [edi + 4], esi
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push ebx
push 0
push eax
call fcn.0058a1a0
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [edi + 8], esi
test ecx, ecx
je 0x4bc09f
mov esi, dword [esp + 0x14]
mov eax, ecx
add esi, 4
mov dword [esp + 0x10], ecx
nop dword [eax]
cmp dword [esi + 8], 0
je 0x4bbf78
mov ebp, dword [edi + 8]
cmp ecx, 0x80
je 0x4bbeda
mov ebx, dword [esi + 0xc]
jmp 0x4bbefe
mov eax, dword [edi + 0x18]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
cmp ebp, 0x80
jne 0x4bbef4
call fcn.004bba80
jmp 0x4bbef9
call fcn.004bb9b0
mov ebx, eax
add esp, 0xc
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ebx
div ebp
lea ebp, [edx + edx*4]
cmp dword [ecx + ebp*4 + 0xc], 0
jne 0x4bbf33
movups xmm0, xmmword [esi - 4]
movups xmmword [ecx + ebp*4], xmm0
mov eax, dword [esi + 0xc]
mov dword [ecx + ebp*4 + 0x10], eax
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], 0
mov eax, dword [edi + 4]
mov dword [eax + ebp*4 + 0x10], ebx
jmp 0x4bbf70
push 0x14
call dword [0x6b21a0]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4bbf69
mov eax, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov eax, dword [edi + 4]
mov eax, dword [eax + ebp*4]
mov dword [ecx], eax
mov dword [ecx + 0xc], 1
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], ecx
jmp 0x4bbf70
or ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
add esi, 0x14
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x4bbec0
mov eax, dword [esp + 0x14]
mov edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov esi, dword [eax]
test esi, esi
je 0x4bc087
mov ebp, dword [esi]
mov dword [esp + 0x20], ebp
cmp ecx, 0x80
je 0x4bbfb3
mov ecx, dword [esi + 0x10]
jmp 0x4bc018
cmp dword [edi + 8], 0x80
jne 0x4bbfd1
push dword [edi + 0x18]
push dword [esi + 8]
push dword [esi + 4]
call fcn.004bba80
add esp, 0xc
mov ecx, eax
jmp 0x4bc014
mov ebx, dword [esi + 8]
test ebx, ebx
jle 0x4bc012
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x4bc012
mov eax, dword [edi + 0x18]
xor edx, edx
test ebx, ebx
jle 0x4bc000
movzx ecx, byte [edx + ebp]
inc edx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp edx, ebx
jl 0x4bbfe8
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
jmp 0x4bc014
xor ecx, ecx
mov ebp, dword [esp + 0x20]
xor edx, edx
mov ebx, dword [edi + 4]
mov eax, ecx
div dword [edi + 8]
lea edx, [edx + edx*4]
shl edx, 2
add ebx, edx
cmp dword [ebx + 0xc], 0
jne 0x4bc064
movups xmm0, xmmword [esi]
push esi
movups xmmword [ebx], xmm0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 4]
mov dword [edx + eax], 0
mov eax, dword [edi + 4]
mov dword [edx + eax + 0xc], 1
mov eax, dword [edi + 4]
mov dword [edx + eax + 0x10], ecx
call dword [0x6b21ac]
add esp, 4
jmp 0x4bc071
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 4]
mov dword [edx + eax], esi
mov ecx, dword [esp + 0x28]
mov esi, ebp
test ebp, ebp
jne 0x4bbfa0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add eax, 0x14
sub edx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jne 0x4bbf96
mov ebp, dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [0x6b21ac]
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret