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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d0ce
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x47b06c]
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 esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0xa4], esi
call fcn.004260a7
add esp, 4
test eax, eax
je 0x408096
push eax
call fcn.00426278
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0xd0]
push ecx
push esp
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp + 8]
call fcn.00407150
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x40818a
lea eax, [ebp - 0xa0]
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4080e3
mov eax, dword [ecx]
lea edx, [ebp - 0xa0]
push edx
call dword [eax]
mov esi, eax
mov dword [ebp - 0x7c], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa0]
add edi, 0x38
cmp edi, eax
je 0x40815e
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x408116
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x24], 0
mov esi, dword [ebp - 0x7c]
mov byte [ebp - 4], 3
test esi, esi
je 0x40815e
lea eax, [ebp - 0xa0]
cmp esi, eax
jne 0x408156
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 4]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x40815e
mov edx, dword [esi]
lea eax, [ebp - 0xa0]
cmp esi, eax
mov ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x408159
mov dword [edi + 0x24], esi
xor esi, esi
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x408183
mov edx, dword [esi]
lea eax, [ebp - 0xa0]
cmp esi, eax
mov ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x7c], 0
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 8]
add ebx, 8
mov edi, ebx
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
jb 0x4081a0
mov edi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
test eax, eax
je 0x4081c4
mov esi, eax
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4081b0
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xbc]
and eax, edx
mov esi, dword [esi + 0xb4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x70], esi
mov edi, dword [ecx + eax*8]
add eax, eax
lea edx, [eax*4 + 4]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
cmp eax, esi
jne 0x4081fe
mov dword [ebp - 0x6c], esi
mov eax, esi
jmp 0x408206
mov eax, dword [edx + ecx]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
cmp edi, eax
je 0x40827f
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x408214
mov edx, dword [ebx]
mov esi, dword [edi + 0x1c]
lea ecx, [edi + 8]
mov dword [ebp - 0x4c], esi
cmp esi, 0x10
mov esi, dword [ebp - 0x70]
jb 0x408228
mov ecx, dword [edi + 8]
push dword [ebp - 0x34]
mov eax, dword [edi + 0x18]
push edx
mov edx, eax
mov dword [ebp - 0x30], eax
call fcn.00401ed0
add esp, 8
test al, al
jne 0x40824d
mov edi, dword [edi]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
jmp 0x4081f3
cmp dword [ebp - 0x4c], 0x10
lea eax, [edi + 8]
jb 0x408258
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x408260
mov ebx, dword [ebx]
push dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00401ed0
add esp, 8
test al, al
jne 0x40827a
mov dword [ebp - 0x30], esi
jmp 0x40827f
mov dword [ebp - 0x4c], edi
mov esi, edi
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x48], eax
cmp esi, eax
je 0x408294
mov ecx, dword [esi + 0x20]
jmp 0x40829a
mov ecx, dword [edi + 0xd4]
mov eax, dword [ebp + 8]
add eax, 0x2c
xchg dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0xd8]
add eax, 0x30
xchg dword [eax], ecx
mov ebx, dword [edi + 0x120]
test ebx, ebx
je 0x408397
mov esi, dword [ebp + 8]
add esi, 0x60
push esi
mov dword [ebp - 0x44], esi
call fcn.004260a7
add esp, 4
test eax, eax
je 0x4082dd
push eax
call fcn.00426278
add esp, 4
mov byte [ebp - 4], 7
lea eax, [ebx + 1]
push ecx
push eax
lea ecx, [ebp - 0x58]
mov byte [esi + 0x30], 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call fcn.0040f0d0
mov eax, dword [ebp - 0x68]
lea ebx, [esi + 0x44]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x58]
cmp ebx, eax
je 0x408359
mov ecx, ebx
call fcn.0040f050
mov eax, dword [ebp - 0x58]
mov dword [ebx], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 8], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
call fcn.0040f050
push esi
mov byte [ebp - 4], 8
call fcn.004260cc
add esp, 4
test eax, eax
je 0x408397
push eax
call fcn.00426278
add esp, 4
or ebx, 0xffffffff
cmp byte [edi + 0x11c], 0
je 0x408485
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
lea eax, [esi + 8]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x28]
call fcn.00401b10
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xa
call fcn.004088e0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ecx + 0x90]
call fcn.00418270
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [eax + 0x20], esi
mov esi, dword [eax + 0x24]
mov dword [eax + 0x24], edi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x408438
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x408438
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x408438
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x408470
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4084e9
push edx
push ecx
call fcn.0042736a
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edi, dword [ebp - 0x2c]
push edi
mov byte [ebp - 4], 0xd
call fcn.004260cc
add esp, 4
test eax, eax
je 0x40849f
push eax
call fcn.00426278
add esp, 4
mov dword [ebp - 4], 0xe
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4084cb
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4084cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4084cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.00427329
mov esp, ebp
pop ebp
ret 8
call fcn.004421bc
int3