Function at 0x1004c860
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6670
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1013d0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
jb 0x1004c8a8
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x1004c8c7
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1004c8b6
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 4]
and eax, edx
lea ecx, [eax*8]
mov dword [ebp - 0x20], ecx
add ecx, dword [esi + 0xc]
mov eax, dword [ecx]
cmp edi, eax
je 0x1004c995
mov edi, dword [ecx + 4]
mov edi, dword [edi]
jmp 0x1004c8f3
mov ebx, dword [ebp + 0xc]
cmp edi, eax
je 0x1004c995
mov edi, dword [edi + 4]
cmp dword [edi + 0x1c], 8
lea ecx, [edi + 8]
mov esi, dword [ecx + 0x10]
jb 0x1004c90c
mov ecx, dword [ecx]
cmp dword [ebx + 0x14], 8
mov edx, ebx
mov dword [ebp - 0x14], ebx
jb 0x1004c91c
mov edx, dword [ebx]
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x10], esi
jne 0x1004c8f3
mov esi, dword [ebp - 0x1c]
mov ebx, esi
test esi, esi
je 0x1004c957
movzx edx, word [edx]
movzx esi, word [ecx]
cmp dx, si
jb 0x1004c8f0
sub dword [ebp - 0x14], ecx
cmp dx, si
ja 0x1004c8f0
cmp ebx, 1
je 0x1004c957
mov edx, dword [ebp - 0x14]
add ecx, 2
dec ebx
movzx edx, word [edx + ecx]
movzx esi, word [ecx]
cmp dx, si
jae 0x1004c93b
jmp 0x1004c8f0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, 4
push esi
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
dec dword [ecx + 4]
call fcn.1004f650
mov eax, dword [ebp + 8]
mov dword [eax], edi
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 esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp edi, eax
je 0x1004c9c2
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [edx + 0xc]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x1004c9df
mov dword [ecx], esi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], esi
jmp 0x1004ca01
cmp eax, edi
jne 0x1004c9e7
mov dword [ecx], esi
jmp 0x1004ca01
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, esi
je 0x1004ca01
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.1004f5b0
mov eax, dword [ebp + 8]
mov dword [eax], esi
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