Function at 0x14004cb50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov rax, qword [rcx + 0x10]
mov rdi, rdx
movsxd rcx, dword [rcx + 0x1c]
shl rcx, 4
add rcx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
cmp rax, rcx
je 0x14004cde3
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop dword [rax]
mov r9d, dword [rax]
movsxd r14, dword [rax + 4]
mov r13d, dword [rax + 8]
mov eax, dword [rax + 0xc]
add eax, r14d
mov dword [rsp + 0x88], r9d
mov dword [rsp + 0x80], eax
cmp r14d, eax
jge 0x14004cda9
mov r12, r14
nop dword [rax]
mov r11, qword [rdi]
mov eax, r14d
sub eax, dword [rdi + 0x18]
mov esi, r9d
mov r10, qword [rdi + 8]
mov r15d, r13d
sub esi, dword [rdi + 0x14]
movsxd rdx, dword [r11 + 0x14]
movsxd rbp, eax
imul rdx, r12
add rdx, qword [r11]
mov qword [rdi + 0x20], rdx
movsxd rax, dword [r10 + 0x14]
imul rbp, rax
add rbp, qword [r10]
mov qword [rdi + 0x28], rbp
movsxd r8, dword [r11 + 0x18]
mov eax, r8d
imul eax, r9d
movsxd rbx, eax
add rbx, rdx
cmp dword [rdi + 0x10], 0xfe
jge 0x14004cd13
nop word [rax + rax]
mov rax, qword [rdi + 8]
mov ecx, esi
mov r9d, dword [rbx]
inc esi
dec r15d
imul ecx, dword [rax + 0x18]
movsxd rdx, ecx
mov ecx, 0x100
add rdx, qword [rdi + 0x28]
movzx r11d, byte [rdx + 1]
movzx r10d, byte [rdx + 2]
or r11d, 0xff0000
imul r11d, dword [rdi + 0x10]
shl r10d, 0x10
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub ecx, eax
movzx eax, byte [rdx]
or r10d, eax
mov edx, 0x100
imul r10d, dword [rdi + 0x10]
mov eax, r9d
and eax, 0xff00ff
shr r9d, 8
imul eax, ecx
and r9d, 0xff00ff
imul r9d, ecx
mov ecx, 0x100
shr r10d, 8
and r10d, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r11d, r9d
mov eax, r11d
shl r11d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl edx, 8
shr eax, 8
or edx, r11d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r10d
and ecx, 0xff00ff
xor ecx, edx
mov dword [rbx], ecx
add rbx, r8
test r15d, r15d
jg 0x14004cc30
jmp 0x14004cd88
movsxd rcx, dword [r10 + 0x18]
mov r9d, r13d
mov eax, ecx
imul eax, esi
cdqe
add rax, rbp
cmp r8d, ecx
jne 0x14004cd4b
cmp dword [r10 + 0x10], 1
jne 0x14004cd4b
cmp dword [r11 + 0x10], 1
jne 0x14004cd4b
imul ecx, r13d
mov rdx, rax
movsxd r8, ecx
mov rcx, rbx
call fcn.140279770
jmp 0x14004cd88
mov r10, r8
mov r11, rcx
movzx r8d, word [rax]
dec r9d
movzx edx, byte [rax + 2]
add rax, r11
or edx, 0xffffff00
mov word [rsp + 0x70], r8w
movzx ecx, byte [rsp + 0x71]
shl edx, 8
or edx, ecx
movzx ecx, r8b
shl edx, 8
or edx, ecx
mov dword [rbx], edx
add rbx, r10
test r9d, r9d
jg 0x14004cd51
mov r9d, dword [rsp + 0x88]
inc r14d
inc r12
cmp r14d, dword [rsp + 0x80]
jl 0x14004cbd0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
add rax, 0x10
mov qword [rsp + 0x20], rax
cmp rax, rcx
jne 0x14004cba0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret