Function at 0x4b5280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
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 + 0x14], 0
movzx eax, byte [edx + 5]
je 0x4b549c
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 + 0x14], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
js 0x4b53be
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
or edx, eax
movzx eax, byte [edi + 5]
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
push 1
lea ecx, [ebp - 0x18]
add edi, 8
call fcn.004b4aa0
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, 4
add esi, 8
dec dword [ebp + 8]
mov dword [ebp - 4], edx
jne 0x4b5310
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x14]
cmp ecx, 0xfffffff8
je 0x4b5494
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.0x4b53e1
jmp dword [ebx*4 + 0x4b5698]
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]
xor eax, dword [ebp - 8]
xor edi, edx
mov edx, dword [ebp + 0xc]
push 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.004b4aa0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov byte [esi], cl
mov ebx, dword [ebp + 0x14]
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, 4
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x4b565d
mov ecx, dword [ebp - 8]
jmp 0x4b565d
mov dword [ebp + 0x14], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x14]
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 + 0x14], edx
mov dword [ebp - 0xc], ecx
js 0x4b5592
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 4], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0xc], ecx
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]
add edi, 4
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
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.004b4aa0
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp + 0x14]
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, 4
add esi, 8
dec dword [ebp - 4]
mov ecx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x14], edx
jne 0x4b54d6
mov ebx, dword [ebp - 0x10]
jmp 0x4b5595
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0xc], 0xfffffff8
je 0x4b565d
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
movzx edx, byte [edi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi + 5]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + 7]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x18]
call fcn.004b4aa0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
xor eax, dword [ebp + 0x14]
xor edx, dword [ebp - 8]
lea ecx, [edi + 8]
add edi, 7
add esp, 4
add ecx, esi
mov dword [ebp + 8], eax
cmp edi, 7
ja case.default.0x4b5617
jmp dword [edi*4 + 0x4b56b8]
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 + 0x10]
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