Function at 0x18007a5e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14, qword [rcx + 0x490]
mov r15, r9
mov r13d, r8d
mov r12d, edx
mov rsi, rcx
test r14, r14
je 0x18007a71b
mov dword [rsp + 0x30], edx
lea r10, [rsp + 0x30]
mov eax, 0x1505
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r10]
lea rcx, [rsp + 0x34]
imul eax, eax, 0x21
inc r10
xor eax, edx
cmp r10, rcx
jb 0x18007a630
xor edx, edx
div dword [r14 + 0x20]
mov rax, qword [r14 + 0x18]
movsxd rcx, edx
movsxd rdx, dword [rax + rcx*4]
cmp edx, 0xffffffff
je 0x18007a845
mov rax, qword [r14]
lea rcx, [rdx + rdx*2]
mov edi, dword [rax + rcx*4 + 8]
lea rbx, [rax + rcx*4]
test rbx, rbx
je 0x18007a845
lea rbp, [0x18010c120]
nop
mov rax, qword [rsi + 0xcd8]
lea r8, [rsp + 0x40]
mov edx, dword [rbx]
lea rcx, [rsi + 0xcd8]
mov rax, qword [rax + 0xa8]
call qword [0x180102408]
mov r9d, eax
test eax, eax
js 0x18007a84a
mov r8, qword [rsp + 0x40]
movzx ecx, word [r8]
cmp ecx, r13d
jne 0x18007a6e7
mov rcx, qword [rsi + 0x260]
cmp byte [rcx + 8], 2
movzx edx, byte [rcx + 7]
jne 0x18007a6d3
movzx ecx, word [rdx + r8]
jmp 0x18007a6d7
mov ecx, dword [rdx + r8]
mov eax, ecx
shr ecx, 1
and eax, 1
or ecx, dword [rbp + rax*4]
cmp ecx, r12d
je 0x18007a707
cmp edi, 0xffffffff
je 0x18007a845
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [r14]
mov edi, dword [rax + rcx*4 + 8]
lea rbx, [rax + rcx*4]
jmp 0x18007a680
mov eax, dword [rbx]
mov rcx, qword [rsp + 0xa8]
mov dword [rcx], eax
mov eax, r9d
jmp 0x18007a84a
mov eax, dword [rcx + 0x18]
lea rbp, [0x18010c120]
shr rax, 0x18
test al, 1
je 0x18007a7bf
mov rcx, qword [rcx + 0x260]
movzx eax, word [rcx + 6]
mov word [rsp + 0x90], ax
movzx eax, byte [rcx + 8]
mov byte [rsp + 0x92], al
mov eax, r12d
and eax, 0xff000000
xor edx, edx
mov ecx, edx
nop dword [rax + rax]
cmp dword [rbp + rcx*4], eax
je 0x18007a771
inc rcx
cmp rcx, 2
jb 0x18007a760
jmp 0x18007a77e
mov eax, r12d
and eax, 0xffffff
lea edx, [rax + rax]
or edx, ecx
lea rax, [rsp + 0x38]
mov r9d, edx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x90]
lea rax, [rsp + 0x3c]
mov edx, 0x18
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18006f610
test eax, eax
js 0x18007a84a
mov ebx, dword [rsp + 0x38]
mov rcx, rsi
mov edi, dword [rsp + 0x3c]
jmp 0x18007a7cc
mov edi, dword [rcx + 0x80]
mov ebx, 1
inc edi
mov eax, 0x260
lea r14, [rcx + rax]
cmp ebx, edi
jae 0x18007a845
nop dword [rax]
mov rax, qword [rsi + 0xcd8]
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, [rsi + 0xcd8]
mov rax, qword [rax + 0xa8]
call qword [0x180102408]
mov r9d, eax
test eax, eax
js 0x18007a84a
mov r8, qword [rsp + 0x40]
movzx ecx, word [r8]
cmp ecx, r13d
jne 0x18007a83f
mov rcx, qword [r14]
cmp byte [rcx + 8], 2
movzx edx, byte [rcx + 7]
jne 0x18007a82b
movzx ecx, word [rdx + r8]
jmp 0x18007a82f
mov ecx, dword [rdx + r8]
mov eax, ecx
shr ecx, 1
and eax, 1
or ecx, dword [rbp + rax*4]
cmp ecx, r12d
je 0x18007a862
inc ebx
cmp ebx, edi
jb 0x18007a7e0
mov eax, 0x80131130
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [r15], ebx
mov eax, r9d
jmp 0x18007a84a