Function at 0x466270
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 0x57beb1
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 [0x5fd944]
mov byte [ebp - 0x120], 0
cmp eax, 0x100
jbe 0x46637d
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
cmp word [eax], 0x5c
je 0x46637d
lea eax, [ebx + 8]
mov edx, 0x5e2a48
push eax
lea ecx, [ebp - 0x174]
call fcn.0045b5f0
mov esi, eax
add esp, 4
lea eax, [ebx + 8]
cmp eax, esi
je 0x46633d
mov ecx, eax
call fcn.00449930
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 0x46637d
mov ecx, dword [ebp - 0x174]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466373
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b3e
push edx
push ecx
call fcn.00536da7
add esp, 8
push 0x5ffa9c
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 0x4663b5
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x4663a4
and edi, dword [0x5ff958]
mov edx, dword [0x5ff94c]
mov ecx, dword [edx + edi*8]
mov esi, ecx
mov dword [ebp - 0x134], ecx
mov eax, dword [0x5ff944]
cmp ecx, eax
je 0x4663db
mov eax, dword [edx + edi*8 + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x46648a
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 0x466410
mov ecx, dword [ecx]
cmp eax, dword [ebx + 0x18]
jne 0x466422
push eax
call fcn.00454330
add esp, 4
test eax, eax
je 0x466432
mov esi, dword [esi]
mov ecx, dword [ebp - 0x134]
mov edx, dword [0x5ff94c]
jmp 0x4663cc
cmp dword [ebp - 0x128], 8
lea edx, [esi + 8]
jb 0x466440
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 0x46646a
push eax
call fcn.00454330
add esp, 4
test eax, eax
jne 0x46646a
mov eax, dword [0x5ff944]
jmp 0x466471
mov eax, dword [0x5ff944]
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 0x5ffa9c
call esi
cmp byte [ebp - 0x120], 0
je 0x4664dd
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x466b1e
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466b14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
jmp 0x466b14
lea edx, [ebp - 0x124]
mov dword [ebp - 0x124], 0xffffffff
lea ecx, [ebx + 8]
call fcn.00465b00
mov edi, eax
cmp edi, 1
je 0x466529
push 0x5ffa9c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x12c]
lea eax, [ebx + 8]
mov ecx, 0x5ff940
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0045baf0
push 0x5ffa9c
call esi
test edi, edi
je 0x466558
cmp byte [0x5fd96a], 0
je 0x4664a0
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push eax
push str.Failed_to_open:__s
call fcn.0046b090
add esp, 8
jmp 0x4664a0
mov esi, dword [ebp - 0x124]
cmp esi, 0xffffffff
je 0x4664a0
push 0xc8
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0054ec00
add esp, 0xc
lea eax, [ebx + 8]
lea ecx, [ebp - 0x118]
push esi
push eax
call fcn.0044e4c0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0044e8d0
test al, al
jne 0x466635
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x154]
call fcn.0044d140
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.0046b090
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x140]
cmp edx, 8
jb 0x4669e7
mov ecx, dword [ebp - 0x154]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466626
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
push edx
push ecx
call fcn.00536da7
add esp, 8
jmp 0x4669e7
cmp byte [0x5fd98d], 0
je 0x46678f
mov eax, dword [ebp - 0x104]
mov edi, eax
mov ecx, dword [ebp - 0x108]
mov esi, ecx
mov dword [ebp - 0x12c], eax
movzx eax, byte [0x5fd958]
shl eax, 0x14
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], edi
test edi, edi
jl 0x4666c6
jg 0x46667e
cmp esi, eax
jb 0x4666c6
call fcn.00457610
movzx eax, al
mov edx, edi
mov ecx, esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x5e9d18]
movsd qword [ebp - 0x138], xmm0
call fcn.005379c0
mulsd xmm0, qword [ebp - 0x138]
call fcn.0053786f
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x46678f
mov eax, dword [eax + 0x244]
lea eax, [eax*8 + 0x5fe7b0]
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 0x4666e7
cmp edx, dword [ebp - 0x124]
jne 0x4666e7
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 0x244]
lea eax, [eax*8 + 0x5fdfb8]
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 0x466740
cmp edx, dword [ebp - 0x12c]
jne 0x466740
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 0x244]
lea eax, [eax*4 + 0x5fdbb8]
lock inc dword [eax]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x4667bb
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 0x4667fb
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4667f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
push edx
push ecx
call fcn.00536da7
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 0x466858
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46684e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
push edx
push ecx
call fcn.00536da7
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 0x4668a4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4668a4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4668a4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x4668de
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4668d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
push edx
push ecx
call fcn.00536da7
add esp, 8
mov eax, 1
jmp 0x466b20
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x466a1a
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 0x466a5a
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466a50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
push edx
push ecx
call fcn.00536da7
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 0x466ab7
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466aad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466b43
push edx
push ecx
call fcn.00536da7
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 0x4664a0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4664a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4664a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x4664a0
push edx
push ecx
call fcn.00536da7
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.00536b66
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552841
call fcn.00552841
int3