Function at 0x4ce45f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x4ce488
push 0xfffffffffffffffb
pop eax
jmp 0x4ce708
cmp dword [esi + 8], 0
je 0x4ce492
push 0xfffffffffffffffa
jmp 0x4ce482
test edi, edi
je 0x4ce706
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4ce706
mov ecx, dword [esi + 4]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp - 0x2c], eax
je 0x4ce6dd
dec ecx
je 0x4ce65d
dec ecx
je 0x4ce4cf
or eax, 0xffffffff
jmp 0x4ce708
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4ce701
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push eax
push esi
call fcn.004c6c9e
mov eax, edi
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp - 0x24]
and dl, 0x80
mov ecx, edi
and ecx, 7
shr dl, cl
mov dword [ebp - 0x30], ecx
mov cl, byte [ebp - 0x13]
shr cl, 7
sar eax, 3
add eax, ebx
xor byte [eax], dl
mov dl, byte [ebp - 0x14]
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x13]
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0x12]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x12]
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0x11]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x11]
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x10]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x11], cl
mov cl, byte [ebp - 0xf]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 0xe]
mov al, byte [eax]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xd]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xc]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0xb]
shr cl, 7
add dl, dl
add esp, 0xc
or cl, dl
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0xc], cl
mov cl, byte [ebp - 0xa]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov cl, byte [ebp - 9]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov cl, byte [ebp - 8]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 8]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 7]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 7]
mov byte [ebp - 8], cl
mov cl, byte [ebp - 6]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 6]
mov byte [ebp - 7], cl
mov cl, byte [ebp - 5]
shr cl, 7
add dl, dl
or cl, dl
mov byte [ebp - 6], cl
mov cl, 7
sub cl, byte [ebp - 0x30]
shr al, cl
mov cl, byte [ebp - 5]
add cl, cl
and al, 1
or al, cl
inc edi
cmp edi, 0x80
mov byte [ebp - 5], al
jl 0x4ce4f4
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4ce4f2
jmp 0x4ce6fe
mov eax, dword [esi + 0xc]
xor eax, dword [edi]
push ebx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004c6c9e
mov eax, dword [ebp - 0x2c]
add esp, 0xc
add edi, 0x10
dec eax
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4ce6fe
mov eax, dword [ebx]
xor eax, dword [edi]
add ebx, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebx - 0xc]
xor eax, dword [edi + 4]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx - 8]
xor eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx - 4]
xor eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004c6c9e
add esp, 0xc
add edi, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4ce69c
jmp 0x4ce6fe
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4ce701
push ebx
push edi
push esi
call fcn.004c6c9e
add esp, 0xc
add edi, 0x10
add ebx, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4ce6e4
mov eax, dword [ebp - 0x2c]
shl eax, 7
jmp 0x4ce708
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret