Function at 0x4dcd60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30
call fcn.00628570
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 1
mov ecx, esi
mov dword [ebp - 8], eax
shl ebx, cl
push edi
mov edi, dword [ebp + 8]
cmp edx, dword [eax + 8]
jle 0x4dcd96
mov ecx, eax
call fcn.004749e0
mov edx, dword [ebp - 4]
test eax, eax
jne 0x4dcda1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 3
jg 0x4dce14
xor ecx, ecx
mov dword [ebp + 0x10], ecx
test edx, edx
jle 0x4dcf51
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x4dcde9
nop dword [eax + eax]
mov ecx, eax
xor ecx, dword [ebp + 0xc]
lea edx, [ecx - 1]
not ecx
shr edx, 0x1f
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4]
inc eax
or esi, edx
cmp eax, ebx
jl 0x4dcdc0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [eax + ecx*4], esi
inc ecx
lea eax, [ebx*4]
mov dword [ebp + 0x10], ecx
add edi, eax
cmp ecx, edx
jl 0x4dcdb3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [eax + 4], edx
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [esi - 2]
sar edx, cl
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
lea eax, [esi - 1]
and ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 1
and ecx, 1
neg ecx
mov dword [ebp - 0x28], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 2
and ecx, 1
xor edx, 3
neg ecx
mov dword [ebp - 0x24], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
neg ecx
and eax, edx
and ecx, 1
neg eax
xor edx, edx
and eax, 1
mov dword [ebp - 0x14], edx
neg ecx
neg eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], edx
jle 0x4dcf4e
lea eax, [ebx*4]
mov dword [ebp - 0x30], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0x10], eax
test esi, esi
jle 0x4dcf36
lea eax, [esi + esi*2]
lea edx, [edi + esi*4]
lea ecx, [edi + esi*8]
mov dword [ebp - 0x10], edx
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
mov eax, dword [eax]
mov esi, ebx
mov ecx, dword [ecx]
and ecx, dword [ebp - 0x20]
and eax, dword [ebp - 0x1c]
xor esi, dword [ebp - 0x18]
or ecx, eax
mov edx, dword [edx]
and edx, dword [ebp - 0x24]
mov eax, dword [edi + ebx*4]
or edx, ecx
and eax, dword [ebp - 0x28]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
or eax, edx
mov edx, dword [ebp - 0x10]
and ecx, esi
mov esi, dword [ebp - 0x2c]
neg ecx
and ecx, 1
inc ebx
neg ecx
add edx, 4
and ecx, eax
mov dword [ebp - 0x10], edx
or dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add eax, 4
add ecx, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ecx
cmp ebx, esi
jl 0x4dced4
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add edi, dword [ebp - 0x30]
mov ecx, dword [ecx]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 4]
jl 0x4dceb4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [eax + 4], edx
mov eax, 1
mov esp, ebp
pop ebp
ret