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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x18], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x513058
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004417b0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x51302e
mov ecx, dword [ecx]
xor edi, edi
mov ebx, 0x811c9dc5
cmp dword [eax + 0xc], edi
je 0x512e88
mov esi, dword [eax + 8]
movzx edx, byte [esi + edi]
inc edi
xor edx, ebx
imul ebx, edx, 0x1000193
cmp edi, dword [eax + 0xc]
jb 0x512e73
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
and edi, ebx
mov ebx, dword [edx + edi*8]
mov dword [ebp - 0x10], ebx
lea edx, [edx + edi*8]
mov dword [ebp - 0x14], edx
cmp ebx, esi
jne 0x512ead
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x513024
mov edx, dword [edx + 4]
mov edi, dword [eax + 0xc]
mov dword [ebp + 8], edx
mov ebx, dword [edx + 8]
cmp edi, dword [edx + 0xc]
jne 0x512f61
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 8]
sub edx, 4
mov dword [ebp - 4], edx
jb 0x512ee7
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x512eec
mov edx, dword [ebp - 4]
add edi, 4
add ebx, 4
sub edx, 4
mov dword [ebp - 4], edx
jae 0x512ed0
cmp edx, 0xfffffffc
je 0x512f23
mov dl, byte [edi]
cmp dl, byte [ebx]
jne 0x512f1c
cmp dword [ebp - 4], 0xfffffffd
je 0x512f23
mov dl, byte [edi + 1]
cmp dl, byte [ebx + 1]
jne 0x512f1c
cmp dword [ebp - 4], 0xfffffffe
je 0x512f23
mov dl, byte [edi + 2]
cmp dl, byte [ebx + 2]
jne 0x512f1c
cmp dword [ebp - 4], 0xffffffff
je 0x512f23
mov dl, byte [edi + 3]
cmp dl, byte [ebx + 3]
je 0x512f23
sbb edx, edx
or edx, 1
jmp 0x512f25
xor edx, edx
test edx, edx
mov edx, dword [ebp + 8]
jne 0x512f5e
mov edx, dword [edx]
mov dword [ebp + 8], edx
cmp edx, eax
je 0x512f53
mov ebx, dword [eax + 4]
mov esi, dword [ebp + 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
jmp 0x513024
mov edi, dword [eax + 0xc]
cmp dword [ebp - 0x10], edx
je 0x513001
nop word [eax + eax]
mov edx, dword [edx + 4]
mov dword [ebp + 8], edx
mov ebx, dword [edx + 8]
mov dword [ebp - 0xc], ebx
cmp edi, dword [edx + 0xc]
jne 0x512ff5
mov edx, dword [eax + 8]
sub edi, 4
mov dword [ebp - 4], edi
jb 0x512faa
nop dword [eax]
mov edi, dword [edx]
cmp edi, dword [ebx]
jne 0x512faf
mov edi, dword [ebp - 4]
add ebx, 4
add edx, 4
mov dword [ebp - 0xc], ebx
sub edi, 4
mov dword [ebp - 4], edi
jae 0x512f90
cmp edi, 0xfffffffc
je 0x512fe9
mov edi, dword [ebp - 0xc]
mov bl, byte [edx]
cmp bl, byte [edi]
jne 0x512fe2
cmp dword [ebp - 4], 0xfffffffd
je 0x512fe9
mov bl, byte [edx + 1]
cmp bl, byte [edi + 1]
jne 0x512fe2
cmp dword [ebp - 4], 0xfffffffe
je 0x512fe9
mov bl, byte [edx + 2]
cmp bl, byte [edi + 2]
jne 0x512fe2
cmp dword [ebp - 4], 0xffffffff
je 0x512fe9
mov dl, byte [edx + 3]
cmp dl, byte [edi + 3]
je 0x512fe9
sbb edx, edx
or edx, 1
jmp 0x512feb
xor edx, edx
test edx, edx
mov edx, dword [ebp + 8]
je 0x513037
mov edi, dword [eax + 0xc]
cmp dword [ebp - 0x10], edx
jne 0x512f70
mov dword [ebp + 8], edx
mov ebx, dword [eax + 4]
mov esi, dword [ebp + 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov esi, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x512e62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp + 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x513021
push str.invalid_hash_bucket_count
call fcn.006309fc
int3