Function at 0x140070130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, rdx
mov qword [rsp + 0x20], rdx
mov rsi, rcx
lea rdx, [rsp + 0x28]
xor edi, edi
mov rcx, rax
movzx r12d, r9b
mov dword [rsp + 0x28], edi
movzx r13d, r8b
call fcn.14006d480
mov ebx, dword [rsp + 0x28]
lea r15, [rsi + 0x18]
test al, al
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
mov rax, qword [rsi]
cmove ebx, edi
xor edx, edx
mov dword [rsp + 0x28], ebx
lea rdi, [rsi + 0x48]
mov ecx, dword [rax + 0x64]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov r14d, ecx
mov r8d, ecx
mov rcx, qword [rsi + 0x78]
mov qword [rsp + 0x60], r14
call fcn.140145ad0
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
mov r8d, dword [rax + 0x60]
call fcn.140070590
mov rcx, qword [rsi + 0x28]
movzx ebp, al
cmp qword [rsi + 0x30], rcx
je 0x140070401
test ebx, ebx
je 0x140070401
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.14006d480
test al, al
mov ecx, 0
mov eax, dword [rsp + 0x28]
mov r8, r14
cmove eax, ecx
mov rcx, qword [rsi + 0x78]
xor edx, edx
mov dword [rsp + 0x28], eax
call fcn.140145ad0
mov rax, qword [rdi + 0x10]
xor bpl, bpl
mov qword [rdi + 0x18], rax
mov r14, qword [r15 + 0x10]
cmp r14, qword [r15 + 0x18]
je 0x1400703dc
nop word [rax + rax]
mov rcx, qword [rsi]
mov r9d, dword [r14]
add r9, r9
mov r11, qword [rcx + 0x10]
mov eax, dword [r11 + r9*8 + 0xc]
cmp eax, ebx
je 0x1400702ac
cmp eax, 0xffffffff
je 0x1400702ac
cmp eax, 0xfffffffe
jne 0x140070307
mov edx, dword [r11 + r9*8 + 8]
mov r10, qword [rcx + 0x40]
lea rcx, [rdx + rdx*2]
mov r8d, dword [r10 + rcx*4]
shr r8d, 0x1f
not r8b
and r8b, 1
cmp edx, 0xffffffff
je 0x1400702a3
nop word [rax + rax]
mov eax, edx
lea rcx, [rax + rax*2]
mov eax, dword [r10 + rcx*4]
btr eax, 0x1f
cmp ebx, eax
jb 0x140070299
cmp ebx, dword [r10 + rcx*4 + 4]
jbe 0x1400702a7
mov edx, dword [r10 + rcx*4 + 8]
cmp edx, 0xffffffff
jne 0x140070280
xor r8b, 1
test r8b, r8b
je 0x140070307
mov r8d, dword [r11 + r9*8]
mov r10d, r8d
mov ecx, r8d
shl r10, 4
add r10, r11
cmp dword [r10 + 4], 0xffffffff
je 0x14007034e
mov r8d, dword [r10]
mov rdx, rdi
mov rcx, rsi
call fcn.140070590
mov r8d, dword [r10 + 4]
mov rdx, rdi
mov rcx, rsi
movzx r11d, al
call fcn.140070590
test al, al
jne 0x1400702f6
test r11b, r11b
je 0x14007038c
mov bpl, 1
test r12b, r12b
jne 0x140070307
test bpl, bpl
jne 0x1400703fd
test r13b, r13b
jne 0x1400703ce
mov rax, qword [rsi]
mov r8d, dword [rax + 0x60]
mov r10d, r8d
mov ecx, r8d
shl r10, 4
add r10, qword [rax + 0x10]
cmp dword [r10 + 4], 0xffffffff
je 0x14007039a
mov r8d, dword [r10]
mov rdx, rdi
mov rcx, rsi
call fcn.140070590
mov r8d, dword [r10 + 4]
mov rdx, rdi
mov rcx, rsi
call fcn.140070590
jmp 0x1400703ce
mov rax, qword [rsi + 0x78]
mov edx, 1
shr rcx, 5
lea r9, [rax + rcx*4]
mov ecx, r8d
mov eax, dword [r9]
and ecx, 0x1f
shl edx, cl
test edx, eax
jne 0x140070382
or eax, edx
mov dword [r9], eax
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 4]
mov qword [rdi + 0x18], rax
mov dword [rcx], r8d
cmp dword [r10], 0xffffffff
je 0x1400702f6
test bpl, bpl
jne 0x1400702f6
jmp 0x1400702f9
mov rax, qword [rsi + 0x78]
mov edx, 1
shr rcx, 5
lea r9, [rax + rcx*4]
mov ecx, r8d
mov eax, dword [r9]
and ecx, 0x1f
shl edx, cl
test edx, eax
jne 0x1400703ce
or eax, edx
mov dword [r9], eax
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 4]
mov qword [rdi + 0x18], rax
mov dword [rcx], r8d
add r14, 4
cmp r14, qword [r15 + 0x18]
jne 0x140070230
mov rax, r15
mov r15, rdi
mov rdi, rax
mov rax, qword [r15 + 0x10]
cmp qword [r15 + 0x18], rax
je 0x140070401
mov ebx, dword [rsp + 0x28]
mov r14, qword [rsp + 0x60]
jmp 0x1400701d7
mov al, 1
jmp 0x140070405
movzx eax, bpl
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret