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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daf35
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x520404]
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 0x41aea8
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae97
sub ecx, esi
sar ecx, 1
jne 0x41aebb
cmp dword [0x521434], 8
mov edi, 0x521420
cmovae edi, dword [0x521420]
push edx
push edi
lea eax, [ebp - 0x40]
push str._s_factor__d
push eax
call fcn.00417490
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 0x41af00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408960
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 0x41af4a
mov edx, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x41af36
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], esi
cmp eax, 8
jb 0x41af87
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41af7a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b0a9
push ecx
push edx
call fcn.004a7d37
mov esi, dword [ebp - 0x44]
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, 0x52a11c
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004126f0
mov eax, dword [ebp - 0x48]
cmp byte [eax + 0xd], 0
jne 0x41afc6
cmp esi, dword [eax + 0x10]
jb 0x41afc6
cmp eax, dword [0x52a11c]
je 0x41afc6
lea eax, [ebp - 0x44]
mov ecx, 0x52a11c
push eax
call fcn.0041b950
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x41b055
mov edx, edi
lea ecx, [ebp - 0x4c]
call fcn.0041aa50
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x41b01f
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi + 0x34]
cmp ecx, 0x64
je 0x41aff0
push 0x64
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esi + 0x30], 8
lea edx, [esi + 0x1c]
jb 0x41affb
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.0041abd0
add esp, 0x14
mov ebx, eax
jmp 0x41b021
xor ebx, ebx
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x41b055
or edi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41b055
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 5
lock xadd dword [esi + 8], edi
dec edi
jne 0x41b055
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41b08b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b081
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b0a9
push edx
push ecx
call fcn.004a7d37
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.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004af45f
int3