Function at 0x4c4a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.005e38a0
cmp dword [ebp + 0x18], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
je 0x4c4c6b
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 2]
shl eax, 0x10
shl edx, 8
shl ecx, 0x18
or ecx, eax
movzx eax, byte [ebx + 3]
or ecx, edx
movzx edx, byte [ebx + 5]
or ecx, eax
movzx eax, byte [ebx + 4]
shl edx, 0x10
shl eax, 0x18
or eax, edx
movzx edx, byte [ebx + 6]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 7]
or eax, edx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x18], eax
js 0x4c4b30
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp + 0xc], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp - 8], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 4]
xor eax, dword [ebp - 0xc]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi + 6]
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 7]
or ecx, edx
xor ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
add esi, 8
call fcn.004c4ed0
mov eax, dword [ebp - 0x18]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
mov edx, eax
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, eax
shr edx, 0x18
mov byte [edi + 4], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 5], dl
mov edx, eax
shr edx, 8
mov byte [edi + 6], dl
mov byte [edi + 7], al
add esp, 8
add edi, 8
dec dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x18], eax
jne 0x4c4a82
mov edx, dword [ebp - 8]
cmp edx, 0xfffffff8
je 0x4c4c2f
lea esi, [esi + edx + 8]
mov dword [ebp + 8], esi
add edx, 7
xor esi, esi
mov dword [ebp + 0xc], 0
cmp edx, 7
ja case.default.0x4c4b55
jmp dword [edx*4 + 0x4c4e8c]
mov edx, dword [ebp + 8]
movzx esi, byte [edx - 1]
dec edx
mov dword [ebp + 0xc], esi
jmp 0x4c4b6c
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 8
or dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 0x10
or dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 0x18
or dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
movzx esi, byte [edx - 1]
dec edx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 8
or esi, edx
mov edx, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
movzx edx, byte [edx]
shl edx, 0x10
or esi, edx
mov edx, dword [ebp + 8]
movzx edx, byte [edx - 1]
shl edx, 0x18
or esi, edx
mov edx, dword [ebp + 0xc]
jmp 0x4c4bd5
mov edx, esi
xor edx, eax
mov eax, dword [ebp + 0x10]
xor esi, ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
call fcn.004c4ed0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
mov eax, ecx
shr eax, 0x10
mov byte [edi + 1], al
mov edx, ecx
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], cl
mov edx, esi
shr edx, 0x18
mov byte [edi + 4], dl
mov edx, esi
shr edx, 0x10
mov byte [edi + 5], dl
mov edx, esi
add esp, 8
shr edx, 8
mov byte [edi + 6], dl
mov dl, byte [ebp - 0x14]
mov eax, esi
mov byte [edi + 7], dl
mov edx, ecx
shr edx, 0x18
mov byte [ebx], dl
mov edx, ecx
shr edx, 0x10
mov byte [ebx + 1], dl
mov edx, ecx
shr edx, 8
mov byte [ebx + 2], dl
mov byte [ebx + 3], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
mov byte [ebx + 5], dl
pop edi
shr ecx, 8
mov byte [ebx + 6], cl
pop esi
mov byte [ebx + 7], al
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
shl edx, 0x10
shl eax, 0x18
or eax, edx
movzx edx, byte [ebx + 3]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx + 4]
or eax, edx
movzx edx, byte [ebx + 5]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [ebx + 6]
shl edx, 8
or ecx, edx
movzx edx, byte [ebx + 7]
or ecx, edx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff8
mov dword [ebp + 0x18], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
js 0x4c4d8d
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp - 0x10], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp - 8], eax
mov edi, edi
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 6]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 4]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 8
or eax, ecx
or eax, edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
add esi, 8
call fcn.004c4ed0
mov eax, dword [ebp + 0x18]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x14]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
mov edx, eax
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
mov byte [edi + 5], dl
mov edx, dword [ebp + 0xc]
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov ecx, dword [ebp - 0xc]
add esp, 8
add edi, 8
dec dword [ebp - 0x10]
mov dword [ebp + 0x18], ecx
mov dword [ebp - 4], edx
jne 0x4c4cd0
mov edx, dword [ebp - 8]
mov eax, ecx
mov ecx, dword [ebp - 4]
cmp edx, 0xfffffff8
je 0x4c4e4f
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 6]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 4]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 8
or ecx, edx
or eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004c4ed0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
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.0x4c4e0a
jmp dword [edx*4 + 0x4c4eac]
dec edi
mov byte [edi], cl
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
mov dword [ebp - 4], ecx
mov edx, eax
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 1], dl
mov edx, eax
shr edx, 8
mov byte [ebx + 2], dl
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
mov byte [ebx + 5], dl
pop edi
shr eax, 8
mov byte [ebx + 6], al
pop esi
mov byte [ebx + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret