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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
cmp eax, 0x10000001
jae 0x10003af8
mov ebp, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea eax, [ebp + 0xc]
mov edi, dword [ebp + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push edi
push edx
call fcn.10002ff0
lea eax, [esi - 1]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x10003aee
mov edi, eax
mov dword [esp + 0x18], ebp
nop word cs:[eax + eax]
mov ebx, edi
mov edi, dword [edi + 8]
mov edx, dword [ebx + 0xc]
test edx, edx
mov dword [esp + 4], edx
mov dword [esp + 0x10], edi
je 0x10003820
cmp edx, 4
jae 0x10003830
mov eax, 0x811c9dc5
xor ecx, ecx
jmp 0x1000387a
mov eax, 0x811c9dc5
jmp 0x100038a1
and edx, 0xfffffffc
mov eax, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
movzx esi, byte [edi + ecx]
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [edi + ecx + 1]
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [edi + ecx + 2]
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [edi + ecx + 3]
xor esi, eax
imul eax, esi, 0x1000193
add ecx, 4
cmp edx, ecx
jne 0x10003840
mov edx, dword [esp + 4]
and edx, 3
je 0x100038a1
add ecx, dword [esp + 0x10]
xor esi, esi
nop dword [eax]
movzx edi, byte [ecx + esi]
xor edi, eax
imul eax, edi, 0x1000193
inc esi
cmp edx, esi
jne 0x10003890
mov esi, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
test edx, edx
mov dword [esp], edx
mov dword [esp + 8], ebx
je 0x100038c0
cmp edx, 4
jae 0x100038d0
mov edx, 0x811c9dc5
xor ecx, ecx
jmp 0x1000391a
mov ecx, 0x2393b8a
jmp 0x10003952
mov ebx, edx
and ebx, 0xfffffffc
mov edx, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
movzx edi, byte [esi + ecx]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [esi + ecx + 1]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [esi + ecx + 2]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [esi + ecx + 3]
xor edi, edx
imul edx, edi, 0x1000193
add ecx, 4
cmp ebx, ecx
jne 0x100038e0
mov ebx, dword [esp]
and ebx, 3
je 0x10003941
add ecx, esi
xor ebp, ebp
nop word cs:[eax + eax]
movzx edi, byte [ecx + ebp]
xor edi, edx
imul edx, edi, 0x1000193
inc ebp
cmp ebx, ebp
jne 0x10003930
imul ecx, edi, 0x2000326
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov edx, dword [esp]
xor ecx, eax
mov edi, dword [ebx]
and ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
lea ebp, [ecx + ecx]
mov dword [esp + 0x1c], ebp
lea ebp, [ecx*2 + 1]
mov dword [esp + 0x20], ebp
mov ebp, ebx
mov ebx, dword [eax + ecx*8]
cmp ebx, dword [esp + 0x24]
je 0x10003aa0
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 4]
cmp eax, dword [edi + 0xc]
jne 0x100039f0
test eax, eax
je 0x100039b9
push eax
push dword [edi + 8]
push dword [esp + 0x18]
mov ebp, ecx
call fcn.1000557e
mov ecx, ebp
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 4]
jne 0x100039f0
cmp edx, dword [edi + 0x14]
jne 0x100039f0
test edx, edx
je 0x10003abe
push edx
push dword [edi + 0x10]
push esi
mov ebp, ecx
call fcn.1000557e
mov ecx, ebp
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 4]
je 0x10003abe
nop word [eax + eax]
cmp ebx, edi
je 0x10003a70
mov edi, dword [edi + 4]
cmp eax, dword [edi + 0xc]
jne 0x100039f0
test eax, eax
je 0x10003a1c
push eax
push dword [edi + 8]
push dword [esp + 0x18]
call fcn.1000557e
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 4]
jne 0x100039f0
cmp edx, dword [edi + 0x14]
jne 0x100039f0
test edx, edx
je 0x10003a3e
push edx
push dword [edi + 0x10]
push esi
call fcn.1000557e
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 4]
jne 0x100039f0
mov eax, dword [edi]
mov ebp, dword [esp + 8]
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0xc]
mov dword [ecx], edi
mov edx, dword [edi + 4]
mov dword [edx], eax
mov esi, dword [eax + 4]
mov dword [esi], ebp
mov dword [eax + 4], edx
mov dword [edi + 4], ecx
mov dword [ebp + 4], esi
jmp 0x10003aae
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0xc]
mov dword [eax], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebp
mov dword [ebx + 4], ecx
mov dword [edi + 4], eax
mov dword [ebp + 4], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
jmp 0x10003aab
mov ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4], ebp
mov ecx, dword [esp + 0x20]
mov dword [eax + ecx*4], ebp
cmp edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
jne 0x100037f0
jmp 0x10003aee
mov eax, dword [edi]
mov ebp, dword [esp + 8]
cmp eax, ebp
mov edi, dword [esp + 0xc]
je 0x10003ae8
mov ebx, ecx
mov ecx, dword [ebp + 4]
mov dword [ecx], edi
mov edx, dword [edi + 4]
mov dword [edx], eax
mov esi, dword [eax + 4]
mov dword [esi], ebp
mov dword [eax + 4], edx
mov dword [edi + 4], ecx
mov ecx, ebx
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x14]
jmp 0x10003aab
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1000413c
int3