Function at 0x140054f90
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, [0x1402a09d0]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x98]
call fcn.140059e90
movzx ebx, byte [rsp + 0x60]
cmp ebx, 3
jne 0x140054fdd
mov qword [rsi], 2
jmp 0x1400554a0
mov r11, qword [r14 + 0x38]
test r11, r11
je 0x1400550a7
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 0x1400550af
mov qword [rsp + 0x48], r11
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x1401f8570]
movdqa xmmword [rsp + 0x50], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x1401f8580]
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.14004c0b0
cmp ebx, 2
jne 0x14005510a
movzx eax, byte [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r8d, 8
call fcn.14004c0b0
jmp 0x1400551c7
xor r14d, r14d
jmp 0x140055495
xor eax, eax
cmp ebx, 2
setne al
movabs r15, 0xcbf29ce484222325
xor r15, rax
movabs rcx, 0x1efac7090aef4a21
imul r15, rcx
cmp ebx, 2
jne 0x140055125
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 0x1400552f4
test ebx, ebx
je 0x14005517b
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov r8, rbp
call fcn.14004c0b0
jmp 0x1400551c7
mov rax, qword [rsp + 0x28]
add rax, rbp
test ebx, ebx
je 0x140055377
test rbp, rbp
je 0x1400553c0
movabs rcx, 0x100000001b3
mov r8, rbp
and r8, 7
je 0x1400554b4
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 0x140055160
jmp 0x1400554b9
test rbp, rbp
mov r13, qword [rsp + 0x28]
je 0x1400551c7
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.14004c0b0
inc rsi
cmp rbp, rsi
jne 0x1400551a0
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 0x14005555b
cmp ebx, 2
mov rdx, qword [rsp + 0x28]
jne 0x1400553e3
xor r14d, r14d
xor ecx, ecx
jmp 0x140055310
inc rcx
inc rbx
mov rax, rbx
nop word cs:[rax + rax]
mov rbx, rax
mov eax, 0
cmp rbx, rdi
jae 0x140055310
movzx ebp, word [rsi + rbx*4]
cmp rbp, 0xffff
je 0x140055490
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 0x140055490
cmp ax, r15w
jne 0x1400552fb
cmp r11, rbp
jbe 0x1400556d1
imul rax, rbp, 0x68
cmp qword [r10 + rax + 0x40], 0
jne 0x1400552fb
add rax, r10
add rax, 0x40
cmp byte [rax + 8], dl
jne 0x1400552fb
jmp 0x140055488
test rbp, rbp
je 0x14005553d
movabs rcx, 0x100000001b3
mov r8, rbp
and r8, 3
je 0x140055664
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 0x1400553a0
jmp 0x140055669
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 0x140055400
inc r13
inc rbx
mov rax, rbx
nop
mov rbx, rax
mov eax, 0
cmp rbx, rdi
jae 0x140055400
movzx ebp, word [rsi + rbx*4]
cmp rbp, 0xffff
je 0x140055490
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 0x140055490
cmp ax, r15w
jne 0x1400553f5
cmp r11, rbp
jbe 0x1400556d1
imul rax, rbp, 0x68
cmp qword [r10 + rax + 0x40], 0
je 0x1400553f5
add rax, r10
add rax, 0x40
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jne 0x1400553f5
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 0x1400553f5
mov r14d, 1
jmp 0x140055490
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 0x1400552c0
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 0x1400554d0
jmp 0x1400552c0
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 0x140055576
inc rdx
inc rbx
mov rax, rbx
nop dword [rax]
mov rbx, rax
mov eax, 0
cmp rbx, rdi
jae 0x140055580
movzx ebp, word [rsi + rbx*4]
cmp rbp, 0xffff
je 0x14005565c
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 0x14005565c
cmp ax, r15w
jne 0x140055570
cmp r11, rbp
jbe 0x1400556d1
imul rax, rbp, 0x68
cmp qword [r10 + rax + 0x40], 0
je 0x140055570
add rax, r10
add rax, 0x40
mov r8, qword [rsp + 0x38]
cmp qword [rax + 0x10], r8
jne 0x140055570
cmp qword [rsp + 0x38], 0
je 0x14005564c
mov rax, qword [rax + 8]
movzx r8d, byte [r14]
lea rcx, [0x1402a09d0]
movzx r8d, byte [r8 + rcx]
cmp r8b, byte [rax]
jne 0x140055570
xor r8d, r8d
cmp r13, r8
je 0x14005564c
movzx r9d, byte [r14 + r8 + 1]
mov rcx, r11
mov r11, r10
lea r10, [0x1402a09d0]
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 0x140055610
cmp r9, qword [rsp + 0x38]
jb 0x140055570
mov rsi, qword [rsp + 0x30]
mov r14d, 1
jmp 0x140055495
xor r14d, r14d
jmp 0x140055490
mov rdx, qword [rsp + 0x28]
cmp rbp, 4
jb 0x1400552c0
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 0x140055680
jmp 0x1400552c0
ud2