Function at 0x5dea90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.00655180
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 4]
push ebx
push ebp
push esi
lea esi, [eax + 1]
shl edx, 0x18
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 0x10
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 2]
or ecx, eax
cmp dword [esp + 0x44], 0
push edi
mov dword [esp + 0x10], ecx
je 0x5dece1
movzx eax, byte [esi + 4]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
lea ebp, [ebx - 8]
or edx, eax
lea eax, [esi + 6]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
or edx, eax
mov dword [esp + 0x48], edx
test ebp, ebp
js 0x5debd2
shr ebx, 3
mov eax, ebx
neg eax
lea ebp, [ebp + eax*8]
nop dword [eax]
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 4]
shl eax, 0x10
push dword [esp + 0x40]
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [edi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [esp + 0x14]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x28], edx
movzx eax, byte [edi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 7]
or ecx, eax
add edi, 8
xor ecx, dword [esp + 0x4c]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], ecx
call fcn.005def80
mov ecx, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 3], cl
mov byte [esi + 6], al
mov byte [esi + 7], dl
add esi, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], edx
sub ebx, 1
jne 0x5deb20
cmp ebp, 0xfffffff8
je 0x5dec98
lea ecx, [edi + 8]
xor ebx, ebx
add ecx, ebp
xor edi, edi
add ebp, 7
cmp ebp, 7
ja case.default.0x5debec
jmp dword [ebp*4 + 0x5def40]
movzx edi, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or edi, eax
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]
shl eax, 0x18
or ebx, eax
push dword [esp + 0x40]
xor ebx, dword [esp + 0x14]
lea eax, [esp + 0x28]
xor edi, edx
mov dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x30], edi
call fcn.005def80
mov ecx, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 3], cl
mov dword [esp + 0x48], edx
mov byte [esi + 6], al
mov byte [esi + 7], dl
mov eax, dword [esp + 0x14]
mov esi, edx
add eax, 0xfffffffa
shr esi, 0x10
mov dword [esp + 0x2c], eax
mov ebx, edx
mov dword [esp + 0x20], esi
mov esi, edx
shr ebx, 8
lea edi, [eax + 4]
shr esi, 0x18
mov eax, ecx
mov dword [esp + 0x24], ebx
shr eax, 8
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x18], eax
mov eax, ecx
shr eax, 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
jmp 0x5deef4
movzx eax, byte [esi + 4]
lea ebx, [esi + 4]
mov ebp, dword [esp + 0x38]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x2c], ebx
movzx eax, byte [ebx + 1]
shl eax, 8
or edx, eax
lea eax, [ebx + 2]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
or edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
lea ebx, [eax - 8]
mov dword [esp + 0x18], ebx
test ebx, ebx
js 0x5dedf0
shr eax, 3
mov dword [esp + 0x3c], eax
neg eax
lea ebx, [ebx + eax*8]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x34]
movzx edi, byte [ebx]
movzx eax, byte [ebx + 1]
movzx esi, byte [ebx + 4]
shl eax, 0x10
push dword [esp + 0x40]
shl edi, 0x18
or edi, eax
shl esi, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 3]
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
or esi, eax
mov dword [esp + 0x28], edi
movzx eax, byte [ebx + 6]
shl eax, 8
or esi, eax
movzx eax, byte [ebx + 7]
or esi, eax
add ebx, 8
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], esi
push eax
call fcn.005def80
mov ecx, dword [esp + 0x2c]
add esp, 8
xor ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, ecx
xor edx, dword [esp + 0x48]
shr eax, 0x18
mov byte [ebp], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 5], al
mov eax, edx
shr eax, 8
mov byte [ebp + 3], cl
mov ecx, edi
mov byte [ebp + 7], dl
mov edx, esi
mov byte [ebp + 6], al
add ebp, 8
sub dword [esp + 0x3c], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], edx
jne 0x5ded35
jmp 0x5dedf4
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x18], 0xfffffff8
je 0x5deeb7
movzx esi, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx + 4]
movzx ecx, byte [ebx + 6]
push dword [esp + 0x40]
shl eax, 0x10
shl esi, 0x18
or esi, eax
shl edi, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or esi, eax
shl ecx, 8
movzx eax, byte [ebx + 3]
or esi, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
or edi, eax
mov dword [esp + 0x28], esi
movzx eax, byte [ebx + 7]
or ecx, eax
lea eax, [esp + 0x28]
or edi, ecx
push eax
mov dword [esp + 0x30], edi
call fcn.005def80
mov eax, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
xor edx, dword [esp + 0x10]
xor ebx, dword [esp + 0x48]
lea ecx, [eax + 8]
add eax, 7
add ecx, ebp
cmp eax, 7
ja case.default.0x5dee76
jmp dword [eax*4 + 0x5def60]
dec ecx
mov byte [ecx], bl
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
shr ebx, 0x18
mov byte [ecx], bl
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 edx, edi
mov ecx, esi
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x14]
mov ebx, edx
mov edi, dword [esp + 0x2c]
mov esi, edx
shr ebx, 8
add eax, 0xfffffffa
mov dword [esp + 0x24], ebx
mov ebx, ecx
shr esi, 0x10
shr ebx, 8
mov dword [esp + 0x20], esi
mov esi, edx
mov dword [esp + 0x10], ebx
mov edx, ecx
mov ebx, ecx
shr esi, 0x18
shr ebx, 0x10
shr edx, 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x14]
mov ebp, 0xfffffff9
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov esi, eax
mov byte [edx + ebp], bl
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov byte [eax], bl
mov ebx, dword [esp + 0x10]
mov byte [eax + 1], bl
mov eax, dword [esp + 0x1c]
mov byte [esi + 2], cl
mov byte [esi + 3], al
mov eax, dword [esp + 0x20]
mov byte [edi], al
mov ebx, dword [esp + 0x24]
mov byte [edi + 1], bl
mov byte [edi + 2], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret