Function at 0x140030540
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, rcx
lea rax, [0x1401eaa58]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x98]
call fcn.14003c510
movzx edi, byte [rsp + 0x60]
cmp dil, 3
je 0x14003091f
mov r10, qword [r14 + 0x38]
test r10, r10
je 0x14003091f
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
cmp dword [r14], 2
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], r13
jne 0x14003063d
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x14019d790]
movdqa xmmword [rsp + 0x50], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x14019d7a0]
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 dil, 2
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400283f0
mov eax, edi
cmp al, 2
jne 0x140030688
movzx eax, r13b
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov r8d, 8
jmp 0x14003069b
xor eax, eax
cmp dil, 2
setne al
movabs rbx, 0xcbf29ce484222325
xor rbx, rax
movabs rax, 0x1efac7090aef4a21
imul rbx, rax
cmp dil, 2
jne 0x140030935
movzx ecx, r13b
xor rcx, rbx
imul rcx, rax
mov r9b, 2
mov rbx, rcx
lea r11, [0x1401eaa58]
jmp 0x1400307a3
test al, al
je 0x14003099a
lea rcx, [rsp + 0x50]
mov rdx, r13
mov r8, rbp
call fcn.1400283f0
lea r11, [0x1401eaa58]
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 rbx, rdx
shr rbx, 0x20
xor rbx, rdx
xor rbx, rax
mov r10, qword [rsp + 0x48]
mov r9d, edi
and ebx, 0x7fff
movzx r12d, word [r14 + 0x58]
mov r15d, ebx
and r15d, r12d
mov r13, qword [r14 + 0x18]
mov rsi, qword [r14 + 0x20]
mov r14, qword [r14 + 0x28]
mov qword [rsp + 0x38], rbp
mov rdi, rbp
neg rdi
xor ebp, ebp
mov dword [rsp + 0x34], r9d
jmp 0x1400307e6
inc rbp
inc r15
mov rax, r15
nop dword [rax]
mov r15, rax
mov eax, 0
cmp r15, rsi
jae 0x1400307f0
movzx ecx, word [r13 + r15*4]
cmp rcx, 0xffff
je 0x14003091f
movzx eax, word [r13 + r15*4 + 2]
mov edx, eax
and edx, r12d
mov r8d, r15d
sub r8d, edx
and r8d, r12d
cmp rbp, r8
ja 0x14003091f
cmp ax, bx
jne 0x1400307e0
cmp r10, rcx
jbe 0x140030b54
imul rcx, rcx, 0x68
lea rax, [r14 + rcx]
add rax, 0x40
cmp qword [r14 + rcx + 0x40], 0
je 0x14003089a
cmp r9b, 2
je 0x1400307e0
test r9b, r9b
je 0x1400308b7
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jne 0x1400307e0
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
call fcn.140194332
mov r9d, dword [rsp + 0x34]
mov r10, qword [rsp + 0x48]
lea r11, [0x1401eaa58]
test eax, eax
jne 0x1400307e0
jmp 0x140030a47
cmp r9b, 2
jne 0x1400307e0
mov rcx, qword [rsp + 0x40]
cmp byte [rax + 8], cl
jne 0x1400307e0
jmp 0x140030a47
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jne 0x1400307e0
mov rcx, qword [rax + 8]
mov rdx, 0xffffffffffffffff
nop word cs:[rax + rax]
lea r8, [rdi + rdx]
mov eax, 1
cmp r8, 0xffffffffffffffff
je 0x140030921
mov r8, qword [rsp + 0x40]
movzx r8d, byte [r8 + rdx + 1]
movzx r9d, byte [r8 + r11]
lea r8, [rdx + 1]
cmp r9b, byte [rcx + rdx + 1]
mov rdx, r8
je 0x1400308e0
cmp r8, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x34]
jb 0x1400307e0
jmp 0x140030921
xor eax, eax
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, r13
add rax, rbp
test dil, dil
lea r11, [0x1401eaa58]
je 0x1400309f4
mov r9b, 1
test rbp, rbp
je 0x140030a40
mov r8, rbp
movabs rcx, 0x100000001b3
and r8, 7
je 0x140030a51
mov r9, rbx
mov rdx, r13
nop word cs:[rax + rax]
movzx ebx, byte [rdx]
inc rdx
xor rbx, r9
imul rbx, rcx
mov r9, rbx
dec r8
jne 0x140030980
jmp 0x140030a54
test rbp, rbp
lea r11, [0x1401eaa58]
je 0x1400306a7
xor esi, esi
lea r15, [rsp + 0x50]
lea r12, [rsp + 0x28]
nop word cs:[rax + rax]
movzx eax, byte [r13 + rsi]
movzx eax, byte [rax + r11]
mov byte [rsp + 0x28], al
mov r8d, 1
mov rcx, r15
mov rdx, r12
call fcn.1400283f0
lea r11, [0x1401eaa58]
inc rsi
cmp rbp, rsi
jne 0x1400309c0
jmp 0x1400306a7
test rbp, rbp
je 0x140030acf
mov rsi, r10
mov rdx, rbp
and rdx, 3
je 0x140030ad9
movabs r8, 0x100000001b3
mov rcx, r13
mov r9, rbx
nop dword [rax]
movzx r10d, byte [rcx]
movzx ebx, byte [r10 + r11]
xor rbx, r9
imul rbx, r8
inc rcx
mov r9, rbx
dec rdx
jne 0x140030a20
jmp 0x140030adc
xor ebp, ebp
jmp 0x1400307a3
mov eax, 1
jmp 0x140030921
mov rdx, r13
cmp rbp, 8
jb 0x140030ac7
nop word [rax + rax]
movzx r8d, byte [rdx]
xor r8, rbx
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 ebx, byte [rdx + 7]
add rdx, 8
xor rbx, r8
imul rbx, rcx
cmp rdx, rax
jne 0x140030a60
mov r9b, 1
jmp 0x1400307a3
xor ebp, ebp
xor r9d, r9d
jmp 0x1400307a3
mov rcx, r13
cmp rbp, 4
jae 0x140030aed
xor r9d, r9d
mov r10, rsi
jmp 0x1400307a3
movabs rdx, 0x100000001b3
mov r10, rsi
nop word [rax + rax]
movzx r8d, byte [rcx]
movzx r8d, byte [r8 + r11]
xor r8, rbx
imul r8, rdx
movzx r9d, byte [rcx + 1]
movzx r9d, byte [r9 + r11]
xor r9, r8
imul r9, rdx
movzx r8d, byte [rcx + 2]
movzx r8d, byte [r8 + r11]
xor r8, r9
imul r8, rdx
movzx r9d, byte [rcx + 3]
movzx ebx, byte [r9 + r11]
xor rbx, r8
imul rbx, rdx
add rcx, 4
xor r9d, r9d
cmp rcx, rax
jne 0x140030b00
jmp 0x1400307a3
lea r8, [0x1401ea7e8]
mov rdx, r10
call fcn.1401948c0
ud2