Function at 0x4b0560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
sub esp, 0x10
cmp dword [ebp + 0x24], 0
movzx ecx, byte [eax]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
je 0x4b07b5
lea edi, [eax + 1]
mov edx, edi
mov dword [ebp + 0xc], edi
movzx eax, byte [edx]
movzx ebx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp + 0x24], ecx
movzx ecx, byte [edx + 6]
shl eax, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edx + 5]
or ecx, eax
shl ecx, 0x10
or ebx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
js 0x4b0696
lea edi, [ecx + 8]
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp + 0x10], ecx
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
push dword [ebp + 0x1c]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
push dword [ebp + 0x18]
shl eax, 0x10
push dword [ebp + 0x14]
or edx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [ebp + 0x24]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x10], edx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or ecx, eax
lea eax, [ebp - 0x10]
xor ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], ecx
call fcn.004b1000
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
mov dword [ebp + 0x24], edx
mov dword [ebp - 4], ecx
dec edi
jne 0x4b05e5
mov edi, dword [ebp + 0xc]
jmp 0x4b069c
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp eax, 0xfffffff8
je 0x4b077b
mov edx, dword [ebp + 0x10]
lea ecx, [eax + 8]
add edx, 7
add ecx, ebx
xor eax, eax
mov dword [ebp + 0x10], edx
xor ebx, ebx
mov dword [ebp + 8], eax
cmp edx, 7
mov edx, dword [ebp + 0x24]
ja case.default.0x4b06c8
mov edi, dword [ebp + 0x10]
jmp dword [edi*4 + 0x4b09f0]
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
xor ebx, dword [ebp - 4]
xor eax, edx
push dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
push eax
call fcn.004b1000
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
mov edi, dword [ebp + 0xc]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [ebp + 0x20]
mov byte [eax], dl
mov eax, edx
shr eax, 8
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ecx
shr edx, 0x18
mov byte [edi + 2], dl
mov byte [edi + 3], cl
shr eax, 8
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
shr ecx, 0x18
mov byte [edi + 6], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [eax + 1]
mov edi, dword [ebp + 0x10]
mov edx, ebx
mov dword [ebp - 4], ebx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp + 0x24], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0xc], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
add edi, 0xfffffff8
mov dword [ebp + 0xc], edx
js 0x4b08dc
lea eax, [edi + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp - 8], edi
nop
mov ecx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
movzx eax, byte [ecx + 1]
movzx ebx, byte [ecx]
movzx edi, byte [ecx + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or ebx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or ebx, eax
movzx eax, byte [ecx + 5]
shl eax, 8
or edi, eax
mov dword [ebp - 0x10], ebx
movzx eax, byte [ecx + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add ecx, 8
or edi, eax
mov dword [ebp + 8], ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
call fcn.004b0450
mov ecx, dword [ebp - 0x10]
add esp, 0x10
xor ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0xc]
mov eax, ecx
xor edx, dword [ebp + 0xc]
mov byte [esi], cl
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, ebx
mov byte [esi + 4], dl
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], dl
add esi, 8
dec dword [ebp + 0x10]
mov edx, edi
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0xc], edx
jne 0x4b0820
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
jmp 0x4b08df
mov ecx, dword [ebp + 0x24]
cmp edi, 0xfffffff8
je 0x4b09b4
mov edx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
push dword [ebp + 0x14]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 7]
mov edx, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 4]
shl ecx, 0x10
mov dword [ebp - 0x10], eax
or edx, ecx
lea eax, [ebp - 0x10]
mov dword [ebp + 0x10], edx
push eax
mov dword [ebp - 0xc], edx
call fcn.004b0450
mov edx, dword [ebp - 0x10]
lea ecx, [edi + 8]
mov eax, dword [ebp - 0xc]
add edi, 7
xor eax, dword [ebp + 0xc]
add esp, 0x10
xor edx, dword [ebp + 0x24]
add ecx, esi
mov dword [ebp + 8], eax
cmp edi, 7
ja case.default.0x4b096e
jmp dword [edi*4 + 0x4b0a10]
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
pop edi
pop esi
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 2], cl
mov byte [ebx + 3], dl
shr eax, 8
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
shr edx, 0x18
mov byte [ebx + 6], dl
pop ebx
mov esp, ebp
pop ebp
ret