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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
cmp ecx, 0x10
jb 0x40686e
mov esi, dword [eax]
jmp 0x406870
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x406891
jmp 0x406880
movzx eax, byte [ecx + esi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, ebx
jb 0x406880
mov ecx, dword [0x47d540]
and edx, ecx
cmp dword [0x47d544], edx
ja 0x4068aa
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edx, eax
mov edi, dword [0x47d534]
mov ecx, dword [0x47d52c]
mov eax, dword [edi + edx*8]
lea ebp, [edx*8]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
cmp eax, ecx
jne 0x4068d0
mov edi, ecx
jmp 0x4068d6
mov edi, dword [edi + ebp + 4]
mov edi, dword [edi]
cmp edi, eax
je 0x4069a7
mov edi, edi
mov edi, dword [edi + 4]
cmp dword [edi + 0x1c], 0x10
mov ebp, dword [edi + 0x18]
lea edx, [edi + 8]
jb 0x4068f1
mov edx, dword [edx]
cmp dword [esp + 0x14], 0x10
jb 0x406900
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx]
jmp 0x406904
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov esi, ebp
cmp dword [eax + 0x10], ebp
cmovb esi, dword [eax + 0x10]
mov eax, dword [esp + 0x18]
test esi, esi
je 0x406976
sub esi, 4
jb 0x406931
mov edi, edi
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x406936
add ebx, 4
add edx, 4
sub esi, 4
jae 0x406920
cmp esi, 0xfffffffc
je 0x40696a
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x406963
cmp esi, 0xfffffffd
je 0x40696a
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x406963
cmp esi, 0xfffffffe
je 0x40696a
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x406963
cmp esi, 0xffffffff
je 0x40696a
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x40696a
sbb ecx, ecx
or ecx, 1
jmp 0x40696c
xor ecx, ecx
test ecx, ecx
je 0x406976
mov edx, dword [esp + 0x24]
jmp 0x40698d
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x10]
cmp ebx, ebp
jae 0x406986
or ecx, 0xffffffff
jmp 0x40698d
xor ecx, ecx
cmp ebx, ebp
setne cl
test ecx, ecx
sete cl
test cl, cl
sete cl
test cl, cl
je 0x4069d4
cmp edi, eax
jne 0x4068e0
mov ebp, dword [esp + 0x10]
mov eax, dword [0x47d52c]
push dword [esp + 0x24]
mov ebx, dword [eax]
push dword [ebx + 4]
push ebx
call fcn.00406dc0
mov edx, dword [0x47d530]
mov ecx, 0x7fffffe
sub ecx, edx
mov esi, eax
cmp ecx, 1
jae 0x4069fa
jmp 0x406a9c
lea eax, [edi + 8]
push edx
push eax
call fcn.00403930
test al, al
je 0x4069e6
mov edi, dword [edi]
jmp 0x4069a3
mov eax, dword [esp + 0x20]
mov dword [eax], edi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
inc edx
mov dword [0x47d530], edx
mov dword [ebx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov edx, dword [0x47d52c]
mov esi, dword [edx]
mov eax, dword [esi]
cmp edi, eax
je 0x406a3e
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [esi + 4], edx
mov edx, dword [0x47d52c]
mov ecx, dword [0x47d534]
add ecx, ebp
mov eax, dword [ecx]
cmp eax, edx
jne 0x406a59
mov dword [ecx], esi
mov eax, dword [0x47d534]
mov dword [eax + ebp + 4], esi
jmp 0x406a7e
cmp eax, edi
jne 0x406a61
mov dword [ecx], esi
jmp 0x406a7e
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, esi
je 0x406a7e
mov ecx, dword [0x47d534]
mov eax, dword [ecx + ebp + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebp + 4], eax
mov ecx, 0x47d52c
call fcn.00406ab0
mov eax, dword [esp + 0x20]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov byte [eax + 4], 1
pop ebx
add esp, 0xc
ret 0xc
push str.list_T__too_long
call fcn.0041f9db
int3