Function at 0x1002f8b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
cmp eax, ecx
jbe 0x1002fb1d
dec eax
lea esi, [edi + 0xc]
shr eax, 3
add edi, 0x14
inc eax
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
shl ecx, 8
or eax, ecx
inc ebx
movzx edx, byte [ebx + 1]
inc ebx
movzx ecx, byte [ebx + 1]
shl edx, 0x10
or eax, edx
shl ecx, 0x18
or eax, ecx
inc ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 1]
inc ebx
movzx edx, byte [ebx + 1]
shl edx, 8
or eax, edx
inc ebx
movzx ecx, byte [ebx + 1]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi]
inc ebx
movzx edx, byte [ebx + 1]
shl edx, 0x18
or eax, edx
inc ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
movzx eax, byte [esi]
and al, 0xdf
or al, 0x40
mov byte [esi], al
and cl, 0xbf
or cl, 0x20
mov byte [edi], cl
movzx ecx, byte [esi + 1]
movzx edx, al
movzx eax, byte [edx + 0x100ce310]
mov byte [esi], al
movzx edx, byte [ecx + 0x100ce310]
movzx eax, byte [esi + 2]
mov byte [esi + 1], dl
movzx ecx, byte [eax + 0x100ce310]
movzx edx, byte [esi + 3]
mov byte [esi + 2], cl
movzx eax, byte [edx + 0x100ce310]
movzx ecx, byte [esi + 4]
mov byte [esi + 3], al
movzx edx, byte [ecx + 0x100ce310]
movzx eax, byte [esi + 5]
mov byte [esi + 4], dl
movzx ecx, byte [eax + 0x100ce310]
movzx edx, byte [esi + 6]
mov byte [esi + 5], cl
movzx eax, byte [edx + 0x100ce310]
movzx ecx, byte [esi + 7]
mov byte [esi + 6], al
movzx edx, byte [ecx + 0x100ce310]
mov byte [esi + 7], dl
lea ecx, [esp + 0x30]
mov edx, esi
inc ebx
call fcn.1002efe0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
call fcn.1002f5a0
movzx ecx, byte [edi]
movzx edx, byte [ecx + 0x100ce310]
movzx eax, byte [edi + 1]
mov byte [edi], dl
movzx ecx, byte [eax + 0x100ce310]
movzx edx, byte [edi + 2]
mov byte [edi + 1], cl
movzx eax, byte [edx + 0x100ce310]
movzx ecx, byte [edi + 3]
mov byte [edi + 2], al
movzx edx, byte [ecx + 0x100ce310]
movzx eax, byte [edi + 4]
mov byte [edi + 3], dl
movzx ecx, byte [eax + 0x100ce310]
movzx edx, byte [edi + 5]
mov byte [edi + 4], cl
movzx eax, byte [edx + 0x100ce310]
movzx ecx, byte [edi + 6]
mov byte [edi + 5], al
movzx edx, byte [ecx + 0x100ce310]
movzx eax, byte [edi + 7]
mov byte [edi + 6], dl
movzx ecx, byte [eax + 0x100ce310]
mov byte [edi + 7], cl
lea ecx, [esp + 0x34]
mov edx, edi
call fcn.1002efe0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
call fcn.1002f5a0
mov edx, dword [esp + 0x30]
xor edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
xor dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
xor edx, dword [esp + 0x24]
mov eax, esi
mov byte [eax], dl
mov dword [esp + 0x1c], edx
shr edx, 8
mov byte [eax + 1], dl
mov edx, dword [esp + 0x1c]
inc eax
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, dword [esp + 0x1c]
inc eax
shr edx, 0x18
mov byte [eax + 1], dl
mov edx, dword [esp + 0x18]
inc eax
mov byte [eax + 1], dl
inc eax
shr edx, 8
mov byte [eax + 1], dl
mov edx, dword [esp + 0x18]
inc eax
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, dword [esp + 0x18]
inc eax
shr edx, 0x18
mov byte [eax + 1], dl
mov eax, edi
mov byte [eax], cl
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
mov byte [eax], cl
mov edx, ecx
inc eax
shr edx, 8
add esp, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x2c], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x1002f8ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret