Function at 0x4bbc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.005e28b0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, edx
movzx edx, byte [ebx + 2]
shl edx, 0x10
cmp dword [ebp + 0x14], 0
push edi
mov edi, ecx
je 0x4bbec0
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 3]
or ecx, edx
movzx edx, byte [ebx + 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 4]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 6]
shl edx, 0x10
or eax, edx
movzx edx, byte [ebx + 7]
shl edx, 0x18
or eax, edx
mov edx, dword [ebp + 8]
add edx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x14], eax
js 0x4bbdbe
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp - 8], eax
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 4]
xor eax, dword [ebp - 0xc]
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 6]
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi + 7]
shl edx, 0x18
or ecx, edx
xor ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
add esi, 8
call fcn.004bc120
mov eax, dword [ebp - 0x18]
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
mov ecx, eax
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 0x14]
mov byte [edi + 4], al
mov edx, eax
shr edx, 8
mov byte [edi + 5], dl
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x14], eax
shr eax, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], al
add esp, 8
add edi, 8
dec dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jne 0x4bbd11
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
cmp edx, 0xfffffff8
je 0x4bbe88
lea esi, [esi + edx + 8]
add edx, 7
xor eax, eax
mov dword [ebp + 8], 0
cmp edx, 7
ja case.default.0x4bbddc
jmp dword [edx*4 + 0x4bc0d8]
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x10
or eax, edx
movzx edx, byte [esi - 1]
dec esi
shl edx, 8
or eax, edx
movzx edx, byte [esi - 1]
dec esi
or eax, edx
mov dword [ebp + 8], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x10
or eax, edx
movzx edx, byte [esi - 1]
dec esi
shl edx, 8
or eax, edx
movzx edx, byte [esi - 1]
or eax, edx
xor eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call fcn.004bc120
mov eax, dword [ebp - 0x18]
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
mov ecx, eax
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 0x14]
mov edx, eax
mov byte [edi + 4], al
shr edx, 8
mov byte [edi + 5], dl
mov edx, eax
mov dword [ebp + 0x14], eax
shr edx, 0x10
add esp, 8
shr eax, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], al
mov eax, dword [ebp + 0x14]
mov byte [ebx], cl
mov edx, ecx
shr edx, 8
mov byte [ebx + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [ebx + 2], dl
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], al
mov ecx, eax
mov edx, eax
shr ecx, 8
mov byte [ebx + 5], cl
shr edx, 0x10
pop edi
mov byte [ebx + 6], dl
shr eax, 0x18
pop esi
mov byte [ebx + 7], al
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx + 3]
or eax, edx
movzx edx, byte [ebx + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [ebx + 4]
shl edx, 8
or ecx, edx
movzx edx, byte [ebx + 6]
shl edx, 0x10
or ecx, edx
movzx edx, byte [ebx + 7]
shl edx, 0x18
or ecx, edx
mov edx, dword [ebp + 8]
add edx, 0xfffffff8
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
js 0x4bbfd4
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp - 0x10], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp - 8], eax
lea esp, [esp]
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 6]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 4]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
add esi, 8
call fcn.004bc270
mov eax, dword [ebp + 0x14]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x14]
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [edi + 5], al
mov eax, dword [ebp - 0xc]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
mov ecx, dword [ebp + 8]
add esp, 8
add edi, 8
dec dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], ecx
jne 0x4bbf20
mov edx, dword [ebp - 8]
cmp edx, 0xfffffff8
je 0x4bc09f
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
movzx ecx, byte [esi + 2]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 3]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or eax, edx
movzx edx, byte [esi + 7]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or edx, ecx
shl edx, 0x10
or eax, edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.004bc270
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
xor eax, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lea edi, [edi + edx + 8]
add edx, 7
add esp, 8
cmp edx, 7
ja case.default.0x4bc051
jmp dword [edx*4 + 0x4bc0f8]
dec edi
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], cl
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], al
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x14], edx
mov eax, edx
mov byte [ebx], al
mov edx, eax
shr edx, 8
mov byte [ebx + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 2], dl
shr eax, 0x18
mov byte [ebx + 3], al
mov byte [ebx + 4], cl
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [ebx + 5], al
shr edx, 0x10
pop edi
mov byte [ebx + 6], dl
shr ecx, 0x18
pop esi
mov byte [ebx + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret