Function at 0x4b56e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x18]
push ebx
lea ebx, [eax + 1]
push esi
mov esi, edx
mov edx, ebx
push edi
mov edi, ecx
movzx ecx, byte [eax]
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 - 8], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
cmp dword [ebp + 0x1c], 0
movzx eax, byte [edx + 5]
je 0x4b5904
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 4]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
js 0x4b5822
mov ebx, dword [ebp - 8]
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0xc], ecx
lea ecx, [ecx]
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
push dword [ebp + 0x14]
or edx, eax
movzx eax, byte [edi + 5]
push dword [ebp + 0x10]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
or ecx, eax
xor ecx, dword [ebp - 4]
xor edx, ebx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
add edi, 8
call fcn.004b5060
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov byte [esi], bl
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esp, 8
add esi, 8
dec dword [ebp + 8]
mov dword [ebp - 4], edx
jne 0x4b5770
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x1c]
cmp ecx, 0xfffffff8
je 0x4b58fc
mov ebx, dword [ebp - 0xc]
add ecx, 8
add ecx, edi
add ebx, 7
xor eax, eax
xor edi, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ebx
cmp ebx, 7
ja case.default.0x4b5845
jmp dword [ebx*4 + 0x4b5b10]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, 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 + 0x14]
xor eax, dword [ebp - 8]
push dword [ebp + 0x10]
xor edi, edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.004b5060
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov byte [esi], cl
mov ebx, dword [ebp + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
add esp, 8
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x4b5ad5
mov ecx, dword [ebp - 8]
jmp 0x4b5ad5
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0xc], ecx
js 0x4b5a00
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 4], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0xc], ecx
mov edi, edi
movzx eax, byte [edi + 1]
movzx ebx, byte [edi]
shl eax, 8
or ebx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edi + 3]
push dword [ebp + 0x14]
add edi, 4
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
shl eax, 0x18
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
movzx edi, byte [edi]
or ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 3]
add ecx, 4
shl eax, 0x18
or edi, eax
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.004b5170
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp + 0x1c]
mov byte [esi], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov byte [esi + 4], dl
mov eax, edx
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
mov edx, edi
mov edi, dword [ebp + 8]
add esp, 8
add esi, 8
dec dword [ebp - 4]
mov ecx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x1c], edx
jne 0x4b5940
mov ebx, dword [ebp - 0x10]
jmp 0x4b5a03
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0xc], 0xfffffff8
je 0x4b5ad5
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
push dword [ebp + 0x14]
shl eax, 0x18
push dword [ebp + 0x10]
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 6]
mov dword [ebp - 4], ecx
movzx ecx, byte [edi + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 4]
shl ecx, 0x10
or eax, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
call fcn.004b5170
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
xor eax, dword [ebp + 0x1c]
xor edx, dword [ebp - 8]
lea ecx, [edi + 8]
add edi, 7
add esp, 8
add ecx, esi
mov dword [ebp + 8], eax
cmp edi, 7
ja case.default.0x4b5a8f
jmp dword [edi*4 + 0x4b5b30]
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 - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
pop edi
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
shr ecx, 0x18
mov byte [ebx + 2], cl
mov eax, edx
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
pop esi
mov byte [ebx + 6], dl
pop ebx
mov esp, ebp
pop ebp
ret