Function at 0x4cd833
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
movzx ecx, byte [eax]
lea edx, [eax + 1]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
mov edi, dword [ebp + 0x18]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ebx, eax
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x20]
shl ecx, 0x10
or ebx, ecx
mov dword [ebp - 0xc], ebx
movzx ecx, byte [eax]
lea edx, [eax + 1]
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]
shl eax, 8
or ebx, eax
mov dword [ebp + 0x20], ecx
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx edx, byte [edi + 4]
movzx eax, byte [edi]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [edi + 7]
mov dword [ebp - 4], ebx
movzx ebx, byte [edi + 1]
shl ebx, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
cmp dword [ebp + 0x24], 0
mov dword [ebp + 0x1c], edx
je 0x4cdadf
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
add ecx, 0xfffffff8
mov dword [ebp + 0x24], ecx
js 0x4cda00
mov edi, dword [ebp + 8]
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov dword [ebp + 0x24], 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
xor edx, ebx
xor edx, dword [ebp - 8]
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [edi + 7]
add edi, 8
shl eax, 0x18
or ecx, eax
lea eax, [ebp - 0x1c]
xor ecx, dword [ebp + 0x1c]
xor ecx, dword [ebp - 0xc]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
push eax
call fcn.004c9d71
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
xor ebx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x18]
mov eax, ebx
xor edx, dword [ebp - 4]
shr eax, 8
mov byte [esi], bl
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 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
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [ebp + 0x10], 1
mov dword [ebp + 0x1c], edx
jne 0x4cd93f
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
jmp 0x4cda03
mov eax, dword [ebp + 8]
cmp ecx, 0xfffffff8
je 0x4cdcbd
mov edx, dword [ebp + 0x24]
add eax, 8
xor edi, edi
add ecx, eax
add edx, 7
mov eax, edi
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x24], edx
cmp edx, 7
ja case.default.0x4cda26
jmp dword [edx*4 + 0x4cdd0f]
dec ecx
movzx edi, byte [ecx]
shl edi, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or edi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
dec ecx
movzx eax, byte [ecx]
or edi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x18
mov dword [ebp + 0x10], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or dword [ebp + 0x10], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor edi, dword [ebp + 0x1c]
xor eax, ebx
xor eax, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], edi
call fcn.004c9d71
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
xor ebx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x18]
mov eax, ebx
xor edx, dword [ebp - 4]
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
mov edi, dword [ebp + 0x18]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
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
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x4cdcbd
mov esi, dword [ebp + 0x10]
xor ecx, ecx
add esi, 0xfffffff8
mov dword [ebp + 0x24], esi
test esi, esi
jle 0x4cdbdc
mov edx, dword [ebp + 8]
lea eax, [esi - 1]
shr eax, 3
inc eax
mov dword [ebp - 0x10], eax
imul eax, eax, 0xfffffff8
add esi, eax
mov dword [ebp + 0x24], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
jmp 0x4cdb12
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 1]
movzx edi, byte [edx]
shl eax, 8
or edi, eax
movzx esi, byte [edx + 4]
movzx eax, byte [edx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or edi, eax
mov eax, edi
xor eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
movzx eax, byte [edx + 5]
shl eax, 8
or esi, eax
movzx eax, byte [edx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or esi, eax
mov dword [ebp - 0x14], edx
mov eax, esi
xor eax, dword [ebp - 4]
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c9d71
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
xor ecx, ebx
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebp - 8]
xor edx, dword [ebp + 0x1c]
mov eax, ecx
xor edx, dword [ebp - 0xc]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
sub dword [ebp - 0x10], 1
mov edx, esi
push 0
mov dword [ebp + 0x10], ebx
mov ebx, edi
mov dword [ebp + 0x1c], edx
pop ecx
jne 0x4cdb0f
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0x18]
jmp 0x4cdbe5
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x24], 0xfffffff8
je 0x4cdcbd
movzx eax, byte [esi + 1]
movzx ecx, byte [esi]
movzx edx, byte [esi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi + 5]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [esi + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 6]
or ecx, eax
lea eax, [ebp - 0x1c]
shl ecx, 0x10
or edx, ecx
push 0
push dword [ebp + 0x14]
mov dword [ebp + 0x20], edx
xor edx, dword [ebp - 4]
push eax
mov dword [ebp - 0x18], edx
call fcn.004c9d71
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
xor eax, ebx
mov ebx, dword [ebp + 0x24]
xor edx, dword [ebp + 0x1c]
xor eax, dword [ebp - 8]
xor edx, dword [ebp - 0xc]
lea ecx, [ebx + 8]
mov dword [ebp + 0x18], eax
add ecx, dword [ebp + 0x10]
add ebx, 7
cmp ebx, 7
ja case.default.0x4cdc74
jmp dword [ebx*4 + 0x4cdd2f]
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 eax, dword [ebp + 0x18]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 0x18]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 0x18]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x18]
mov byte [ecx - 1], al
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x20]
mov esi, edx
mov byte [edi], bl
shr esi, 8
mov eax, edx
mov dword [ebp + 0x20], esi
mov ecx, edx
mov esi, ebx
shr eax, 0x18
shr esi, 0x18
mov dword [ebp + 0x1c], esi
mov esi, ebx
shr esi, 0x10
mov dword [ebp + 0x10], esi
mov esi, ebx
shr ecx, 0x10
shr esi, 8
mov dword [ebp + 0x18], esi
mov ebx, dword [ebp + 0x18]
mov byte [edi + 1], bl
mov ebx, dword [ebp + 0x10]
mov byte [edi + 2], bl
mov ebx, dword [ebp + 0x1c]
mov byte [edi + 3], bl
mov byte [edi + 4], dl
mov edx, dword [ebp + 0x20]
mov byte [edi + 5], dl
mov byte [edi + 6], cl
mov byte [edi + 7], al
pop edi
pop esi
pop ebx
leave
ret