Function at 0x4ce717
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
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 + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x4ce740
push 0xfffffffffffffffb
pop eax
jmp 0x4ce9d7
mov ecx, dword [edi + 4]
cmp ecx, 2
je 0x4ce752
cmp dword [edi + 8], 0
jne 0x4ce752
push 0xfffffffffffffffa
jmp 0x4ce73a
test esi, esi
je 0x4ce9d5
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4ce9d5
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp - 0x34], eax
je 0x4ce9ac
dec ecx
je 0x4ce924
dec ecx
je 0x4ce78c
or eax, 0xffffffff
jmp 0x4ce9d7
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4ce9d0
and dword [ebp - 0x2c], 0
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 edi
call fcn.004c6c9e
mov al, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x12]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x11]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x10]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0xf]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xf]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xe]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xd]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xb]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xb]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xa]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 9]
shr al, 7
add cl, cl
add esp, 0xc
or al, cl
mov byte [ebp - 0xa], al
mov al, byte [ebp - 8]
mov cl, byte [ebp - 9]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 8]
mov byte [ebp - 9], al
mov al, byte [ebp - 7]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 7]
mov byte [ebp - 8], al
mov al, byte [ebp - 6]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 6]
mov byte [ebp - 7], al
mov al, byte [ebp - 5]
shr al, 7
add cl, cl
or al, cl
mov byte [ebp - 6], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
and dword [ebp - 0x30], 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + esi]
mov cl, 7
sub cl, byte [ebp - 0x30]
add eax, ebx
shr dl, cl
mov cl, byte [ebp - 5]
add cl, cl
and dl, 1
or dl, cl
mov cl, byte [ebp - 0x30]
mov byte [ebp - 5], dl
mov dl, byte [ebp - 0x24]
and dl, 0x80
shr dl, cl
xor byte [eax], dl
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x80
jl 0x4ce7b3
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4ce7af
jmp 0x4ce9cd
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4ce9d0
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call fcn.004c7049
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebx + 0xc], eax
add esi, 0x10
add ebx, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4ce947
jmp 0x4ce9cd
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x4ce9d0
push ebx
push esi
push edi
call fcn.004c7049
add esp, 0xc
add esi, 0x10
add ebx, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x4ce9b3
mov eax, dword [ebp - 0x34]
shl eax, 7
jmp 0x4ce9d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret