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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call fcn.00415190
mov ebx, dword [esi]
lea ecx, [ebp - 0x4c]
mov edi, eax
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
push eax
push 0x4ab198
mov word [ebp - 0x4c], ax
call fcn.00402f30
mov dword [ebp - 4], 0
xor eax, eax
mov edx, dword [ebp + 0x18]
mov ecx, edx
mov word [ebp - 0x34], ax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
lea eax, [ecx + 2]
mov dword [ebp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e9e4
sub ecx, dword [ebp + 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.00402f30
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402440
push 0xffffffffffffffff
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004152a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x40ea63
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ed05
push edx
push ecx
call fcn.0046d4cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp edx, 8
jb 0x40eab4
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eaaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ed05
push edx
push ecx
call fcn.0046d4cf
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x40eb09
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eaff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ed05
push edx
push ecx
call fcn.0046d4cf
add esp, 8
mov ebx, dword [ebp + 0x14]
cmp ebx, 2
jne 0x40eb1e
mov eax, dword [esi]
xor ebx, ebx
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], bl
sete bl
lea eax, [esi + 0x2c]
push eax
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 3
call fcn.00402dc0
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 4
lea esi, [ebp - 0x80]
mov eax, dword [ebp - 0x70]
mov edx, 0x811c9dc5
cmp dword [ebp - 0x6c], 8
cmovae esi, dword [ebp - 0x80]
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x40eb71
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40eb60
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x80]
xor edx, ebx
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0xc]
call fcn.00411c70
cmp dword [eax + 4], 0
je 0x40ec2f
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0xc]
call fcn.00410f70
mov eax, dword [eax]
cmp byte [eax + 0x48], 0
jne 0x40ebc3
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0xc]
call fcn.00410f70
mov ecx, edi
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax]
call fcn.004109a0
test al, al
je 0x40ec2f
lea ecx, [edi + 0xc]
lea eax, [ebp - 0x80]
push eax
call fcn.00410f70
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [esi + 4], 0
mov dword [esi], 0
test ecx, ecx
je 0x40ebed
lock inc dword [ecx + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp edx, 8
jb 0x40ecd3
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ed0a
push edx
push ecx
jmp 0x40eccb
push ebx
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00410d40
mov eax, dword [ebp - 0x70]
lea esi, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
mov edx, 0x811c9dc5
mov edi, dword [ebp - 0x80]
cmovae esi, edi
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x40ec69
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40ec58
mov eax, dword [ebp - 0x68]
mov esi, dword [ebp - 0x14]
xor eax, edx
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0xc]
call fcn.00411c70
cmp dword [eax + 4], 0
je 0x40ec90
lea ecx, [esi + 0xc]
jmp 0x40ebc6
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
mov dword [esi], 0
mov dword [esi + 4], 0
cmp eax, 8
jb 0x40ecd3
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40ecc9
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ed0a
push ecx
push edi
call fcn.0046d4cf
add esp, 8
push dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.00472aca
call fcn.00472aca
int3