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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbe25
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5203c4]
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 0x416da8
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d97
sub ecx, esi
sar ecx, 1
jne 0x416dbb
cmp dword [0x5213f4], 8
mov edi, 0x5213e0
cmovae edi, dword [0x5213e0]
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 0x416e00
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 0x416e4a
mov edx, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x416e36
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], esi
cmp eax, 8
jb 0x416e87
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416e7a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fa9
push ecx
push edx
call fcn.004a8c37
mov esi, dword [ebp - 0x44]
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, 0x52a148
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00412950
mov eax, dword [ebp - 0x48]
cmp byte [eax + 0xd], 0
jne 0x416ec6
cmp esi, dword [eax + 0x10]
jb 0x416ec6
cmp eax, dword [0x52a148]
je 0x416ec6
lea eax, [ebp - 0x44]
mov ecx, 0x52a148
push eax
call fcn.00417840
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x416f55
mov edx, edi
lea ecx, [ebp - 0x4c]
call fcn.00416930
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x416f1f
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi + 0x34]
cmp ecx, 0x64
je 0x416ef0
push 0x64
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esi + 0x30], 8
lea edx, [esi + 0x1c]
jb 0x416efb
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.00416ab0
add esp, 0x14
mov ebx, eax
jmp 0x416f21
xor ebx, ebx
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x416f55
or edi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x416f55
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 5
lock xadd dword [esi + 8], edi
dec edi
jne 0x416f55
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x416f8b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416f81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fa9
push edx
push ecx
call fcn.004a8c37
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.004a8e4e
mov esp, ebp
pop ebp
ret
call fcn.004b040f
int3