Function at 0x100ce8a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10123f80
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
push edi
je 0x100ceaea
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 3]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 7]
or ecx, eax
add ebp, 0xfffffff8
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebp
js 0x100ce9e7
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x14], eax
neg eax
lea ebp, [ebp + eax*8]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x14]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 3]
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [esp + 0x14]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [ebx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or ecx, eax
xor ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
add ebx, 8
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
call fcn.100cf150
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov byte [edi + 3], dl
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
add esp, 8
add edi, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ecx
dec ebp
jne 0x100ce933
mov ebp, dword [esp + 0x30]
cmp ebp, 0xfffffff8
je 0x100ceaad
mov eax, dword [esp + 0x30]
lea ecx, [ebp + 8]
add ecx, ebx
add eax, 7
xor ebx, ebx
xor ebp, ebp
cmp eax, 7
ja case.default.0x100cea05
jmp dword [eax*4 + 0x100ced3c]
movzx ebx, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or ebx, eax
movzx ebp, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or ebp, eax
push dword [esp + 0x34]
xor ebx, dword [esp + 0x40]
lea eax, [esp + 0x20]
xor ebp, edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call fcn.100cf150
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov byte [edi + 3], dl
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
add esp, 8
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov eax, edx
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], dl
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
pop edi
mov byte [esi + 6], al
mov byte [esi + 7], cl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 4]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 3]
mov ebp, dword [esp + 0x28]
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [ebx + 6]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 7]
or edx, eax
add edi, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
js 0x100cec2a
mov ebx, dword [esp + 0x2c]
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x30], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x18], edi
nop
movzx edi, byte [ebp]
movzx eax, byte [ebp + 1]
movzx esi, byte [ebp + 4]
shl eax, 0x10
shl edi, 0x18
or edi, eax
movzx eax, byte [ebp + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ebp + 3]
push dword [esp + 0x34]
or edi, eax
movzx eax, byte [ebp + 5]
shl eax, 0x10
shl esi, 0x18
or esi, eax
movzx eax, byte [ebp + 6]
shl eax, 8
or esi, eax
movzx eax, byte [ebp + 7]
or esi, eax
lea eax, [esp + 0x20]
push eax
add ebp, 8
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
call fcn.100ced80
mov ecx, dword [esp + 0x24]
xor ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
xor edx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov byte [ebx + 3], cl
mov eax, edx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add esp, 8
add ebx, 8
dec dword [esp + 0x30]
mov ecx, edi
mov edx, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edx
jne 0x100ceb60
mov edi, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
jmp 0x100cec2e
mov esi, dword [esp + 0x2c]
cmp edi, 0xfffffff8
je 0x100cecfe
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x34]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 3]
or edx, eax
movzx eax, byte [ebp + 5]
shl ecx, 0x18
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 7]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ebp + 6]
mov ebp, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x20]
or ebp, ecx
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
call fcn.100ced80
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
xor eax, dword [esp + 0x18]
xor edx, dword [esp + 0x44]
lea ecx, [edi + 8]
add edi, 7
add esp, 8
add ecx, esi
mov dword [esp + 0x30], eax
cmp edi, 7
ja case.default.0x100cecbb
jmp dword [edi*4 + 0x100ced5c]
dec ecx
mov byte [ecx], al
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
shr edx, 0x18
mov byte [ecx - 1], dl
mov ecx, dword [esp + 0x18]
mov edx, ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov byte [ebx + 3], cl
mov eax, edx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
pop edi
mov eax, edx
pop esi
shr eax, 8
mov byte [ebx + 6], al
pop ebp
mov byte [ebx + 7], dl
pop ebx
add esp, 0x14
ret