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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c351
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x160
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
add eax, dword [0x5fd964]
mov byte [ebp - 0x120], 0
cmp eax, 0x100
jbe 0x46685d
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
cmp word [eax], 0x5c
je 0x46685d
lea eax, [ebx + 8]
mov edx, 0x5e2a90
push eax
lea ecx, [ebp - 0x174]
call fcn.0045bad0
mov esi, eax
add esp, 4
lea eax, [ebx + 8]
cmp eax, esi
je 0x46681d
mov ecx, eax
call fcn.00449940
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebx + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x160]
cmp edx, 8
jb 0x46685d
mov ecx, dword [ebp - 0x174]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466853
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46701e
push edx
push ecx
call fcn.00537216
add esp, 8
push 0x5ffabc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x18]
lea edx, [ebx + 8]
cmp dword [ebx + 0x1c], 8
mov edi, 0x811c9dc5
cmovae edx, dword [ebx + 8]
xor ecx, ecx
lea esi, [eax + eax]
test esi, esi
je 0x466895
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x466884
and edi, dword [0x5ff978]
mov edx, dword [0x5ff96c]
mov ecx, dword [edx + edi*8]
mov esi, ecx
mov dword [ebp - 0x134], ecx
mov eax, dword [0x5ff964]
cmp ecx, eax
je 0x4668bb
mov eax, dword [edx + edi*8 + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x46696a
cmp dword [ebx + 0x1c], 8
lea ecx, [esi + 8]
mov eax, dword [ecx + 0x10]
lea edx, [ebx + 8]
cmovae edx, dword [ebx + 8]
mov dword [ebp - 0x11c], eax
mov eax, dword [ecx + 0x14]
cmp eax, 8
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x11c]
jb 0x4668f0
mov ecx, dword [ecx]
cmp eax, dword [ebx + 0x18]
jne 0x466902
push eax
call fcn.004546f0
add esp, 4
test eax, eax
je 0x466912
mov esi, dword [esi]
mov ecx, dword [ebp - 0x134]
mov edx, dword [0x5ff96c]
jmp 0x4668ac
cmp dword [ebp - 0x128], 8
lea edx, [esi + 8]
jb 0x466920
mov edx, dword [edx]
cmp dword [ebx + 0x1c], 8
lea ecx, [ebx + 8]
mov eax, dword [ebx + 0x18]
cmovae ecx, dword [ebx + 8]
cmp eax, dword [ebp - 0x11c]
jne 0x46694a
push eax
call fcn.004546f0
add esp, 4
test eax, eax
jne 0x46694a
mov eax, dword [0x5ff964]
jmp 0x466951
mov eax, dword [0x5ff964]
mov esi, eax
mov ecx, dword [ebp - 0x120]
cmp esi, eax
movzx ecx, cl
mov edi, 1
cmovne ecx, edi
mov dword [ebp - 0x120], ecx
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ffabc
call esi
cmp byte [ebp - 0x120], 0
je 0x4669bd
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x466ffe
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466ff4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
jmp 0x466ff4
lea edx, [ebp - 0x124]
mov dword [ebp - 0x124], 0xffffffff
lea ecx, [ebx + 8]
call fcn.00465fe0
mov edi, eax
cmp edi, 1
je 0x466a09
push 0x5ffabc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x12c]
lea eax, [ebx + 8]
mov ecx, 0x5ff960
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0045bfd0
push 0x5ffabc
call esi
test edi, edi
je 0x466a38
cmp byte [0x5fd98a], 0
je 0x466980
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push eax
push str._____Failed_to_open:__s
call fcn.0046b580
add esp, 8
jmp 0x466980
mov esi, dword [ebp - 0x124]
cmp esi, 0xffffffff
je 0x466980
push 0xc8
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0054f070
add esp, 0xc
lea eax, [ebx + 8]
lea ecx, [ebp - 0x118]
push esi
push eax
call fcn.0044e4d0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0044e8e0
test al, al
jne 0x466b15
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x154]
call fcn.0044d150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x154]
cmp dword [ebp - 0x140], 8
lea eax, [ebx + 8]
cmovae ecx, dword [ebp - 0x154]
cmp dword [ebx + 0x1c], 8
push ecx
cmovae eax, dword [ebx + 8]
push eax
push str._____Failed_to_crypt__s__Error___s
call fcn.0046b580
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x140]
cmp edx, 8
jb 0x466ec7
mov ecx, dword [ebp - 0x154]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466b06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
push edx
push ecx
call fcn.00537216
add esp, 8
jmp 0x466ec7
cmp byte [0x5fd9ad], 0
je 0x466c6f
mov eax, dword [ebp - 0x104]
mov edi, eax
mov ecx, dword [ebp - 0x108]
mov esi, ecx
mov dword [ebp - 0x12c], eax
movzx eax, byte [0x5fd978]
shl eax, 0x14
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], edi
test edi, edi
jl 0x466ba6
jg 0x466b5e
cmp esi, eax
jb 0x466ba6
call fcn.004579d0
movzx eax, al
mov edx, edi
mov ecx, esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x5e9db8]
movsd qword [ebp - 0x138], xmm0
call fcn.00537e30
mulsd xmm0, qword [ebp - 0x138]
call fcn.00537cdf
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x466c6f
mov eax, dword [eax + 0x244]
lea eax, [eax*8 + 0x5fe7d0]
mov dword [ebp - 0x120], eax
mov edi, dword [eax]
mov esi, edi
mov edx, dword [eax + 4]
add esi, ecx
mov ecx, edx
mov dword [ebp - 0x124], edx
adc ecx, dword [ebp - 0x12c]
mov eax, edi
push ebx
mov ebx, esi
mov esi, dword [ebp - 0x120]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, dword [ebp - 0x11c]
cmp eax, edi
mov eax, esi
jne 0x466bc7
cmp edx, dword [ebp - 0x124]
jne 0x466bc7
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 0x244]
lea eax, [eax*8 + 0x5fdfd8]
mov dword [ebp - 0x11c], eax
nop dword [eax + eax]
mov edi, dword [eax]
mov esi, edi
mov edx, dword [eax + 4]
mov ecx, edx
add esi, dword [ebp - 0x128]
mov eax, edi
mov dword [ebp - 0x12c], edx
adc ecx, dword [ebp - 0x134]
push ebx
mov ebx, esi
mov esi, dword [ebp - 0x11c]
lock cmpxchg8b qword [esi]
pop ebx
cmp eax, edi
mov eax, esi
jne 0x466c20
cmp edx, dword [ebp - 0x12c]
jne 0x466c20
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 0x244]
lea eax, [eax*4 + 0x5fdbd8]
lock inc dword [eax]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x466c9b
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x118], 0xffffffff
mov edx, dword [ebp - 0xd4]
cmp edx, 8
jb 0x466cdb
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466cd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
push edx
push ecx
call fcn.00537216
add esp, 8
mov edx, dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
cmp edx, 8
jb 0x466d38
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466d2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x110]
test edi, edi
je 0x466d84
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x466d84
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x466d84
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x466dbe
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466db4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
push edx
push ecx
call fcn.00537216
add esp, 8
mov eax, 1
jmp 0x467000
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x466efa
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x118], 0xffffffff
mov edx, dword [ebp - 0xd4]
cmp edx, 8
jb 0x466f3a
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466f30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
push edx
push ecx
call fcn.00537216
add esp, 8
mov edx, dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
cmp edx, 8
jb 0x466f97
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466f8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467023
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x110]
test edi, edi
je 0x466980
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x466980
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x466980
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x466980
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552cb1
call fcn.00552cb1
int3