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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, ecx
cmp eax, ebx
je 0x10050acd
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x14], ecx
mov edi, eax
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], ecx
jb 0x1005090d
mov edx, dword [edx]
xor ecx, ecx
push esi
mov esi, 0x811c9dc5
test eax, eax
je 0x10050935
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10050920
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
and eax, esi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov esi, edi
mov dword [esp + 0x28], edi
mov edi, dword [edi]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x10
jb 0x1005098e
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x10050984
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050b01
mov eax, edx
push ecx
push eax
call fcn.1009a99b
add esp, 8
push 0x24
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.1009a99b
dec dword [ebp + 8]
add esp, 8
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x28], eax
je 0x100509e5
cmp edi, ebx
jne 0x10050952
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x30]
jne 0x10050ac2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ecx], edi
mov dword [eax], edi
mov dword [edi + 4], eax
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jne 0x100509fb
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x100509ff
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
cmp edi, ebx
je 0x10050ac2
nop word [eax + eax]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
jb 0x10050a1e
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10050a41
nop dword [eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10050a30
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
and eax, esi
lea eax, [ecx + eax*8]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov esi, edi
mov ebx, edi
mov edi, dword [edi]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x10
jb 0x10050a8e
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x10050a84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050b01
mov eax, edx
push ecx
push eax
call fcn.1009a99b
add esp, 8
push 0x24
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.1009a99b
dec dword [ebp + 8]
add esp, 8
cmp ebx, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
je 0x10050ad7
cmp edi, ebx
jne 0x10050a58
mov eax, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], edi
mov dword [edi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 4], esi
cmp edi, ebx
jne 0x10050a10
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], edi
mov dword [edi + 4], eax
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.100b8d8b
int3