Function at 0x14002fd90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x40
movzx r10d, byte [rcx + 0x169]
mov rax, qword [rcx + 0xb8]
mov r11, qword [rcx + 0x18]
mov rbp, qword [rax + r10*8]
mov rbx, r10
mov r12, rcx
imul r10, r10, 0x44
lea rdi, [rbp + 0x28]
imul rbx, rbx, 0x3c
add rbx, qword [rcx + 0x140]
mov eax, dword [rbx]
cmp eax, 4
jne 0x14002ffbe
mov eax, dword [r10 + r11 + 0x3d0]
mov r9d, 4
lea r8, str.pLtr__uiLtrMarkState___d__pLtr.iCurLtrIdx___d___pLtr__iLtrMarkFbFrameNum___d__pCtx__iFrameNum___d
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 4]
lea edx, [r9 - 2]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x20], eax
call fcn.1400254a0
movzx r9d, byte [rbp + 0x141]
xor r13d, r13d
mov edx, r13d
test r9d, r9d
jle 0x14002ffb3
mov r8d, dword [rbx + 4]
mov rcx, rdi
nop dword [rax]
mov rax, qword [rcx]
cmp dword [rax + 0x40], r8d
jne 0x14002fe3f
cmp byte [rax + 0x73], 1
jne 0x14002fe55
inc edx
add rcx, 8
cmp edx, r9d
jl 0x14002fe30
mov dword [rbx], 3
jmp 0x1400300b4
movsxd rcx, edx
mov r10d, r13d
mov r11, r13
mov rax, qword [rdi + rcx*8]
mov byte [rax + 0x73], 1
mov rax, qword [rdi + rcx*8]
mov rcx, qword [r12 + 0x1a0]
movzx eax, byte [rax + 0x6c]
mov byte [rcx + 0xf8], al
mov eax, dword [rbx + 4]
mov dword [rbx + 0xc], eax
mov dword [rbx + 8], eax
mov dword [rbx + 0x10], eax
cmp byte [rbp + 0x141], r10b
jbe 0x14002ff79
mov qword [rsp + 0x60], rsi
mov esi, 0x28
sub rsi, rdi
nop word [rax + rax]
mov rcx, qword [rdi]
mov eax, dword [rbx + 0x1c]
cmp dword [rcx + 0x6c], eax
je 0x14002ff5a
mov rax, qword [rcx + 0x80]
mov dword [rcx + 0x38], 0xffffffff
mov dword [rcx + 0x40], 0xffffffff
mov dword [rcx + 0x6c], 0xffffffff
mov byte [rcx + 0x75], 0xff
mov byte [rcx + 0x74], 0xff
mov byte [rcx + 0x71], r13b
mov byte [rcx + 0x73], 2
mov dword [rcx + 0x68], 0xffffffff
mov byte [rcx + 0x70], r13b
test rax, rax
je 0x14002feff
mov byte [rax + 0x48], r13b
mov rax, qword [r12 + 0xb8]
movzx ecx, byte [r12 + 0x169]
mov r8d, r10d
mov rdx, qword [rax + rcx*8]
mov r9, r11
movzx eax, byte [rdx + 0x141]
dec eax
cmp r10d, eax
jge 0x14002ff4f
lea rcx, [rsi + rdi]
add rcx, rdx
nop
mov rax, qword [rcx + 8]
inc r8d
inc r9
mov qword [rcx], rax
movzx eax, byte [rdx + 0x141]
add rcx, 8
dec eax
cmp r8d, eax
jl 0x14002ff30
mov qword [rdx + r9*8 + 0x28], r13
dec byte [rdx + 0x141]
movzx eax, byte [rbp + 0x141]
inc r10d
inc r11
add rdi, 8
cmp r10d, eax
jl 0x14002feb0
mov rsi, qword [rsp + 0x60]
mov eax, dword [rbx + 0x1c]
inc dword [rbx + 0x18]
lea r8, str.LTR_mark_mode__d
inc eax
mov rcx, r12
cdq
and eax, 1
xor eax, edx
sub eax, edx
cmp dword [rbx + 0x18], 2
mov edx, 2
setge r13b
mov dword [rbx + 0x1c], eax
mov r9d, r13d
mov dword [rbx + 0x14], r13d
call fcn.1400254a0
mov byte [rbx + 0x39], 1
mov dword [rbx], 3
jmp 0x1400300b4
cmp eax, 5
jne 0x1400300b4
movzx r8d, byte [rbp + 0x141]
xor r13d, r13d
mov edx, r13d
test r8d, r8d
jle 0x14003009b
mov r9d, dword [rbx + 4]
mov rcx, rdi
mov rax, qword [rcx]
cmp dword [rax + 0x40], r9d
je 0x14002fffe
inc edx
add rcx, 8
cmp edx, r8d
jl 0x14002ffe5
jmp 0x14003009b
movsxd r8, edx
mov rax, qword [rdi + r8*8]
mov rcx, qword [rax + 0x80]
mov dword [rax + 0x38], 0xffffffff
mov dword [rax + 0x40], 0xffffffff
mov dword [rax + 0x6c], 0xffffffff
mov byte [rax + 0x75], 0xff
mov byte [rax + 0x74], 0xff
mov byte [rax + 0x71], r13b
mov byte [rax + 0x73], 2
mov dword [rax + 0x68], 0xffffffff
mov byte [rax + 0x70], r13b
test rcx, rcx
je 0x140030045
mov byte [rcx + 0x48], r13b
mov rax, qword [r12 + 0xb8]
movzx ecx, byte [r12 + 0x169]
mov r9, qword [rax + rcx*8]
movzx eax, byte [r9 + 0x141]
dec eax
cmp edx, eax
jge 0x14003008c
lea r8, [r9 + r8*8 + 0x28]
nop dword [rax]
mov rax, qword [r8 + 8]
inc edx
add r8, 8
mov qword [r8 - 8], rax
movzx eax, byte [r9 + 0x141]
dec eax
cmp edx, eax
jl 0x140030070
movsxd rax, edx
mov qword [r9 + rax*8 + 0x28], r13
dec byte [r9 + 0x141]
mov dword [rbx], 3
mov byte [rbx + 0x39], 1
cmp dword [rbx + 0x18], r13d
jne 0x1400300b4
mov byte [r10 + r11 + 0x3cc], 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret