Function at 0x5c9700
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.004cea70
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
je 0x5c997b
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], ebp
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 + 0x10], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff8
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
js 0x5c9856
lea ebp, [ecx + 8]
shr ebp, 3
mov eax, ebp
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
push 1
push dword [esp + 0x38]
or ecx, eax
lea eax, [esp + 0x24]
xor ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x2c], ecx
call fcn.005c7660
mov ebx, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
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
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
mov dword [esp + 0x10], edx
sub ebp, 1
jne 0x5c97a0
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
cmp ecx, 0xfffffff8
je 0x5c993e
mov edx, dword [esp + 0x14]
add edi, 8
add edx, 7
add ecx, edi
xor eax, eax
mov dword [esp + 0x14], edx
xor edi, edi
mov dword [esp + 0x30], eax
cmp edx, 7
mov edx, dword [esp + 0x10]
ja case.default.0x5c9884
mov ebp, dword [esp + 0x14]
jmp dword [ebp*4 + 0x5c9bcc]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [esp + 0x30], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [esp + 0x30], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [esp + 0x30], eax
movzx eax, byte [ecx - 1]
or dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
xor eax, ebx
xor edi, edx
push 1
push dword [esp + 0x38]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], edi
call fcn.005c7660
mov ebx, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
mov ebp, dword [esp + 0x3c]
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
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x38]
pop edi
pop esi
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [ebp], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], dl
shr eax, 8
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 5], al
shr edx, 0x18
mov byte [ebp + 6], dl
pop ebp
pop ebx
add esp, 0x14
ret
movzx ecx, byte [eax]
lea esi, [eax + 1]
mov edx, esi
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
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 + 0x10], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [esp + 0x3c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x3c]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
add edi, 0xfffffff8
mov dword [esp + 0x3c], edx
js 0x5c9ac1
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 dword [eax + eax]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
push 0
push dword [esp + 0x38]
or esi, eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], esi
call fcn.005c7660
mov ecx, dword [esp + 0x28]
add esp, 0xc
xor ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor edx, dword [esp + 0x3c]
mov byte [ebp], cl
shr eax, 8
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebp + 3], cl
mov ecx, edi
mov byte [ebp + 4], dl
shr eax, 8
mov byte [ebp + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 6], al
mov byte [ebp + 7], dl
add ebp, 8
sub dword [esp + 0x30], 1
mov edx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], edx
jne 0x5c9a00
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x5c9ac5
mov ecx, dword [esp + 0x10]
cmp edi, 0xfffffff8
je 0x5c9b90
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [esp + 0x1c]
push 0
push dword [esp + 0x38]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
call fcn.005c7660
mov edx, dword [esp + 0x28]
lea ecx, [ebp + 8]
mov ebx, dword [esp + 0x2c]
add ecx, edi
xor edx, dword [esp + 0x1c]
add edi, 7
xor ebx, dword [esp + 0x48]
add esp, 0xc
cmp edi, 7
ja case.default.0x5c9b4b
jmp dword [edi*4 + 0x5c9bec]
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], bl
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 + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
pop edi
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr ecx, 0x18
mov byte [esi + 2], cl
mov byte [esi + 3], dl
shr eax, 8
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
shr edx, 0x18
mov byte [esi + 6], dl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret