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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bc00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100891d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x10022562
mov esi, dword [ebx]
jmp 0x10022564
mov esi, ebx
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x10022583
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10022572
and edx, dword [0x1008bf94]
mov esi, dword [0x1008bf88]
mov dword [ebp + 0xc], esi
lea eax, [edx*8]
mov edi, dword [esi + edx*8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1008bf80]
cmp edi, eax
jne 0x100225ac
mov esi, eax
jmp 0x100225b2
mov esi, dword [esi + edx*8 + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x100225ef
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea edx, [eax + 0x10]
jb 0x100225c7
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x100225d1
mov ecx, dword [ebx]
jmp 0x100225d3
mov ecx, ebx
push dword [edx]
push eax
push dword [ebx + 0x10]
push ecx
call fcn.1000a290
add esp, 0x10
test eax, eax
sete al
test al, al
jne 0x10022628
cmp esi, edi
jne 0x100225b6
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x10022697
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [0x1008bf88]
jmp 0x1002269a
mov ebx, dword [ebp + 0x10]
lea edi, [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
dec dword [0x1008bf84]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x10022656
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.100062e0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x1002266c
mov edi, dword [edi]
xor eax, eax
push ebx
mov word [edi], ax
call fcn.10062b69
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + edx]
cmp eax, dword [0x1008bf80]
jne 0x100226b6
mov dword [ecx + edx], edi
mov eax, dword [0x1008bf88]
mov dword [ecx + eax + 4], edi
jmp 0x100226dc
cmp eax, esi
jne 0x100226bf
mov dword [ecx + edx], edi
jmp 0x100226dc
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax]
mov dword [ecx + edx + 4], eax
cmp eax, edi
je 0x100226dc
add ecx, dword [0x1008bf88]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, 0x1008bf7c
mov dword [ebp - 4], 2
call fcn.10022160
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc