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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9778
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x1010607c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
lea ecx, [ebx + 8]
mov dword [ebp - 4], 0
call fcn.10053870
mov edx, dword [ebx + 0x1c]
lea eax, [ebx + 8]
mov edi, dword [ebx + 8]
lea ecx, [ebx + 8]
cmp edx, 0x10
lea esi, [ebx + 8]
cmovae eax, edi
cmovae ecx, edi
add eax, dword [ebx + 0x18]
cmp edx, 0x10
mov dword [ebp - 0x38], eax
cmovae esi, edi
cmp esi, eax
je 0x1005a7cb
sub ecx, esi
mov edi, ecx
nop dword [eax]
movsx eax, byte [esi]
push eax
call fcn.100b121d
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x38]
jne 0x1005a7b0
mov edi, dword [ebx + 8]
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
lea esi, [ebx + 8]
mov edx, 0x811c9dc5
cmovae esi, edi
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
jbe 0x1005a7f7
mov edi, dword [ebx + 0x18]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1005a7e3
mov edi, dword [ebx + 8]
mov esi, dword [ebp - 0x34]
lea eax, [ebx + 8]
push edx
push eax
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.1005e4c0
mov eax, dword [eax + 4]
test eax, eax
je 0x1005a81e
cmp eax, dword [esi + 4]
je 0x1005a81e
mov eax, dword [eax + 0x20]
jmp 0x1005a8e4
mov eax, dword [esi + 0x24]
lea edi, [esi + 0x20]
sub eax, dword [edi]
mov ecx, esi
sar eax, 4
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x30], eax
lea eax, [ebx + 8]
push eax
call fcn.1005c5b0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [eax], ecx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x24]
cmp esi, dword [ecx + 0x28]
je 0x1005a89b
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.10005d00
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x28], xmm0
add dword [edi + 4], 0x30
jmp 0x1005a8db
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea eax, [ebx + 8]
push eax
push esi
call fcn.1005d300
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1005a8db
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a8d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005a941
push edx
push ecx
call fcn.100ab8b0
add esp, 8
mov edi, dword [ebx + 8]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov esi, dword [esi + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x1c]
shl ecx, 4
add esi, ecx
cmp eax, 0x10
jb 0x1005a91e
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1005a914
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005a941
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
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ab558
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.100b08d2
int3