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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d72d5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], edx
mov edi, ecx
test edi, edi
je 0x416d88
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d77
sub ecx, esi
sar ecx, 1
jne 0x416d9b
cmp dword [0x51b3f4], 8
mov edi, 0x51b3e0
cmovae edi, dword [0x51b3e0]
push edx
push edi
lea eax, [ebp - 0x40]
push str._s_factor__d
push eax
call fcn.00413140
add esp, 0x10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], 0
cmovae edx, dword [ebp - 0x40]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416de0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408d10
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov esi, 0x811c9dc5
mov eax, dword [ebp - 0x18]
cmovae ebx, edx
xor ecx, ecx
add eax, eax
je 0x416e2a
mov edx, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x416e16
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], esi
cmp eax, 8
jb 0x416e67
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416e5a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f89
push ecx
push edx
call fcn.004a42a7
mov esi, dword [ebp - 0x44]
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, 0x524068
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00412950
mov eax, dword [ebp - 0x48]
cmp byte [eax + 0xd], 0
jne 0x416ea6
cmp esi, dword [eax + 0x10]
jb 0x416ea6
cmp eax, dword [0x524068]
je 0x416ea6
lea eax, [ebp - 0x44]
mov ecx, 0x524068
push eax
call fcn.00417820
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x416f35
mov edx, edi
lea ecx, [ebp - 0x4c]
call fcn.00416910
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x416eff
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi + 0x34]
cmp ecx, 0x64
je 0x416ed0
push 0x64
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esi + 0x30], 8
lea edx, [esi + 0x1c]
jb 0x416edb
mov edx, dword [edx]
push dword [esi + 0x44]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push dword [esi + 0x40]
cmovae ecx, dword [ebp - 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push eax
call fcn.00416a90
add esp, 0x14
mov ebx, eax
jmp 0x416f01
xor ebx, ebx
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x416f35
or edi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x416f35
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 5
lock xadd dword [esi + 8], edi
dec edi
jne 0x416f35
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x416f6b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416f61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f89
push edx
push ecx
call fcn.004a42a7
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
call fcn.004aba7f
int3