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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3c40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4faee4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], edx
jb 0x404fb8
mov edi, dword [ebx]
jmp 0x404fba
mov edi, ebx
xor ecx, ecx
mov esi, 0x811c9dc5
test edx, edx
je 0x404fd6
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x404fc5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x18]
and eax, esi
lea esi, [eax*8]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x24], esi
mov edi, dword [esi + eax]
cmp edi, dword [ecx + 4]
jne 0x404ff8
mov esi, dword [ecx + 4]
jmp 0x404ffe
mov esi, dword [esi + eax + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x4050c6
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
lea eax, [ecx + 0x10]
mov dword [ebp - 0x20], eax
jb 0x40501a
mov ecx, dword [ecx]
cmp dword [ebx + 0x14], 0x10
jb 0x40502a
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
jmp 0x40502d
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax]
cmp edx, ebx
mov eax, ebx
cmovb eax, edx
push eax
push ecx
push dword [ebp - 0x18]
call fcn.004030d0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
jne 0x405050
cmp edx, ebx
jb 0x405050
jbe 0x405059
cmp esi, edi
je 0x4050c6
mov ebx, dword [ebp + 0xc]
jmp 0x405006
mov ebx, dword [ebp + 0x10]
lea edi, [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
dec dword [ecx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x405087
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004046a0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40509d
mov edi, dword [edi]
push ebx
mov byte [edi], 0
call fcn.004539d0
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x4050f3
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xc]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x405110
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [ebx + eax + 4], edi
jmp 0x405132
cmp eax, esi
jne 0x405118
mov dword [ecx], edi
jmp 0x405132
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x405132
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + ebx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.00405570
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc