Function at 0x40762e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, ecx
push esi
mov esi, edx
push edi
movzx edx, byte [ebp + 1]
movzx eax, byte [ebp]
movzx ecx, byte [ebp + 4]
shl edx, 8
or edx, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or ecx, eax
mov dword [esp + 0x14], edx
movzx eax, byte [ebp + 6]
mov dword [esp + 0x10], ecx
movzx ecx, byte [ebp + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 0x10
or dword [esp + 0x10], ecx
lea ecx, [eax - 8]
mov dword [esp + 0x1c], ecx
test ecx, ecx
js 0x407771
shr eax, 3
mov ebp, esi
mov dword [esp + 0x2c], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov dword [esp + 0x1c], ecx
movzx eax, byte [ebx + 1]
lea ecx, [esp + 0x20]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
mov edx, dword [esp + 0x30]
movzx eax, byte [ebx + 2]
push dword [esp + 0x38]
shl eax, 0x10
push dword [esp + 0x38]
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 + 0x28], 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 + 0x2c], esi
call fcn.00407525
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
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 + 0x2c], 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jne 0x4076aa
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
jmp 0x407775
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0xfffffff8
je 0x40784a
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx edx, byte [ebx + 4]
movzx ecx, byte [ebx + 7]
push dword [esp + 0x38]
shl eax, 8
or edi, eax
shl ecx, 8
movzx eax, byte [ebx + 2]
push dword [esp + 0x38]
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 + 0x28], edi
movzx eax, byte [ebx + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
call fcn.00407525
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, dword [esp + 0x14]
xor edx, dword [esp + 0x10]
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x4077ff
jmp dword [eax*4 + 0x4078a6]
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
dec ecx
mov byte [ecx], dl
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
mov byte [ecx - 1], bl
mov ecx, dword [esp + 0x2c]
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 + 0x2c], eax
mov eax, edx
shr edx, 0x18
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x14]
mov byte [ebp], dl
mov edx, dword [esp + 0x2c]
mov byte [ebp + 1], dl
shr eax, 0x10
mov dword [esp + 0x3c], eax
mov edx, eax
mov eax, dword [esp + 0x10]
mov byte [ebp + 2], dl
mov edx, dword [esp + 0x38]
mov byte [ebp + 3], dl
mov edx, dword [esp + 0x10]
shr ebx, 8
mov byte [ebp + 4], dl
mov byte [ebp + 5], bl
pop edi
shr ecx, 0x10
shr eax, 0x18
mov byte [ebp + 6], cl
pop esi
mov byte [ebp + 7], al
pop ebp
pop ebx
add esp, 0x18
ret 0x18