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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
jb 0x42167e
mov esi, dword [ebx]
jmp 0x421680
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test eax, eax
je 0x4216a4
mov ebx, eax
lea ecx, [ecx]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x421690
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x14]
mov esi, ecx
and esi, edx
cmp dword [edi + 0x18], esi
ja 0x4216b9
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add esi, eax
mov edx, dword [edi + 8]
lea eax, [esi + esi]
lea eax, [eax + 1]
mov ecx, dword [edx + esi*8]
mov esi, dword [edx + eax*4 - 4]
lea eax, [edx + eax*4]
mov dword [ebp - 0xc], esi
mov esi, dword [edi]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], esi
jne 0x4216e0
mov eax, esi
jmp 0x4216e4
mov eax, dword [eax]
mov eax, dword [eax]
cmp ecx, eax
je 0x421852
cmp dword [ebx + 0x14], 0x10
lea edx, [ecx + 8]
jb 0x4216f9
mov edi, dword [ebx]
jmp 0x4216fb
mov edi, ebx
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp + 0xc], eax
jb 0x421709
mov edx, dword [edx]
mov esi, dword [ebp - 4]
cmp eax, esi
cmovb esi, eax
test esi, esi
je 0x421773
sub esi, 4
jb 0x421731
lea ebx, [ebx]
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x421736
add edx, 4
add edi, 4
sub esi, 4
jae 0x421720
cmp esi, 0xfffffffc
je 0x42176a
mov al, byte [edx]
cmp al, byte [edi]
jne 0x421763
cmp esi, 0xfffffffd
je 0x42176a
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x421763
cmp esi, 0xfffffffe
je 0x42176a
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x421763
cmp esi, 0xffffffff
je 0x42176a
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x42176a
sbb eax, eax
or eax, 1
jmp 0x42176c
xor eax, eax
test eax, eax
jne 0x421786
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp eax, edx
jb 0x421786
xor eax, eax
cmp dword [ebp + 0xc], edx
setne al
test eax, eax
je 0x421793
mov ecx, dword [ecx]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
jmp 0x4216d7
cmp dword [ecx + 0x1c], 0x10
lea edx, [ecx + 8]
mov edi, dword [edx + 0x10]
jb 0x4217a1
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x4217a9
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
mov esi, edi
cmp eax, edi
cmovb esi, eax
test esi, esi
je 0x421813
sub esi, 4
jb 0x4217d1
lea esp, [esp]
mov eax, dword [ebx]
cmp eax, dword [edx]
jne 0x4217d6
add ebx, 4
add edx, 4
sub esi, 4
jae 0x4217c0
cmp esi, 0xfffffffc
je 0x42180a
mov al, byte [ebx]
cmp al, byte [edx]
jne 0x421803
cmp esi, 0xfffffffd
je 0x42180a
mov al, byte [ebx + 1]
cmp al, byte [edx + 1]
jne 0x421803
cmp esi, 0xfffffffe
je 0x42180a
mov al, byte [ebx + 2]
cmp al, byte [edx + 2]
jne 0x421803
cmp esi, 0xffffffff
je 0x42180a
mov al, byte [ebx + 3]
cmp al, byte [edx + 3]
je 0x42180a
sbb eax, eax
or eax, 1
jmp 0x42180c
xor eax, eax
test eax, eax
jne 0x421839
mov eax, dword [ebp - 4]
cmp eax, edi
jb 0x421839
xor eax, eax
cmp dword [ebp - 4], edi
setne al
test eax, eax
jne 0x421839
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 0xc]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8