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

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, qword [rcx]
test rsi, rsi
je 0x180041746
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180041746
mov rax, qword [rsi + 0x38]
shr rax, 3
mov qword [rsp + 0x58], r14
cmp rax, rcx
jbe 0x1800416bd
mov rdx, qword [rsi + 8]
mov rcx, rsi
mov r8, rdx
mov rdx, qword [rdx]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
jmp 0x180051040
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x50], rdi
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rdi, qword [rcx]
test rdi, rdi
je 0x18004170a
mov qword [rsp + 0x48], rbx
nop
mov rbx, qword [rdi]
lea rdx, [rdi + 0x10]
lea rcx, [rsi + 8]
call fcn.18003ebf0
mov edx, 0x58
mov rcx, rdi
call fcn.180052484
mov rdi, rbx
test rbx, rbx
jne 0x1800416e0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsi + 8]
lea r8, [rsp + 0x20]
mov qword [rax], rax
mov rax, qword [rsi + 8]
mov qword [rax + 8], rax
mov qword [rsi + 0x10], 0
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.18003f5d0
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rax, rsp
push rbp
push r15
sub rsp, 0x68
mov qword [rsp + 0x38], rcx
mov rbp, r8
mov r15, rdx
mov r10, rcx
cmp rdx, r8
je 0x180051252
cmp qword [rdx + 0x28], 0xf
lea r8, [rdx + 0x10]
mov r11, qword [rcx + 0x18]
mov r9, qword [r8 + 0x10]
mov qword [rax + 0x10], rbx
mov rbx, rdx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
lea r14, [rcx + 8]
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], r11
jbe 0x1800510ac
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
test r9, r9
je 0x1800510e4
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, rdi
cmp rcx, r9
jb 0x1800510d0
mov r12, qword [r10 + 0x30]
and r12, rdx
shl r12, 4
add r12, r11
mov rax, qword [r12 + 8]
mov r13, qword [r12]
mov qword [rsp + 0x30], rax
mov rdi, rbx
mov rsi, rbx
mov rbx, qword [rbx]
mov rcx, r14
lea rdx, [rdi + 0x10]
call fcn.18003ebf0
mov edx, 0x58
mov rcx, rdi
call fcn.180052484
dec qword [r14 + 8]
cmp rdi, qword [rsp + 0x30]
je 0x18005114c
cmp rbx, rbp
jne 0x180051100
cmp r13, r15
jne 0x18005113b
mov qword [r12], rbx
mov rax, qword [rsp + 0x20]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x18005122b
cmp r13, r15
mov r13, qword [rsp + 0x20]
jne 0x180051161
mov rax, qword [rsp + 0x28]
mov qword [r12], rax
jmp 0x180051164
mov rax, r13
mov qword [r12 + 8], rax
cmp rbx, rbp
je 0x180051223
nop dword [rax]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
jbe 0x180051192
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x1800511c9
movabs r13, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r13
cmp rdx, r9
jb 0x1800511b0
mov r13, qword [rsp + 0x20]
mov rax, qword [rsp + 0x38]
mov r15, qword [rax + 0x30]
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x40]
mov r12, qword [r15 + 8]
nop dword [rax]
nop word [rax + rax]
mov rdi, rbx
mov rsi, rbx
mov rbx, qword [rbx]
mov rcx, r14
lea rdx, [rdi + 0x10]
call fcn.18003ebf0
mov edx, 0x58
mov rcx, rdi
call fcn.180052484
dec qword [r14 + 8]
cmp rdi, r12
je 0x18005125d
cmp rbx, rbp
jne 0x1800511f0
mov qword [r15], rbx
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x50]
mov rax, rbp
add rsp, 0x68
pop r15
pop rbp
ret
mov rcx, qword [rsp + 0x28]
mov qword [r15], rcx
mov qword [r15 + 8], rcx
cmp rbx, rbp
jne 0x180051180
jmp 0x180051223