Function at 0x140002b28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
push r15
cmp byte [rdx + 0x3e], 0
mov r9, rcx
mov r14b, byte [rdx + 0x42]
mov sil, byte [rdx + 0x41]
mov r8, qword [rcx]
lea edi, [r14 + 0x48]
je 0x140002a62
test sil, sil
jne 0x14000277d
cmp dil, 4
jne 0x14000277d
xor eax, eax
jmp 0x140002a68
imul r11d, dword [rcx + 8], 0x41c64e6d
mov r13d, 0x3039
mov r15, qword [rdx + 0x4e]
mov r12d, 1
add r11d, r13d
mov ebx, r11d
shr ebx, 0x10
and bl, r12b
je 0x1400027e2
imul r11d, r11d, 0x41c64e6d
mov eax, 0xaaaaaaab
add r11d, r13d
mov r10d, r11d
mov dword [rcx + 8], r11d
ror r10d, 0x10
mul r10d
shr edx, 2
lea eax, [rdx + rdx*2]
add eax, eax
sub r10d, eax
add r10b, 2
test sil, sil
je 0x1400027d9
cmp r10b, dil
je 0x1400027a3
mov byte [r8], 0x41
add r8, r12
jmp 0x14000281a
imul r11d, r11d, 0x41c64e6d
mov eax, 0xcccccccd
add r11d, r13d
mov ecx, r11d
mov dword [r9 + 8], r11d
ror ecx, 0x10
mul ecx
shr edx, 2
lea eax, [rdx + rdx*4]
sub ecx, eax
add cl, 3
mov r10b, cl
cmp cl, 4
je 0x1400027e2
test sil, sil
jne 0x14000281a
cmp cl, dil
je 0x1400027e2
lea eax, [r10 + 0x50]
mov byte [r8], al
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
shr eax, 0x10
and al, 3
add al, r12b
je 0x1400028cc
movzx ebp, al
imul r11d, dword [r9 + 8], 0x41c64e6d
add r11d, r13d
mov dword [r9 + 8], r11d
shr r11d, 0x10
and r11b, r12b
je 0x140002862
test bl, bl
jne 0x140002867
jmp 0x14000286e
test sil, sil
je 0x14000286e
mov byte [r8], 0x41
add r8, r12
mov byte [r8], 0x81
add r8, r12
imul edx, dword [r9 + 8], 0x41c64e6d
movzx eax, r10b
movzx ecx, dil
add edx, r13d
mov dword [r9 + 8], edx
shr edx, 0x10
and dl, 7
shl dl, 3
test r11b, r11b
cmovne ecx, eax
sub dl, 0x40
add dl, cl
mov byte [r8], dl
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
ror eax, 0x10
btr eax, 0x1f
mov dword [r8], eax
add r8, 4
sub rbp, r12
jne 0x140002844
imul ecx, dword [r9 + 8], 0x41c64e6d
add ecx, r13d
imul edx, ecx, 0x41c64e6d
mov r11d, ecx
shl r11d, 0x10
shl r11, 0x10
mov eax, ecx
and rax, 0xffffffffffff0000
or r11, rax
add edx, r13d
mov dword [r9 + 8], edx
shl r11, 0x10
mov eax, edx
shr rax, 0x10
or r11, rax
shl edx, 0x10
mov eax, edx
or r11, rax
lea eax, [rsi + 0x48]
mov byte [r8], al
add r8, r12
mov byte [r8], r14b
add r8, r12
mov qword [r8], r11
add r8, 8
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
shr eax, 0x10
and al, 3
add al, r12b
je 0x140002997
movzx ecx, al
test bl, bl
je 0x14000294c
mov byte [r8], 0x41
add r8, r12
mov byte [r8], 0x81
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
shr eax, 0x10
and al, 7
shl al, 3
sub al, 0x40
add al, r10b
mov byte [r8], al
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
ror eax, 0x10
btr eax, 0x1f
mov dword [r8], eax
add r8, 4
sub rcx, r12
jne 0x140002941
lea eax, [rbx + 0x48]
xor r11, r15
mov byte [r8], al
add r8, r12
lea eax, [r10 - 0x48]
mov byte [r8], al
add r8, r12
lea eax, [rbx + 0x12]
shl al, 2
add al, sil
mov qword [r8], r11
add r8, 8
mov byte [r8], al
add r8, r12
mov al, r10b
shl al, 3
sub al, 0x40
add al, dil
mov byte [r8], 0x31
add r8, r12
mov byte [r8], al
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
shr eax, 0x10
and al, 3
add al, r12b
je 0x140002a4d
movzx ecx, al
test bl, bl
je 0x140002a02
mov byte [r8], 0x41
add r8, r12
mov byte [r8], 0x81
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
shr eax, 0x10
and al, 7
shl al, 3
sub al, 0x40
add al, r10b
mov byte [r8], al
add r8, r12
imul eax, dword [r9 + 8], 0x41c64e6d
add eax, r13d
mov dword [r9 + 8], eax
ror eax, 0x10
btr eax, 0x1f
mov dword [r8], eax
add r8, 4
sub rcx, r12
jne 0x1400029f7
test bl, bl
je 0x140002a58
mov byte [r8], 0x41
add r8, r12
add r10b, 0x58
mov byte [r8], r10b
add r8, r12
sub r8d, dword [r9]
mov eax, r8d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov al, byte [rdx + 0x42]
add al, 0x48
cmp al, 7
jbe 0x140002734
xor eax, eax
ret