Function at 0x4dec45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, 0x5c87d0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
mov edx, dword [ebp + 0xc]
jmp 0x4dec74
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0x787820ff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
dec ebx
mov eax, esi
test ebx, ebx
je 0x4dec7d
test dl, 3
jne 0x4dec5d
cmp ebx, 0x20
jb 0x6dec92
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
sub ebx, 0x20
mov eax, esi
cmp ebx, 0x20
jae 0x4dec86
cmp ebx, 4
jb 0x4deedf
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0x787820ff
and edi, 0x787820ff
mov esi, dword [ecx + esi*4 + 0x200c00]
xor esi, dword [ecx + edi*4 + 0x780000]
mov edi, eax
shr edi, 0x10
and edi, 0x787820ff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x400]
xor esi, dword [ecx + eax*4]
sub ebx, 4
mov eax, esi
cmp ebx, 4
jae 0x4dee97
test ebx, ebx
je 0x4deefc
movzx esi, byte [edx]
xor esi, eax
and esi, 0x787820ff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
inc edx
mov eax, esi
dec ebx
jne 0x4deee3
not eax
pop edi
pop esi
pop ebx
pop ebp
ret