Function at 0x4cc930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x18
push 0x564342
push ebx
call fcn.004dc4e0
mov esi, dword [ebp + 8]
push 0x10
push dword [esi]
push ebx
call fcn.004dc4e0
push 0x18
push dword [esi + 4]
push ebx
call fcn.004dc4e0
mov edi, dword [esi + 4]
mov ecx, 1
add esp, 0x24
cmp edi, ecx
jle 0x4cc986
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov al, byte [edx + ecx]
test al, al
je 0x4cc986
cmp byte [edx + ecx + 1], al
jl 0x4cc986
inc ecx
cmp ecx, edi
jl 0x4cc974
push 1
cmp ecx, edi
jne 0x4cca2a
push 1
push ebx
mov dword [ebp + 8], 0
call fcn.004dc4e0
mov eax, dword [esi + 8]
push 5
movsx eax, byte [eax]
dec eax
push eax
push ebx
call fcn.004dc4e0
mov edi, 1
add esp, 0x18
cmp dword [esi + 4], edi
jle 0x4cca0b
nop dword [eax]
mov eax, dword [esi + 8]
mov cl, byte [eax + edi]
mov dl, byte [eax + edi - 1]
cmp cl, dl
jle 0x4cca05
movsx eax, cl
movsx ecx, dl
cmp ecx, eax
jge 0x4cca05
sub eax, ecx
mov dword [ebp - 4], eax
nop dword [eax]
mov eax, dword [esi + 4]
sub eax, dword [ebp + 8]
push eax
call fcn.004cbb20
push eax
mov eax, edi
sub eax, dword [ebp + 8]
push eax
push ebx
call fcn.004dc4e0
add esp, 0x10
mov dword [ebp + 8], edi
sub dword [ebp - 4], 1
jne 0x4cc9e0
inc edi
cmp edi, dword [esi + 4]
jl 0x4cc9c0
mov eax, dword [esi + 4]
sub eax, dword [ebp + 8]
push eax
call fcn.004cbb20
sub edi, dword [ebp + 8]
push eax
push edi
push ebx
call fcn.004dc4e0
add esp, 0x10
jmp 0x4ccacc
push 0
push ebx
call fcn.004dc4e0
mov ecx, dword [esi + 4]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x4cca4c
mov edx, dword [esi + 8]
cmp byte [edx + eax], 0
je 0x4cca4c
inc eax
cmp eax, ecx
jl 0x4cca41
push 1
cmp eax, ecx
jne 0x4cca80
push 0
push ebx
call fcn.004dc4e0
xor edi, edi
add esp, 0xc
cmp dword [esi + 4], edi
jle 0x4ccacc
mov eax, dword [esi + 8]
push 5
movsx eax, byte [eax + edi]
dec eax
push eax
push ebx
call fcn.004dc4e0
inc edi
add esp, 0xc
cmp edi, dword [esi + 4]
jl 0x4cca64
jmp 0x4ccacc
push 1
push ebx
call fcn.004dc4e0
xor edi, edi
add esp, 0xc
cmp dword [esi + 4], edi
jle 0x4ccacc
mov eax, dword [esi + 8]
push 1
cmp byte [edi + eax], 0
jne 0x4ccaaa
push 0
push ebx
call fcn.004dc4e0
add esp, 0xc
jmp 0x4ccac6
push 1
push ebx
call fcn.004dc4e0
mov eax, dword [esi + 8]
push 5
movsx eax, byte [eax + edi]
dec eax
push eax
push ebx
call fcn.004dc4e0
add esp, 0x18
inc edi
cmp edi, dword [esi + 4]
jl 0x4cca92
push 4
push dword [esi + 0xc]
push ebx
call fcn.004dc4e0
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x4ccb83
dec eax
cmp eax, 1
ja 0x4ccaf1
cmp dword [esi + 0x20], 0
jne 0x4ccafb
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
push dword [esi + 0x10]
push ebx
call fcn.004dc4e0
push 0x20
push dword [esi + 0x14]
push ebx
call fcn.004dc4e0
mov eax, dword [esi + 0x18]
push 4
dec eax
push eax
push ebx
call fcn.004dc4e0
push 1
push dword [esi + 0x1c]
push ebx
call fcn.004dc4e0
mov eax, dword [esi + 0xc]
add esp, 0x30
sub eax, 1
je 0x4ccb46
sub eax, 1
je 0x4ccb3e
or edi, 0xffffffff
jmp 0x4ccb51
mov edi, dword [esi + 4]
imul edi, dword [esi]
jmp 0x4ccb51
push esi
call fcn.004cc670
add esp, 4
mov edi, eax
xor ecx, ecx
mov dword [ebp + 8], ecx
test edi, edi
jle 0x4ccb83
nop word [eax + eax]
mov eax, dword [esi + 0x20]
push dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
cdq
xor eax, edx
sub eax, edx
push eax
push ebx
call fcn.004dc4e0
mov ecx, dword [ebp + 8]
add esp, 0xc
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, edi
jl 0x4ccb60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret