Function at 0x18001be80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001c127
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [r13 + 8]
lea r15, [r13 + 0x18]
lea rdx, [rdi + rdi]
mov r8, rbx
mov rcx, r15
call fcn.18001bbc0
lea rax, [rdi - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rdi
mov qword [rsp + 0x58], r13
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x18001c101
movabs rax, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop
mov rdx, qword [rdx]
mov r14, qword [rcx + 0x20]
lea r10, [rcx + 0x10]
mov r12, qword [rcx + 0x28]
cmp r12, 8
jb 0x18001bf39
mov r10, qword [rcx + 0x10]
mov r9, rax
lea r11, [r14 + r14]
xor r8d, r8d
test r11, r11
je 0x18001bf64
nop dword [rax + rax]
movzx eax, byte [r8 + r10]
xor r9, rax
imul r9, rdi
inc r8
cmp r8, r11
jb 0x18001bf50
mov r8, qword [r13 + 0x30]
and r8, r9
shl r8, 4
mov r15, qword [r15]
add r15, r8
mov rbp, qword [r15]
cmp rbp, rbx
jne 0x18001bf89
mov qword [r15], rcx
mov qword [r15 + 8], rcx
jmp 0x18001c0e7
mov rax, qword [r15 + 8]
lea r8, [rax + 0x10]
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x18001bf9f
mov r8, qword [r8]
lea rdi, [rcx + 0x10]
cmp r12, 8
jb 0x18001bfad
mov rdi, qword [rcx + 0x10]
cmp r14, r9
jne 0x18001bff5
mov r11, r14
test r14, r14
je 0x18001c064
movzx r9d, word [rdi]
movzx r10d, word [r8]
cmp r9w, r10w
jb 0x18001bff5
sub rdi, r8
cmp r9w, r10w
ja 0x18001bff5
cmp r11, 1
je 0x18001c064
dec r11
add r8, 2
movzx r9d, word [r8 + rdi]
movzx r10d, word [r8]
cmp r9w, r10w
jae 0x18001bfd3
cmp rbp, rax
je 0x18001c0b9
mov rax, qword [rax + 8]
lea r8, [rax + 0x10]
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x18001c014
mov r8, qword [r8]
lea rdi, [rcx + 0x10]
cmp r12, 8
jb 0x18001c022
mov rdi, qword [rcx + 0x10]
cmp r14, r9
jne 0x18001bff5
mov r11, r14
test r14, r14
je 0x18001c093
movzx r9d, word [rdi]
movzx r10d, word [r8]
cmp r9w, r10w
jb 0x18001bff5
sub rdi, r8
cmp r9w, r10w
ja 0x18001bff5
cmp r11, 1
je 0x18001c093
dec r11
add r8, 2
movzx r9d, word [r8 + rdi]
movzx r10d, word [r8]
cmp r9w, r10w
jae 0x18001c044
jmp 0x18001bff5
mov rax, qword [rax]
cmp rax, rcx
je 0x18001c08d
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r15 + 8], rcx
jmp 0x18001c0dd
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
jmp 0x18001c0dd
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r15], rcx
movabs rdi, 0x100000001b3
mov rcx, rdx
cmp rdx, rbx
lea r15, [r13 + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x18001bf20
mov qword [rsp + 0x58], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x180074f20]
call fcn.180023980
int3