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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ecx]
xor eax, 2
or eax, dword [ecx + 4]
jne 0x409f2b
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov edi, eax
mov ebx, eax
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
xor edi, 0x70736575
mov dword [eax], edi
mov edi, esi
xor edi, 0x736f6d65
mov dword [eax + 4], edi
mov edi, ebx
xor edi, 0x6e657261
mov dword [eax + 8], edi
mov edi, esi
xor edi, 0x6c796765
mov dword [eax + 0xc], edi
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov ebx, edi
xor ebx, 0x6e646f6d
mov dword [eax + 0x10], ebx
mov ebx, ecx
xor ebx, 0x646f7261
mov dword [eax + 0x14], ebx
mov ebx, edi
xor ebx, 0x79746573
mov dword [eax + 0x18], ebx
mov ebx, ecx
xor ebx, 0x74656462
mov dword [eax + 0x1c], ebx
mov ebx, edx
mov edx, dword [esp + 4]
mov dword [eax + 0x24], esi
xor esi, esi
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], esi
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], esi
xor ecx, ecx
lea edx, [esp + 0x1c]
mov edi, dword [ebx]
cmp edi, esi
setne cl
mov dword [edx], ecx
mov ecx, eax
push 4
call fcn.0040a1d4
add esp, 4
cmp edi, esi
je 0x409fc1
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
push dword [ebx + 8]
jmp 0x409fd1
mov ecx, dword [edx]
xor eax, eax
mov esi, 0xcbf29ce4
mov edi, 0xfffffffc
mov dword [esp + 8], edx
test ecx, ecx
mov dword [esp + 4], ecx
setne al
mov dword [esp + 0x20], eax
mov eax, 0x84222325
movzx ecx, byte [esp + edi + 0x24]
xor ecx, eax
mov eax, pe_nt_image_headers32
mov ebx, ecx
imul ebx, eax
mov eax, ecx
mov ecx, 0x1b3
mul ecx
imul esi, ecx
add edx, ebx
add esi, edx
inc edi
jne 0x409f4f
cmp dword [esp + 4], 0
je 0x40a192
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 8]
test edx, edx
je 0x40a1c7
mov ebx, dword [ecx + 4]
movzx ecx, byte [ebx]
inc ebx
xor ecx, eax
mov eax, pe_nt_image_headers32
mov edi, ecx
imul edi, eax
mov eax, ecx
mov ecx, edx
mov edx, 0x1b3
mul edx
add edx, edi
mov edi, 0x1b3
imul esi, edi
add esi, edx
mov edx, ecx
dec edx
jne 0x409f90
jmp 0x40a1c7
movzx eax, byte [ebx + 4]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [edx], eax
push 4
call fcn.0040a1d4
add esp, 4
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
shl edx, 0x18
xor esi, edi
mov dword [esp + 0x14], edi
mov edi, eax
or edx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
xor ecx, edx
mov edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
adc ebx, edx
shld edi, edx, 0xd
shld edx, eax, 0xd
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebx
xor edx, ebx
mov ebx, dword [esp + 0xc]
xor edi, ebx
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
adc eax, ecx
mov dword [esp + 0x10], eax
mov eax, esi
shrd esi, ecx, 0x10
shld eax, ecx, 0x10
xor esi, dword [esp + 0x10]
xor eax, dword [esp + 8]
add dword [esp + 4], eax
mov ecx, eax
adc ebx, esi
shld ecx, esi, 0x15
shrd eax, esi, 0xb
mov esi, edi
xor eax, ebx
xor ecx, dword [esp + 4]
add dword [esp + 8], edi
adc dword [esp + 0x10], edx
shld esi, edx, 0x11
shrd edi, edx, 0xf
mov edx, ebx
mov ebx, dword [esp + 0x14]
xor esi, dword [esp + 8]
xor edx, dword [esp + 0x18]
xor dword [esp + 4], ebx
mov ebx, dword [esp + 0x10]
xor edi, ebx
xor ebx, 0xff
add dword [esp + 4], esi
adc edx, edi
mov dword [esp + 0xc], edx
mov edx, esi
shrd esi, edi, 0x13
shld edx, edi, 0xd
xor esi, dword [esp + 0xc]
mov edi, ecx
xor edx, dword [esp + 4]
add ebx, ecx
adc dword [esp + 8], eax
shld edi, eax, 0x10
shrd ecx, eax, 0x10
xor edi, ebx
xor ecx, dword [esp + 8]
add dword [esp + 0xc], edi
mov eax, edi
adc dword [esp + 4], ecx
shld eax, ecx, 0x15
shrd edi, ecx, 0xb
mov ecx, edx
xor edi, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edx
adc dword [esp + 8], esi
shld ecx, esi, 0x11
shrd edx, esi, 0xf
xor ecx, ebx
xor edx, dword [esp + 8]
add dword [esp + 0xc], ecx
mov esi, ecx
adc dword [esp + 4], edx
shld esi, edx, 0xd
shrd ecx, edx, 0x13
mov edx, eax
xor ecx, dword [esp + 4]
xor esi, dword [esp + 0xc]
add dword [esp + 8], eax
adc ebx, edi
shld edx, edi, 0x10
shrd eax, edi, 0x10
xor edx, dword [esp + 8]
xor eax, ebx
add dword [esp + 4], edx
mov edi, edx
adc dword [esp + 0xc], eax
shld edi, eax, 0x15
shrd edx, eax, 0xb
mov eax, esi
xor edx, dword [esp + 0xc]
xor edi, dword [esp + 4]
add dword [esp + 8], esi
adc ebx, ecx
shld eax, ecx, 0x11
shrd esi, ecx, 0xf
xor eax, dword [esp + 8]
xor esi, ebx
add dword [esp + 4], eax
mov ecx, eax
adc dword [esp + 0xc], esi
shld ecx, esi, 0xd
shrd eax, esi, 0x13
mov esi, dword [esp + 8]
xor ecx, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edi
adc esi, edx
shrd edi, edx, 0x10
xor edi, esi
shr edi, 0xb
add ebx, ecx
adc esi, eax
shr eax, 0xf
xor eax, esi
xor eax, edi
xor eax, ebx
jmp 0x40a1c7
mov ecx, dword [esp + 8]
mov edi, 0xfffffffc
movzx ecx, byte [ecx + 4]
mov dword [esp + 0x20], ecx
movzx ecx, byte [esp + edi + 0x24]
xor ecx, eax
mov eax, pe_nt_image_headers32
mov ebx, ecx
imul ebx, eax
mov eax, ecx
mov ecx, 0x1b3
mul ecx
imul esi, ecx
add edx, ebx
add esi, edx
inc edi
jne 0x40a1a3
and eax, 0x7fff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret