Function at 0x866690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x86681c
mov edx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea eax, [edx + 0xc]
mov ebx, dword [edx + 4]
mov edi, edx
mov edx, 2
shl edx, cl
mov ecx, eax
push ebx
push edx
call fcn.008668f0
lea eax, [esi - 1]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov dword [esp + 0xc], edi
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, ebx
sete cl
or cl, byte [0xa8c614]
test cl, 1
je 0x8666ff
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esp + 8], ebx
jmp 0x866722
nop
mov dword [edx + eax*4], ecx
mov dword [edx + ebp*4], ecx
mov esi, dword [esp]
mov ebx, dword [esp + 8]
cmp esi, ebx
je 0x8666f5
mov ecx, esi
mov eax, dword [esi]
mov dword [esp], eax
movzx edx, byte [esi + 8]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
movzx esi, byte [esi + 9]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xa]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xb]
xor esi, edx
imul esi, esi, 0x1000193
mov edx, dword [esp + 0xc]
and esi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
lea eax, [esi + esi]
lea ebp, [esi*2 + 1]
mov edi, dword [edx + esi*8]
cmp edi, ebx
je 0x866710
nop
mov dword [esp + 4], eax
mov esi, dword [edx + ebp*4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [esi + 8]
je 0x8667c0
nop dword [eax + eax]
cmp edi, esi
je 0x8667f2
mov esi, dword [esi + 4]
cmp ebx, dword [esi + 8]
jne 0x866790
mov edx, dword [esi]
mov esi, dword [ecx + 4]
mov eax, dword [esp]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov esi, eax
mov dword [ecx + 4], ebx
jmp 0x86671a
mov esi, dword [esi]
cmp esi, ecx
je 0x8667e9
mov edi, dword [ecx + 4]
mov dword [esp + 4], edi
mov eax, dword [esp]
mov dword [edi], eax
mov ebx, dword [eax + 4]
mov dword [ebx], esi
mov edi, dword [esi + 4]
mov dword [edi], ecx
mov dword [esi + 4], ebx
mov esi, dword [esp + 4]
mov dword [eax + 4], esi
mov dword [ecx + 4], edi
nop
mov dword [edx + ebp*4], ecx
jmp 0x866717
mov edi, dword [ecx + 4]
mov eax, dword [esp]
mov dword [edi], eax
mov ebx, dword [eax + 4]
mov dword [ebx], esi
mov ebp, dword [esi + 4]
mov dword [ebp], ecx
mov dword [esi + 4], ebx
mov esi, eax
mov dword [eax + 4], edi
mov dword [ecx + 4], ebp
mov eax, dword [esp + 4]
mov dword [edx + eax*4], ecx
jmp 0x86671a
nop
movzx eax, byte [0xa6b33a]
cmp al, 0x92
je 0x8668dc
mov cl, 0x87
nop
mov al, 0x29
lock cmpxchg byte [0xa6b33a], cl
je 0x866845
cmp al, 0x92
jne 0x866830
jmp 0x8668dc
mov ebx, 0xffffffe6
lea eax, [0x83dfad58]
mov dword [esp], eax
mov ecx, 0x7cbef2f0
lea ebp, [0x83dfad59]
mov esi, 0x7cbef2ef
nop word cs:[eax + eax]
mov eax, ecx
mov edx, 0x51eb851f
mul edx
mov edi, edx
mov eax, esi
mov edx, 0x51eb851f
mul edx
shr edx, 3
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
movzx edx, byte [ebx + 0xa6b33a]
xor dl, byte [ebp + eax]
shr edi, 3
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
xor dl, 0x29
mov byte [ebx + 0xa6b33a], dl
movzx edx, byte [ebx + 0xa6b33b]
mov edi, dword [esp]
xor dl, byte [edi + eax]
xor dl, 0x29
mov byte [ebx + 0xa6b33b], dl
add edi, 0xfffffffe
mov dword [esp], edi
add ecx, 2
add ebp, 0xfffffffe
add esi, 2
add ebx, 2
jne 0x866870
mov al, 0x92
xchg byte [0xa6b33a], al
nop
push 0xa6b320
call fcn.0091f42a
int3