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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x1001293b
mov edx, dword [ecx]
jmp 0x1001293d
mov edx, ecx
lea edi, [eax + eax]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x10012961
nop dword [eax + eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x10012950
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 0x18]
xor edx, esi
mov esi, dword [ebx + 0xc]
and edx, dword [ebx + 0x18]
mov eax, dword [esi + edx*8]
add edx, edx
mov ecx, dword [esi + edx*4]
inc edx
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
lea edx, [esi + edx*4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], ecx
jne 0x10012993
mov edx, ecx
jmp 0x10012997
mov edx, dword [edx]
mov edx, dword [edx]
cmp eax, edx
je 0x10012ac2
cmp dword [edi + 0x14], 8
jb 0x100129a7
mov edi, dword [edi]
cmp dword [eax + 0x1c], 8
jb 0x100129b2
mov esi, dword [eax + 8]
jmp 0x100129b5
lea esi, [eax + 8]
mov edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 0x14], edx
cmp edx, dword [eax + 0x10]
mov ebx, dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmovb ebx, edx
mov ecx, dword [ebp - 0x10]
test ebx, ebx
jne 0x100129f7
xor edx, edx
mov edi, dword [ebp + 0xc]
test edx, edx
jne 0x100129f0
mov edx, dword [ebp - 0x14]
mov esi, dword [edi + 0x10]
cmp edx, esi
jb 0x100129f0
ja 0x100129f0
mov edx, dword [edi + 0x18]
cmp dword [eax + 0x20], edx
je 0x10012a18
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
jmp 0x10012987
mov dx, word [esi]
cmp dx, word [edi]
jne 0x10012a0a
add esi, 2
add edi, 2
sub ebx, 1
jmp 0x100129d1
movzx edx, word [esi]
cmp dx, word [edi]
sbb edx, edx
and edx, 0xfffffffe
inc edx
jmp 0x100129d5
mov edx, eax
mov dword [ebp - 0x18], edx
nop dword [eax]
cmp dword [ebp - 8], ecx
jne 0x10012a29
mov esi, ecx
jmp 0x10012a30
mov edx, dword [ebp - 0xc]
mov esi, dword [edx]
mov esi, dword [esi]
cmp eax, esi
je 0x10012aa8
cmp dword [eax + 0x1c], 8
jb 0x10012a3f
mov ebx, dword [eax + 8]
jmp 0x10012a42
lea ebx, [eax + 8]
cmp dword [edi + 0x14], 8
jb 0x10012a4a
mov edi, dword [edi]
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x14], esi
mov edx, dword [ecx + 0x10]
cmp edx, esi
mov ecx, dword [ebp - 0x10]
cmovb esi, edx
mov dword [ebp - 4], esi
test esi, esi
jne 0x10012a86
xor esi, esi
test esi, esi
jne 0x10012aa8
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov esi, dword [edi + 0x10]
cmp esi, ebx
jb 0x10012aa8
ja 0x10012aa8
mov edx, dword [edi + 0x18]
cmp edx, dword [eax + 0x20]
jne 0x10012aa8
mov eax, dword [eax]
jmp 0x10012a20
mov si, word [edi]
cmp si, word [ebx]
jne 0x10012a9a
add edi, 2
add ebx, 2
sub dword [ebp - 4], 1
jmp 0x10012a63
movzx esi, word [edi]
cmp si, word [ebx]
sbb esi, esi
and esi, 0xfffffffe
inc esi
jmp 0x10012a67
mov edx, dword [ebp - 0x18]
cmp edx, eax
je 0x10012ac2
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8