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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d97bd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x1010607c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10053870
mov edx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov edi, dword [ebp + 8]
lea ebx, [ebp + 8]
cmp edx, 0x10
lea esi, [ebp + 8]
cmovae eax, edi
cmovae ebx, edi
add eax, dword [ebp + 0x18]
cmp edx, 0x10
cmovae esi, edi
cmp esi, eax
je 0x1005a9cd
sub ebx, esi
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.100b121d
mov byte [esi + ebx], al
add esp, 4
inc esi
cmp esi, edi
jne 0x1005a9b3
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea esi, [ebp + 8]
cmp edx, 0x10
mov edx, 0x811c9dc5
cmovae esi, edi
xor ecx, ecx
test ebx, ebx
je 0x1005a9f5
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x1005a9e4
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.1005e4c0
mov eax, dword [eax + 4]
test eax, eax
je 0x1005aa1c
cmp eax, dword [ebx + 4]
je 0x1005aa1c
mov eax, dword [eax + 0x20]
jmp 0x1005ab13
mov eax, dword [ebx + 0x24]
mov ecx, ebx
sub eax, dword [ebx + 0x20]
sar eax, 2
imul esi, eax, 0xf0f0f0f1
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x10], esi
call fcn.1005c5b0
lea ecx, [ebp - 0x44]
mov dword [eax], esi
call fcn.1005c120
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
mov esi, dword [ebx + 0x24]
cmp esi, dword [ebx + 0x28]
je 0x1005aa88
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esi
push eax
mov ecx, esi
call fcn.10005d00
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.1005e690
add dword [ebx + 0x24], 0x44
jmp 0x1005aa99
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [ebx + 0x20]
call fcn.1005d480
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1005ab05
mov edi, dword [ebp - 0x20]
cmp esi, edi
je 0x1005aab8
mov ecx, esi
call fcn.10013550
add esi, 0x30
cmp esi, edi
jne 0x1005aaa7
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, esi
sar eax, 4
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 4
cmp ecx, 0x1000
jb 0x1005aae6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ab64
push ecx
push esi
call fcn.100ab8b0
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x44]
call fcn.10057b90
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ebx + 0x20]
lea esi, [eax + ecx*4]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1005ab4d
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x1005ab43
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ab69
push ecx
push edi
call fcn.100ab8b0
add esp, 8
lea eax, [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.100b08d2
call fcn.100b08d2
int3