Function at 0x4b6630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00544cc0
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
je 0x4b6886
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 3]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 2]
mov ebp, dword [esp + 0x28]
shl ecx, 0x18
or edx, ecx
movzx ecx, byte [eax + 4]
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 6]
mov dword [esp + 0x3c], eax
movzx eax, byte [eax + 5]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or ebx, ecx
add ebp, 0xfffffff8
js 0x4b677c
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x20], eax
neg eax
lea ecx, [ebp + eax*8]
mov dword [esp + 0x28], ecx
jmp 0x4b66c0
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx ebp, byte [esi + 5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 4]
shl ebp, 8
or ecx, ebp
movzx ebp, byte [esi + 6]
shl ebp, 0x10
or ecx, ebp
movzx ebp, byte [esi + 7]
xor eax, edx
mov edx, dword [esp + 0x34]
shl ebp, 0x18
or ecx, ebp
push edx
xor ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
add esi, 8
call fcn.004b5f30
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov byte [edi], al
mov ebx, eax
shr ebx, 8
mov byte [edi + 1], bl
mov ebx, eax
mov edx, eax
shr eax, 0x18
shr ebx, 0x10
mov byte [edi + 2], bl
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
shr eax, 8
mov byte [edi + 5], al
mov eax, ecx
mov dword [esp + 0x34], ecx
mov ebx, dword [esp + 0x34]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi + 6], al
mov byte [edi + 7], cl
add esp, 0x10
add edi, 8
dec dword [esp + 0x20]
jne 0x4b66c0
mov ebp, dword [esp + 0x28]
cmp ebp, 0xfffffff8
je 0x4b6846
lea esi, [esi + ebp + 8]
add ebp, 7
xor ecx, ecx
xor eax, eax
cmp ebp, 7
ja case.default.0x4b6795
jmp dword [ebp*4 + 0x4b6ac8]
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 0x18
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx ebp, byte [esi - 1]
dec esi
shl ebp, 0x10
or eax, ebp
movzx ebp, byte [esi - 1]
dec esi
shl ebp, 8
or eax, ebp
movzx esi, byte [esi - 1]
or eax, esi
xor ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
xor eax, edx
mov edx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004b5f30
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov byte [edi], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 1], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], cl
mov edx, eax
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ebx
mov ecx, eax
shr ecx, 8
mov byte [edi + 4], al
mov byte [edi + 5], cl
mov ecx, eax
shr ecx, 0x10
add esp, 0x10
shr eax, 0x18
mov byte [edi + 6], cl
mov byte [edi + 7], al
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov byte [eax], dl
mov ecx, edx
mov eax, edx
shr ecx, 8
mov byte [esi], cl
shr edx, 0x18
shr eax, 0x10
mov byte [esi + 1], al
mov byte [esi + 2], dl
mov byte [esi + 3], bl
mov ecx, ebx
mov edx, ebx
shr ecx, 8
mov byte [esi + 4], cl
shr edx, 0x10
shr ebx, 0x18
pop edi
mov byte [esi + 5], dl
mov byte [esi + 6], bl
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl edx, 0x10
or ebx, edx
movzx edx, byte [eax + 4]
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 3]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 6]
mov dword [esp + 0x3c], eax
movzx eax, byte [eax + 5]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x28]
shl edx, 0x10
or ecx, edx
add eax, 0xfffffff8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
js 0x4b69b4
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x10], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x28], ecx
movzx edx, byte [esi + 1]
movzx ebp, byte [esi]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
shl edx, 8
or ebp, edx
movzx edx, byte [esi + 5]
shl eax, 0x10
or ebp, eax
movzx eax, byte [esi + 4]
shl ecx, 0x18
or ebp, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [esp + 0x30]
shl edx, 0x18
or eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push eax
add esi, 8
mov dword [esp + 0x24], ebp
call fcn.004b6050
mov ecx, dword [esp + 0x30]
xor ecx, dword [esp + 0x28]
mov eax, ebx
xor eax, dword [esp + 0x24]
add esp, 0x10
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
shr eax, 8
mov edx, ecx
mov byte [edi + 5], al
mov eax, dword [esp + 0x24]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
add edi, 8
dec dword [esp + 0x10]
mov ebx, ebp
mov dword [esp + 0x20], eax
jne 0x4b68f0
mov ecx, eax
mov eax, dword [esp + 0x28]
cmp eax, 0xfffffff8
je 0x4b6a87
movzx ecx, byte [esi + 1]
movzx ebp, byte [esi]
movzx edx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
shl edx, 0x10
or ebp, ecx
movzx ecx, byte [esi + 5]
or ebp, edx
movzx edx, byte [esi + 7]
shl eax, 0x18
or ebp, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x2c]
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebp
call fcn.004b6050
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
xor ebx, dword [esp + 0x24]
xor eax, dword [esp + 0x28]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0x10
cmp ecx, 7
ja case.default.0x4b6a3e
jmp dword [ecx*4 + 0x4b6ae8]
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
dec edi
mov byte [edi], al
dec edi
mov edx, ebx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x24]
mov ebx, ebp
mov dword [esp + 0x20], edx
mov ecx, edx
mov eax, dword [esp + 0x38]
mov byte [eax], bl
mov eax, dword [esp + 0x3c]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 1], dl
shr ebx, 0x18
mov byte [eax + 2], bl
mov edx, ecx
shr edx, 8
mov byte [eax + 3], cl
mov byte [eax + 4], dl
pop edi
mov edx, ecx
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax + 5], dl
mov byte [eax + 6], cl
pop ebx
add esp, 0xc
ret