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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, ecx
push esi
mov dword [ebp - 8], eax
add eax, 0x20
push edi
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
mov dword [ebp - 4], edi
jb 0x40314e
mov edx, dword [ebx]
xor esi, esi
lea ecx, [edx + edi]
cmp edx, ecx
mov eax, 0x811c9dc5
cmova edi, esi
test edi, edi
je 0x403174
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
inc esi
imul eax, ecx, 0x1000193
cmp esi, edi
jne 0x403161
mov esi, dword [ebp - 8]
mov edx, dword [esi + 0x18]
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov dword [ebp + 8], esi
mov ecx, dword [eax + edx*8]
add edx, edx
mov edi, dword [eax + edx*4]
lea eax, [eax + edx*4]
add eax, 4
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
nop dword [eax]
cmp edi, esi
jne 0x4031a8
mov eax, esi
jmp 0x4031ac
mov eax, dword [eax]
mov eax, dword [eax]
cmp ecx, eax
je 0x4032b9
cmp dword [ebx + 0x14], 0x10
mov esi, ebx
jb 0x4031be
mov esi, dword [ebx]
mov edi, dword [ecx + 0x1c]
lea edx, [ecx + 8]
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x4031cf
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 4]
jne 0x403231
mov edi, eax
sub edi, 4
jb 0x4031f2
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4031f7
add edx, 4
add esi, 4
sub edi, 4
jae 0x4031e1
cmp edi, 0xfffffffc
je 0x40322b
mov al, byte [edx]
cmp al, byte [esi]
jne 0x403224
cmp edi, 0xfffffffd
je 0x40322b
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x403224
cmp edi, 0xfffffffe
je 0x40322b
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x403224
cmp edi, 0xffffffff
je 0x40322b
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40322b
sbb eax, eax
or eax, 1
jmp 0x40322d
xor eax, eax
test eax, eax
je 0x403241
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x4031a0
cmp dword [ebp - 0x10], 0x10
lea edx, [ecx + 8]
jb 0x40324c
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x403254
mov ebx, dword [ebx]
mov esi, dword [ebp - 4]
cmp esi, dword [ebp - 0x14]
jne 0x4032b6
sub esi, 4
jb 0x403272
mov eax, dword [ebx]
cmp eax, dword [edx]
jne 0x403277
add ebx, 4
add edx, 4
sub esi, 4
jae 0x403261
cmp esi, 0xfffffffc
je 0x4032ab
mov al, byte [ebx]
cmp al, byte [edx]
jne 0x4032a4
cmp esi, 0xfffffffd
je 0x4032ab
mov al, byte [ebx + 1]
cmp al, byte [edx + 1]
jne 0x4032a4
cmp esi, 0xfffffffe
je 0x4032ab
mov al, byte [ebx + 2]
cmp al, byte [edx + 2]
jne 0x4032a4
cmp esi, 0xffffffff
je 0x4032ab
mov al, byte [ebx + 3]
cmp al, byte [edx + 3]
je 0x4032ab
sbb eax, eax
or eax, 1
jmp 0x4032ad
xor eax, eax
test eax, eax
jne 0x4032b6
mov esi, dword [ebp + 8]
jmp 0x4032bb
mov esi, dword [ebp + 8]
mov ecx, esi
cmp ecx, esi
je 0x4032d6
push dword [ebp - 0x18]
mov esi, dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x18]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4