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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600858
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x7f206c]
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 edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 4]
push eax
mov dword [ebp - 0x2c], eax
call fcn.004a5780
add esp, 4
test eax, eax
je 0x402992
push eax
call fcn.004a5351
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029b5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004074c0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov edx, 0x811c9dc5
cmovae esi, dword [ebp - 0x28]
xor ecx, ecx
test ebx, ebx
je 0x4029f2
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4029e1
mov eax, dword [edi + 0x4c]
and eax, edx
mov edx, dword [edi + 0x40]
mov edi, dword [edi + 0x38]
mov dword [ebp - 0x34], edx
mov ecx, dword [edx + eax*8]
lea eax, [eax*8 + 4]
mov dword [ebp - 0x30], ecx
mov esi, ecx
mov dword [ebp - 0x2c], eax
cmp ecx, edi
jne 0x402a1a
mov eax, edi
jmp 0x402a1f
mov eax, dword [eax + edx]
mov eax, dword [eax]
cmp esi, eax
je 0x402ac2
cmp dword [ebp - 0x14], 0x10
lea ecx, [esi + 8]
mov ebx, dword [ecx + 0x10]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
cmp dword [ecx + 0x14], 0x10
jb 0x402a40
mov ecx, dword [ecx]
cmp ebx, dword [ebp - 0x18]
jne 0x402aa0
sub ebx, 4
jb 0x402a61
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402a66
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x402a50
cmp ebx, 0xfffffffc
je 0x402a9a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402a93
cmp ebx, 0xfffffffd
je 0x402a9a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402a93
cmp ebx, 0xfffffffe
je 0x402a9a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x402a93
cmp ebx, 0xffffffff
je 0x402a9a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x402a9a
sbb eax, eax
or eax, 1
jmp 0x402a9c
xor eax, eax
test eax, eax
je 0x402ab0
mov esi, dword [esi]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
jmp 0x402a12
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403a80
test al, al
cmove edi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402af4
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402aea
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b4e
push ecx
push edx
call fcn.004a7e9f
add esp, 8
mov esi, dword [ebp - 0x38]
cmp edi, dword [esi + 0x38]
jne 0x402b00
xor bl, bl
jmp 0x402b0e
mov ecx, dword [ebp - 0x3c]
add edi, 0x20
push edi
call fcn.00402b60
mov bl, 1
lea eax, [esi + 4]
mov dword [ebp - 4], 2
push eax
call fcn.004a57a5
add esp, 4
test eax, eax
je 0x402b2e
push eax
call fcn.004a5351
add esp, 4
mov al, bl
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.004a7e5e
mov esp, ebp
pop ebp
ret 8
call fcn.004c2f13
int3