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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
cmp ecx, 8
jb 0x10012340
mov esi, dword [ebx]
jmp 0x10012342
mov esi, ebx
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x10012361
movzx eax, byte [ecx + esi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, edi
jb 0x10012350
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x14]
and edx, ecx
cmp dword [edi + 0x18], edx
ja 0x10012378
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edx, eax
mov esi, dword [edi]
lea ecx, [edx*8]
mov dword [esp + 0x28], ecx
add ecx, dword [edi + 8]
mov eax, dword [ecx]
cmp esi, eax
je 0x10012427
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x10012427
nop
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
mov ecx, dword [esi + 0x18]
lea edx, [esi + 8]
mov dword [esp + 0x24], ecx
jb 0x100123b5
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x100123bf
mov edi, dword [ebx]
jmp 0x100123c1
mov edi, ebx
cmp dword [esp + 0x10], ecx
mov ebx, ecx
cmovb ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x100123e7
xor ecx, ecx
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x1001240f
mov edx, dword [esp + 0x24]
cmp ebx, edx
jae 0x10012406
or ecx, 0xffffffff
jmp 0x1001240d
mov cx, word [edi]
cmp cx, word [edx]
jne 0x100123f8
add edi, 2
add edx, 2
dec ebx
jmp 0x100123ce
movzx ecx, word [edi]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x100123d2
xor ecx, ecx
cmp ebx, edx
setne cl
test ecx, ecx
sete cl
test cl, cl
sete cl
test cl, cl
je 0x10012472
mov ebx, dword [esp + 0x14]
cmp esi, eax
jne 0x100123a0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x10012451
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 ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x100124d6
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [edx + eax + 4], edi
jmp 0x100124f6
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0x14]
lea ecx, [esi + 8]
jb 0x10012482
mov eax, dword [eax]
push ebx
push eax
push dword [ecx + 0x10]
push ecx
call fcn.10010100
test eax, eax
je 0x10012495
mov esi, dword [esi]
jmp 0x10012427
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebx]
je 0x100124b8
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push edi
mov dword [edx + 4], ecx
call fcn.10011920
dec dword [ebx + 4]
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x100124de
mov dword [ecx], edi
jmp 0x100124f6
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x100124f6
add edx, dword [ebx + 8]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, ebx
call fcn.10012550
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword [eax], edi
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [eax + 4], 1
call fcn.100947be
mov esp, ebp
pop ebp
ret 0xc