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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r14, r9
mov rsi, rcx
lea rdi, [0x1401b5068]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x98]
call fcn.14001d490
movzx ebx, byte [rsp + 0x60]
cmp ebx, 3
jne 0x1400175ad
mov qword [rsi], 2
jmp 0x140017a70
mov r11, qword [r14 + 0x38]
test r11, r11
je 0x140017677
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rbp, qword [rsp + 0x58]
cmp dword [r14], 2
mov qword [rsp + 0x30], rsi
jne 0x14001767f
mov qword [rsp + 0x48], r11
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x140184f80]
movdqa xmmword [rsp + 0x50], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x140184f90]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmmword [rsp + 0x70], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
xor eax, eax
cmp ebx, 2
setne al
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r8d, 8
call fcn.14001a7b0
cmp ebx, 2
jne 0x1400176da
movzx eax, byte [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r8d, 8
call fcn.14001a7b0
jmp 0x140017797
xor r14d, r14d
jmp 0x140017a65
xor eax, eax
cmp ebx, 2
setne al
movabs r15, 0xcbf29ce484222325
xor r15, rax
movabs rcx, 0x1efac7090aef4a21
imul r15, rcx
cmp ebx, 2
jne 0x1400176f5
mov rdx, qword [rsp + 0x28]
movzx eax, dl
xor r15d, eax
imul ecx, r15d
and ecx, 0x7fff
movzx r12d, word [r14 + 0x58]
mov eax, ecx
and eax, r12d
mov rsi, qword [r14 + 0x18]
mov rdi, qword [r14 + 0x20]
mov r10, qword [r14 + 0x28]
mov r15d, ecx
jmp 0x1400178c4
test ebx, ebx
je 0x14001774b
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov r8, rbp
call fcn.14001a7b0
jmp 0x140017797
mov rax, qword [rsp + 0x28]
add rax, rbp
test ebx, ebx
je 0x140017947
test rbp, rbp
je 0x140017990
movabs rcx, 0x100000001b3
mov r8, rbp
and r8, 7
je 0x140017a84
mov r9, r15
mov rdx, qword [rsp + 0x28]
nop dword [rax]
movzx r15d, byte [rdx]
inc rdx
xor r15, r9
imul r15, rcx
mov r9, r15
dec r8
jne 0x140017730
jmp 0x140017a89
test rbp, rbp
mov r13, qword [rsp + 0x28]
je 0x140017797
xor esi, esi
lea r15, [rsp + 0x50]
lea r12, [rsp + 0x40]
nop word cs:[rax + rax]
movzx eax, byte [r13 + rsi]
movzx eax, byte [rax + rdi]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, r15
mov rdx, r12
call fcn.14001a7b0
inc rsi
cmp rbp, rsi
jne 0x140017770
mov rax, qword [rsp + 0x60]
mov r9, qword [rsp + 0x80]
shl r9, 0x38
or r9, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
add r8, rax
rol rax, 0xd
xor rcx, r9
xor rax, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x58]
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
add r8, rcx
rol rcx, 0x15
add rdx, rax
rol rax, 0x11
xor rcx, r8
xor rax, rdx
rol rdx, 0x20
xor r8, r9
add r8, rax
rol rax, 0xd
xor rax, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
add r8, rcx
rol rcx, 0x15
add rdx, rax
rol rax, 0x11
xor rax, rdx
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
xor rax, r8
rol r8, 0x20
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
add r8, rcx
rol rcx, 0x15
add rdx, rax
rol rax, 0x11
xor rax, rdx
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
xor rax, r8
add rdx, rcx
shl rcx, 0x10
xor rcx, rdx
shr rcx, 0x2b
add rdx, rax
shr rax, 0x2f
xor rax, rcx
mov r15, rdx
shr r15, 0x20
xor r15, rdx
xor r15, rax
mov r11, qword [rsp + 0x48]
and r15d, 0x7fff
movzx r12d, word [r14 + 0x58]
mov eax, r15d
and eax, r12d
mov rsi, qword [r14 + 0x18]
mov rdi, qword [r14 + 0x20]
mov r10, qword [r14 + 0x28]
test ebx, ebx
je 0x140017b2b
cmp ebx, 2
mov rdx, qword [rsp + 0x28]
jne 0x1400179b3
xor r14d, r14d
xor ecx, ecx
jmp 0x1400178e0
inc rcx
inc rbx
mov rax, rbx
nop word cs:[rax + rax]
mov rbx, rax
mov eax, 0
cmp rbx, rdi
jae 0x1400178e0
movzx ebp, word [rsi + rbx*4]
cmp rbp, 0xffff
je 0x140017a60
movzx eax, word [rsi + rbx*4 + 2]
mov r9d, eax
and r9d, r12d
mov r8d, ebx
sub r8d, r9d
and r8d, r12d
cmp rcx, r8
ja 0x140017a60
cmp ax, r15w
jne 0x1400178cb
cmp r11, rbp
jbe 0x140017ca1
imul rax, rbp, 0x68
cmp qword [r10 + rax + 0x40], 0
jne 0x1400178cb
add rax, r10
add rax, 0x40
cmp byte [rax + 8], dl
jne 0x1400178cb
jmp 0x140017a58
test rbp, rbp
je 0x140017b0d
movabs rcx, 0x100000001b3
mov r8, rbp
and r8, 3
je 0x140017c34
mov rdx, qword [rsp + 0x28]
mov r9, r15
nop
movzx r10d, byte [rdx]
movzx r15d, byte [r10 + rdi]
xor r15, r9
imul r15, rcx
inc rdx
mov r9, r15
dec r8
jne 0x140017970
jmp 0x140017c39
and r15d, 0x7fff
movzx r12d, word [r14 + 0x58]
mov eax, r15d
and eax, r12d
mov rsi, qword [r14 + 0x18]
mov rdi, qword [r14 + 0x20]
mov r10, qword [r14 + 0x28]
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rbp
xor r14d, r14d
xor r13d, r13d
mov qword [rsp + 0x48], r11
jmp 0x1400179d0
inc r13
inc rbx
mov rax, rbx
nop
mov rbx, rax
mov eax, 0
cmp rbx, rdi
jae 0x1400179d0
movzx ebp, word [rsi + rbx*4]
cmp rbp, 0xffff
je 0x140017a60
movzx eax, word [rsi + rbx*4 + 2]
mov ecx, eax
and ecx, r12d
mov r8d, ebx
sub r8d, ecx
and r8d, r12d
cmp r13, r8
ja 0x140017a60
cmp ax, r15w
jne 0x1400179c5
cmp r11, rbp
jbe 0x140017ca1
imul rax, rbp, 0x68
cmp qword [r10 + rax + 0x40], 0
je 0x1400179c5
add rax, r10
add rax, 0x40
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jne 0x1400179c5
mov rcx, qword [rax + 8]
mov r8, qword [rsp + 0x38]
mov r14, r10
call sub.msvcrt.dll_memcmp
mov r10, r14
xor r14d, r14d
mov r11, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
test eax, eax
jne 0x1400179c5
mov r14d, 1
jmp 0x140017a60
mov rsi, qword [rsp + 0x30]
mov qword [rsi], r14
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbp
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x28]
cmp rbp, 8
jb 0x140017890
nop word cs:[rax + rax]
movzx r8d, byte [rdx]
xor r8, r15
imul r8, rcx
movzx r9d, byte [rdx + 1]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 2]
xor r8, r9
imul r8, rcx
movzx r9d, byte [rdx + 3]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 4]
xor r8, r9
imul r8, rcx
movzx r9d, byte [rdx + 5]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 6]
xor r8, r9
imul r8, rcx
movzx r15d, byte [rdx + 7]
add rdx, 8
xor r15, r8
imul r15, rcx
cmp rdx, rax
jne 0x140017aa0
jmp 0x140017890
and r15d, 0x7fff
movzx r12d, word [r14 + 0x58]
mov eax, r15d
and eax, r12d
mov rsi, qword [r14 + 0x18]
mov rdi, qword [r14 + 0x20]
mov r10, qword [r14 + 0x28]
mov qword [rsp + 0x38], rbp
lea r13, [rbp - 1]
xor edx, edx
mov rbx, rax
mov r14, qword [rsp + 0x28]
jmp 0x140017b46
inc rdx
inc rbx
mov rax, rbx
nop dword [rax]
mov rbx, rax
mov eax, 0
cmp rbx, rdi
jae 0x140017b50
movzx ebp, word [rsi + rbx*4]
cmp rbp, 0xffff
je 0x140017c2c
movzx eax, word [rsi + rbx*4 + 2]
mov r8d, eax
and r8d, r12d
mov r9d, ebx
sub r9d, r8d
and r9d, r12d
cmp rdx, r9
ja 0x140017c2c
cmp ax, r15w
jne 0x140017b40
cmp r11, rbp
jbe 0x140017ca1
imul rax, rbp, 0x68
cmp qword [r10 + rax + 0x40], 0
je 0x140017b40
add rax, r10
add rax, 0x40
mov r8, qword [rsp + 0x38]
cmp qword [rax + 0x10], r8
jne 0x140017b40
cmp qword [rsp + 0x38], 0
je 0x140017c1c
mov rax, qword [rax + 8]
movzx r8d, byte [r14]
lea rcx, [0x1401b5068]
movzx r8d, byte [r8 + rcx]
cmp r8b, byte [rax]
jne 0x140017b40
xor r8d, r8d
cmp r13, r8
je 0x140017c1c
movzx r9d, byte [r14 + r8 + 1]
mov rcx, r11
mov r11, r10
lea r10, [0x1401b5068]
movzx r10d, byte [r9 + r10]
lea r9, [r8 + 1]
cmp r10b, byte [rax + r8 + 1]
mov r10, r11
mov r11, rcx
mov r8, r9
je 0x140017be0
cmp r9, qword [rsp + 0x38]
jb 0x140017b40
mov rsi, qword [rsp + 0x30]
mov r14d, 1
jmp 0x140017a65
xor r14d, r14d
jmp 0x140017a60
mov rdx, qword [rsp + 0x28]
cmp rbp, 4
jb 0x140017890
nop word cs:[rax + rax]
movzx r8d, byte [rdx]
movzx r8d, byte [r8 + rdi]
xor r8, r15
imul r8, rcx
movzx r9d, byte [rdx + 1]
movzx r9d, byte [r9 + rdi]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 2]
movzx r8d, byte [r8 + rdi]
xor r8, r9
imul r8, rcx
movzx r9d, byte [rdx + 3]
movzx r15d, byte [r9 + rdi]
xor r15, r8
imul r15, rcx
add rdx, 4
cmp rdx, rax
jne 0x140017c50
jmp 0x140017890
ud2