Function at 0x2a2661040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x2a2661392
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xb0], rsi
mov byte [rsp + 0xb8], r8b
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xa0], rcx
test byte [rax], al
mov rdx, rsi
mov r9, rax
mov r10d, 0xff
xor r11d, r11d
xor r12d, r12d
mov r13, rdx
nop
jmp 0x2a26610b0
mov rsi, r9
mov r12, r15
mov r9, qword [rsp + 0x90]
cmp rcx, rsi
jle 0x2a2661272
movzx r15d, byte [rbx + rsi]
mov qword [rsp + 0x68], r15
and r15d, 0xc0
lea r9, [rsi + 1]
test r15, r15
jne 0x2a2661120
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov r15, qword [rsp + 0x68]
test r15, r15
je 0x2a266118d
lea r8, [rsi + r15]
lea r8, [r8 + 1]
cmp rcx, r8
jl 0x2a2661176
sub rdi, rsi
lea rsi, [rdi - 1]
neg rsi
sar rsi, 0x3f
and r9, rsi
add r9, rbx
xor esi, esi
jmp 0x2a266128c
cmp r15, 0xc0
jne 0x2a266125b
test r8b, r8b
je 0x2a2661244
cmp rcx, r9
jle 0x2a266122d
lea r9, [rsi + 2]
lea r15, [r12 + 1]
movzx esi, byte [rsi + rbx + 1]
test r12, r12
cmove r13, r9
cmp r15, 0xa
jg 0x2a2661216
mov r9, qword [rsp + 0x68]
xor r9, 0xc0
shl r9, 8
or r9, rsi
jmp 0x2a26610a2
mov rbx, qword [0x2a29fa4d0]
mov rcx, qword [0x2a29fa4d8]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
test r11, r11
jne 0x2a26611d3
test r10, r10
jne 0x2a26611ca
mov qword [rsp + 0x60], r9
mov ebx, 1
mov rcx, r10
mov rdi, rbx
lea rsi, [0x2a27ecd00]
call fcn.2a25d46e0
mov rdx, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x60]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov byte [rax], 0x2e
mov r11d, 1
cmp r11, 0xfe
jle 0x2a26611f3
mov rbx, qword [0x2a29fa550]
mov rcx, qword [0x2a29fa558]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rdx, qword [rsp + 0x90]
mov byte [rdx + 0xff], r11b
test r12, r12
cmove r13, r9
mov rax, r13
xor ebx, ebx
xor ecx, ecx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rbx, qword [0x2a29fa4f0]
mov rcx, qword [0x2a29fa4f8]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rbx, qword [0x2a29fa500]
mov rcx, qword [0x2a29fa508]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rbx, qword [0x2a29fa5e0]
mov rcx, qword [0x2a29fa5e8]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rbx, qword [0x2a29fa4e0]
mov rcx, qword [0x2a29fa4e8]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rbx, qword [0x2a29fa4c0]
mov rcx, qword [0x2a29fa4c8]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
inc rsi
cmp rsi, r15
jge 0x2a26612b3
movzx edi, byte [r9 + rsi]
cmp dil, 0x2e
jne 0x2a2661289
mov rbx, qword [0x2a29fa510]
mov rcx, qword [0x2a29fa518]
mov rax, rdx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov qword [rsp + 0x60], r8
lea rsi, [r11 + r15]
nop dword [rax]
cmp r10, rsi
jae 0x2a26612fa
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x50], r11
mov rbx, rsi
mov rcx, r10
mov rdi, r15
lea rsi, [0x2a27ecd00]
nop
call fcn.2a25d46e0
mov r9, qword [rsp + 0x78]
mov r11, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
mov r10, rcx
mov rsi, rbx
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rax
lea rdx, [rax + r11]
mov rbx, r9
mov rcx, r15
mov rax, rdx
call fcn.2a25f19c0
mov rbx, qword [rsp + 0x68]
inc rbx
mov rcx, qword [rsp + 0x58]
cmp rcx, rbx
jb 0x2a2661334
mov rax, qword [rsp + 0x70]
jmp 0x2a266134a
mov rax, qword [rsp + 0x70]
mov edi, 1
lea rsi, [0x2a27ecd00]
call fcn.2a25d46e0
mov byte [rbx + rax - 1], 0x2e
mov rdx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
movzx r8d, byte [rsp + 0xb8]
mov r9, qword [rsp + 0x60]
mov r10, rcx
mov r11, rbx
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
jmp 0x2a26610a2
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x30], r8b
call fcn.2a25eee80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movzx r8d, byte [rsp + 0x30]
jmp fcn.2a2661040