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

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
test rdi, rdi
je 0x18003faf7
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x18003faf7
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x18003fa93
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x1800404f0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rdx, qword [rcx]
test rdx, rdx
je 0x18003fac5
mov qword [rsp + 0x38], rbx
nop
mov rbx, qword [rdx]
call fcn.1800427b0
mov rdx, rbx
test rbx, rbx
jne 0x18003fab0
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.180042090
add rsp, 0x20
pop rdi
ret
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, r8
je 0x1800406e6
cmp qword [rdx + 0x28], 0x10
lea r8, [rdx + 0x10]
mov rax, qword [rcx + 8]
mov r9, qword [r8 + 0x10]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov r14, qword [rcx + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x68], rax
jb 0x180040550
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs r10, 0x100000001b3
test r9, r9
je 0x180040584
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x180040570
mov r15, qword [rdi + 0x30]
mov rbx, qword [rsi]
and r15, rdx
shl r15, 4
mov rdx, rsi
add r15, r14
mov r13, qword [r15]
mov r12, qword [r15 + 8]
call fcn.1800427b0
dec qword [rdi + 0x10]
cmp rsi, r12
je 0x1800405d1
nop dword [rax]
mov r14, rbx
cmp rbx, rbp
je 0x1800405e8
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.1800427b0
dec qword [rdi + 0x10]
cmp r14, r12
jne 0x1800405b0
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
cmp r13, rsi
mov r13, qword [rsp + 0x68]
jne 0x180040601
mov qword [r15], r12
mov rax, r12
jmp 0x180040604
cmp r13, rsi
jne 0x1800405f0
mov qword [r15], rbx
mov rax, qword [rsp + 0x68]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x1800406cd
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x1800406c5
nop dword [rax]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0x10
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
mov rsi, rbx
jb 0x180040635
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x180040669
movabs r13, 0x100000001b3
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r13
cmp rcx, r9
jb 0x180040650
mov r13, qword [rsp + 0x68]
mov r15, qword [rdi + 0x30]
and r15, rdx
mov rdx, rbx
mov rbx, qword [rbx]
shl r15, 4
add r15, r14
mov r14, qword [r15 + 8]
call fcn.1800427b0
dec qword [rdi + 0x10]
cmp rsi, r14
je 0x1800406ac
nop
mov rsi, rbx
cmp rbx, rbp
je 0x1800406c2
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.1800427b0
dec qword [rdi + 0x10]
cmp rsi, r14
jne 0x180040690
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
je 0x1800406c5
mov r14, qword [rsp + 0x78]
jmp 0x180040620
mov qword [r15], rbx
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rax, rbp
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret