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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013e725
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x260]
mov dword [ebp - 0x14], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0x104
call fcn.10063ca0
push 0x1a
mov esi, eax
mov dword [ebp - 0x48], 0
push 0x10194d50
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.100485f0
mov dword [ebp - 4], 0
call fcn.1007a8b0
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x34], 0x10
lea esi, [ebp - 0x48]
mov edi, dword [ebp - 0x48]
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0x38]
cmovae esi, edi
xor ecx, ecx
test ebx, ebx
je 0x100659d1
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x100659c0
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push edx
push eax
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.10064540
mov esi, dword [eax + 4]
test esi, esi
je 0x100659ff
cmp esi, dword [ebx + 4]
je 0x100659ff
mov esi, dword [esi + 0x20]
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10065a0b
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x10065a47
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10065a3d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10065a3d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.1013b151
add esp, 8
test esi, esi
je 0x10065a63
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x10065a75
push dword [ebp - 0x10]
lea eax, [ebp - 0x260]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x18], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10065a93
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100512a0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10065b5d
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
lea eax, [esi - 1]
cmp edi, 8
cmovae ecx, ebx
or edx, 0xffffffff
cmp eax, edx
cmovb edx, eax
cmp word [ecx + edx*2], 0x5c
lea eax, [ecx + edx*2]
je 0x10065af5
cmp eax, ecx
je 0x10065afe
sub eax, 2
cmp word [eax], 0x5c
jne 0x10065ae8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x10065b27
cmp edi, 8
lea ecx, [ebp - 0x2c]
cmovae ecx, ebx
cmp word [ecx + edx*2], 0x2f
lea eax, [ecx + edx*2]
je 0x10065b1e
cmp eax, ecx
je 0x10065b58
sub eax, 2
cmp word [eax], 0x2f
jne 0x10065b11
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x10065b5d
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
cmp esi, eax
cmovb eax, esi
cmp edi, 8
push eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.100512a0
jmp 0x10065b6b
or eax, 0xffffffff
jmp 0x10065b22
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.1004fd90
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x10065ba7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065b9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10065b9d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret