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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
cmp eax, ebx
jne 0x40525d
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 0x1c], 0xf
mov edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
lea edx, [eax + 8]
push edi
mov edi, eax
mov dword [ebp - 8], edx
jbe 0x405283
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [edx + 0x10]
xor edx, edx
push esi
mov esi, 0x811c9dc5
test eax, eax
je 0x4052ae
mov ebx, dword [ebp - 8]
mov ecx, eax
movzx eax, byte [edx + ebx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x405297
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, esi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], eax
mov esi, edi
mov dword [ebp - 0x14], edi
mov edi, dword [edi]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xf
jbe 0x405302
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x4052f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40545c
mov eax, edx
push ecx
push eax
call fcn.0040d9a9
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.0040d9a9
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, dword [ebp - 0x20]
dec dword [ecx + 8]
cmp dword [ebp - 0x14], eax
je 0x405351
cmp edi, ebx
jne 0x4052c7
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x40533e
mov ecx, dword [ebp - 8]
mov dword [ecx], edi
mov eax, dword [ebp - 0x10]
pop esi
mov dword [eax], edi
mov dword [edi + 4], eax
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x405363
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x405366
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
cmp edi, ebx
je 0x40533e
nop dword [eax]
cmp dword [edi + 0x1c], 0xf
lea esi, [edi + 8]
jbe 0x40537c
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x18]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x4053a1
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x405390
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
and eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov esi, edi
mov ebx, edi
mov edi, dword [edi]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xf
jbe 0x4053ee
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x4053e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40545c
mov eax, edx
push ecx
push eax
call fcn.0040d9a9
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.0040d9a9
mov ecx, dword [ebp - 0xc]
add esp, 8
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x14]
je 0x405433
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x4053b8
mov ecx, dword [ebp - 4]
pop esi
mov dword [ecx], edi
mov ecx, dword [ebp - 0x10]
mov dword [ecx], edi
mov dword [edi + 4], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp edi, ebx
jne 0x405370
mov eax, dword [ebp - 0x10]
pop esi
mov dword [eax], edi
mov dword [edi + 4], eax
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3