Function at 0x10085470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
movzx ebx, byte [edi + 3]
movzx eax, byte [edi + 2]
movzx edx, byte [edi + 6]
movzx ecx, byte [edi + 7]
shl ebx, 8
or ebx, eax
shl edx, 8
movzx eax, byte [edi + 1]
shl ebx, 8
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edi]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 5]
or edx, eax
movzx eax, byte [edi + 4]
shl edx, 8
or edx, eax
or edx, ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [ebp - 0xc], edx
js 0x100855a8
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
shr esi, 3
mov dword [ebp + 8], esi
lea eax, [esi*8]
sub ecx, eax
mov dword [ebp - 0x10], ecx
nop dword [eax + eax]
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
xor ecx, ebx
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or eax, ecx
mov dword [ebp - 4], edx
xor eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
call fcn.10084bc0
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edx, dword [ebp - 0x14]
sar eax, 8
mov byte [edi + 1], al
mov eax, ebx
dec dword [ebp + 8]
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
sar eax, 0x18
mov byte [edi + 3], al
mov eax, edx
sar eax, 8
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
sar eax, 0x18
mov byte [edi], bl
mov byte [edi + 4], dl
mov byte [edi + 7], al
add edi, 8
cmp esi, 1
mov dword [ebp - 0xc], edx
mov esi, dword [ebp + 8]
jne 0x100854f0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
cmp ecx, 0xfffffff8
je 0x1008567c
mov eax, dword [ebp - 4]
xor edx, edx
add eax, 8
add eax, ecx
add ecx, 7
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp edi, 7
jbe switch.0x100855d2
xor eax, eax
jmp 0x10085628
jmp dword [edi*4 + 0x100856b4]
movzx edx, byte [eax - 1]
dec eax
shl edx, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x18
mov dword [ebp - 4], ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or dword [ebp - 4], ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
movzx eax, byte [eax - 1]
or eax, ecx
mov ecx, edx
xor ecx, dword [ebp - 0xc]
xor eax, ebx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.10084bc0
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edx, dword [ebp - 0x14]
sar eax, 8
mov byte [esi + 1], al
mov eax, ebx
mov edi, dword [ebp + 0x10]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
sar eax, 0x18
mov byte [esi + 3], al
mov eax, edx
sar eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
sar eax, 0x18
mov byte [esi], bl
mov byte [esi + 4], dl
mov byte [esi + 7], al
mov eax, ebx
mov byte [edi], bl
sar eax, 8
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
sar eax, 8
mov byte [edi + 5], al
mov eax, edx
sar ebx, 0x18
mov byte [edi + 4], dl
shr eax, 0x10
sar edx, 0x18
mov byte [edi + 3], bl
mov byte [edi + 6], al
mov byte [edi + 7], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret