Function at 0x406e60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, edx
mov ebx, ecx
push edi
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
movzx ecx, byte [esi + 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
or ecx, eax
mov dword [esp + 0x14], edx
movzx eax, byte [esi + 6]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esi + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x28]
shl ecx, 0x10
or dword [esp + 0x10], ecx
lea ecx, [eax - 8]
mov dword [esp + 0x18], ecx
test ecx, ecx
js 0x406f9f
shr eax, 3
mov dword [esp + 0x28], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x18], ecx
nop dword [eax]
movzx eax, byte [ebx + 1]
lea ecx, [esp + 0x1c]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
mov edx, dword [esp + 0x2c]
movzx eax, byte [ebx + 2]
push dword [esp + 0x34]
shl eax, 0x10
push dword [esp + 0x34]
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 + 0x24], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
mov dword [esp + 0x28], esi
call fcn.00406d50
mov ecx, dword [esp + 0x1c]
xor ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor edx, dword [esp + 0x10]
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 eax, 8
mov byte [ebp + 5], al
mov eax, edx
mov byte [ebp + 4], dl
shr ecx, 0x18
shr edx, 0x18
shr eax, 0x10
mov byte [ebp + 3], cl
mov ecx, esi
mov byte [ebp + 7], dl
mov edx, edi
mov byte [ebp + 6], al
add ebp, 8
sub dword [esp + 0x28], 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jne 0x406ee0
mov esi, dword [esp + 0x38]
jmp 0x406fa3
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x18], 0xfffffff8
je 0x407078
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx edx, byte [ebx + 4]
movzx ecx, byte [ebx + 7]
push dword [esp + 0x34]
shl eax, 8
or edi, eax
shl ecx, 8
movzx eax, byte [ebx + 2]
push dword [esp + 0x34]
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 edx, eax
mov dword [esp + 0x24], edi
movzx eax, byte [ebx + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
call fcn.00406d50
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
xor ebx, dword [esp + 0x14]
xor edx, dword [esp + 0x10]
lea eax, [ecx + 8]
add ecx, 7
add eax, ebp
cmp ecx, 7
ja case.default.0x40702d
jmp dword [ecx*4 + 0x4070d4]
dec eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
dec eax
mov ecx, edx
shr ecx, 0x10
mov byte [eax], cl
dec eax
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
dec eax
mov byte [eax], dl
dec eax
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
dec eax
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
dec eax
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
mov byte [eax - 1], bl
mov ecx, dword [esp + 0x28]
mov edx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov eax, edx
mov ebx, ecx
shr eax, 8
mov dword [esp + 0x28], eax
mov eax, edx
shr edx, 0x18
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
mov byte [esi], dl
mov edx, dword [esp + 0x28]
mov byte [esi + 1], dl
shr eax, 0x10
mov dword [esp + 0x38], eax
mov edx, eax
mov eax, dword [esp + 0x10]
mov byte [esi + 2], dl
mov edx, dword [esp + 0x34]
mov byte [esi + 3], dl
mov edx, dword [esp + 0x10]
shr ebx, 8
mov byte [esi + 4], dl
mov byte [esi + 5], bl
shr ecx, 0x10
pop edi
shr eax, 0x18
mov byte [esi + 6], cl
mov byte [esi + 7], al
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18