Function at 0x4c5ab4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x34], 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x34]
sub al, 3
setb al
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x200
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x12
call fcn.00403224
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x4c5b11
mov dword [ebp - 0x10], 8
lea edx, [ebp - 0x2a]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00402a38
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x34]
sub al, 2
je 0x4c5b33
sub al, 3
jne 0x4c5b77
mov al, byte [ebp - 0x2a]
xor al, byte [ebp - 0x28]
xor al, 0x81
mov byte [ebp - 0x25], al
mov al, byte [ebp - 0x2a]
xor al, byte [ebp - 0x27]
xor al, byte [ebp - 0x26]
xor al, 0x42
mov byte [ebp - 0x24], al
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x28]
xor al, byte [ebp - 0x26]
xor al, 0x24
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x27]
xor al, 0x18
mov byte [ebp - 0x22], al
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call fcn.00402a38
jmp 0x4c5be1
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 8
jle 0x4c5baf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sub eax, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x4c5b99
mov dword [ebp - 0x10], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 8
lea edx, [ebp - 0x21]
mov ecx, dword [ebp - 0x10]
call fcn.00402a38
jmp 0x4c5bbf
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call fcn.00402a38
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x2a]
xor byte [ebp - 0x22], al
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x21]
xor byte [ebp - 0x19], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x4c5bc4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x21]
mov ecx, 8
call fcn.00402a38
add dword [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x2a]
shr eax, 3
mov edx, dword [ebp - 0x10]
mov dl, byte [ebp + edx - 0x2a]
shl edx, 5
or al, dl
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x2a], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jne 0x4c5bfa
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
test eax, eax
jle 0x4c5d73
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [ebp + eax - 0x2a]
shl eax, 6
mov edx, dword [ebp - 0x14]
movzx edx, byte [ebp + edx - 0x2a]
shr edx, 2
or al, dl
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x2a], al
mov eax, dword [ebp - 0x14]
mov al, byte [ebp + eax - 0x21]
shl eax, 6
mov edx, dword [ebp - 0x14]
movzx edx, byte [ebp + edx - 0x21]
shr edx, 2
or al, dl
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x21], al
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 9
jne 0x4c5c41
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x4c5cc6
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, dword [ebp - 0x14]
dec eax
mov ecx, 9
cdq
idiv ecx
mov al, byte [ebp + edx - 0x2a]
mov edx, dword [ebp - 0x10]
add edx, edx
lea edx, [edx + edx*8]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 1]
mov ecx, dword [ebp - 8]
add al, byte [ecx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x4c5ceb
mov eax, dword [ebp - 0x10]
add eax, eax
lea eax, [eax + eax*8]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
add al, byte [ebp + edx - 0x2a]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jne 0x4c5c8b
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x4c5d36
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, dword [ebp - 0x14]
mov ecx, 9
cdq
idiv ecx
mov al, byte [ebp + edx - 0x21]
mov edx, dword [ebp - 0x10]
add edx, edx
lea edx, [edx + edx*8]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 0xa]
mov ecx, dword [ebp - 8]
add al, byte [ecx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x4c5d5b
mov eax, dword [ebp - 0x10]
add eax, eax
lea eax, [eax + eax*8]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 0xa]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
add al, byte [ebp + edx - 0x21]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jne 0x4c5cfc
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4c5c3c
lea eax, [ebp - 0x2a]
mov edx, 0x12
call fcn.004c4144
mov esp, ebp
pop ebp
ret