Function at 0x1009e5c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.10123f80
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
je 0x1009e845
movzx ebx, byte [eax]
lea edi, [eax + 1]
mov edx, edi
mov dword [esp + 0x20], edi
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [esp + 0x24], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x24]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff8
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ecx
js 0x1009e71b
lea edi, [ecx + 8]
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x3c], ecx
jmp 0x1009e660
movzx eax, byte [ebp + 1]
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp + 3]
push dword [esp + 0x34]
shl eax, 0x18
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebp + 5]
push dword [esp + 0x34]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
or ecx, eax
xor ecx, dword [esp + 0x30]
lea eax, [esp + 0x20]
xor edx, ebx
push eax
add ebp, 8
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
call fcn.1009f0a0
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov byte [esi], bl
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esp, 0x10
add esi, 8
mov dword [esp + 0x24], edx
dec edi
jne 0x1009e660
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp ecx, 0xfffffff8
je 0x1009e809
mov edx, dword [esp + 0x3c]
add ecx, 8
add edx, 7
add ecx, ebp
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x3c], edx
cmp edx, 7
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
ja case.default.0x1009e749
mov edi, dword [esp + 0x3c]
jmp dword [edi*4 + 0x1009eaa4]
movzx ebp, byte [ecx - 1]
dec ecx
shl ebp, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [esp + 0x28], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [esp + 0x28], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [esp + 0x28], eax
movzx eax, byte [ecx - 1]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x34]
xor eax, ebx
push dword [esp + 0x34]
mov dword [esp + 0x1c], eax
push dword [esp + 0x34]
lea eax, [esp + 0x20]
xor ebp, edx
push eax
mov dword [esp + 0x28], ebp
call fcn.1009f0a0
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov byte [esi], bl
mov edi, dword [esp + 0x30]
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
add esp, 0x10
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x38]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
shr ebx, 0x18
mov byte [edi + 2], bl
mov byte [edi + 3], dl
mov eax, edx
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
shr edx, 0x18
mov byte [edi + 6], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx ecx, byte [eax]
lea ebx, [eax + 1]
mov edx, ebx
mov edi, dword [esp + 0x28]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [esp + 0x24], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [esp + 0x20], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x20]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
add edi, 0xfffffff8
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], edx
js 0x1009e986
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x28], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x10], edi
lea ebx, [ebx]
movzx eax, byte [ebp + 1]
movzx ebx, byte [ebp]
movzx edi, byte [ebp + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
push dword [esp + 0x34]
or ebx, eax
movzx eax, byte [ebp + 3]
push dword [esp + 0x34]
shl eax, 0x18
push dword [esp + 0x34]
or ebx, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or edi, eax
movzx eax, byte [ebp + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
or edi, eax
lea eax, [esp + 0x20]
push eax
add ebp, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
call fcn.1009e4b0
mov ecx, dword [esp + 0x24]
xor ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
xor edx, dword [esp + 0x30]
mov byte [esi], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], dl
add esp, 0x10
add esi, 8
dec dword [esp + 0x28]
mov ecx, ebx
mov edx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jne 0x1009e8c0
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
jmp 0x1009e98a
mov ecx, dword [esp + 0x24]
cmp edi, 0xfffffff8
je 0x1009ea68
movzx eax, byte [ebp + 1]
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x34]
shl eax, 0x10
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebp + 3]
push dword [esp + 0x34]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 6]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ebp + 7]
mov ebp, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
lea eax, [esp + 0x20]
or ebp, ecx
push eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
call fcn.1009e4b0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
xor eax, dword [esp + 0x30]
xor edx, dword [esp + 0x34]
lea ecx, [edi + 8]
add edi, 7
add esp, 0x10
add ecx, esi
mov dword [esp + 0x28], eax
cmp edi, 7
ja case.default.0x1009ea1f
jmp dword [edi*4 + 0x1009eac4]
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [esp + 0x28]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x28]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x28]
dec ecx
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [esp + 0x3c]
mov edx, ebp
mov eax, dword [esp + 0x38]
pop edi
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
shr ecx, 0x18
mov byte [ebx + 2], cl
mov byte [ebx + 3], dl
mov eax, edx
shr eax, 8
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
pop esi
mov byte [ebx + 5], al
shr edx, 0x18
pop ebp
mov byte [ebx + 6], dl
pop ebx
add esp, 0xc
ret