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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x1c], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x40a197
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, esi
mov dword [ebp - 0x18], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004094b0
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov edi, dword [edi + 4]
mov edi, dword [edi]
cmp edi, ebx
je 0x40a172
mov esi, edi
mov eax, dword [esi + 0x1c]
lea edx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
cmp eax, 0xf
jbe 0x40a04d
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov ebx, 0x811c9dc5
test eax, eax
je 0x40a080
mov edx, dword [ebp - 4]
mov edi, eax
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, edi
jb 0x40a063
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x1c]
and ebx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + ebx*8]
mov ebx, dword [eax]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
cmp ebx, dword [ebp - 0x18]
jne 0x40a0a3
mov dword [eax], esi
mov dword [eax + 4], esi
jmp 0x40a167
mov ebx, dword [eax + 4]
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
jbe 0x40a0bd
mov edx, dword [eax]
mov dword [ebp - 4], edx
lea edx, [esi + 8]
mov dword [ebp - 0x14], edx
cmp ecx, 0xf
jbe 0x40a0c9
mov ecx, dword [edx]
jmp 0x40a0cc
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x10]
mov edx, dword [edx + 0x10]
push dword [ebp - 4]
mov dword [ebp - 0x20], edx
call fcn.0040ac50
add esp, 8
test al, al
je 0x40a10a
mov ebx, dword [ebx]
cmp ebx, esi
je 0x40a102
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], esi
jmp 0x40a167
cmp dword [ebp - 0xc], ebx
je 0x40a14a
nop
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x1c], 0xf
lea edx, [ebx + 8]
jbe 0x40a11f
mov edx, dword [ebx + 8]
cmp dword [ebp - 8], 0xf
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
jbe 0x40a12f
mov ecx, dword [ecx]
jmp 0x40a132
mov ecx, dword [ebp - 0x14]
push dword [ebx + 0x18]
push edx
mov edx, dword [ebp - 0x20]
call fcn.0040ac50
add esp, 8
test al, al
jne 0x40a17b
cmp dword [ebp - 0xc], ebx
jne 0x40a110
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
mov esi, edi
cmp edi, dword [ebp - 0x18]
jne 0x40a032
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x40a167
push str.invalid_hash_bucket_count
call fcn.00427485
int3