Function at 0x1800121c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, r8
mov r13, rdx
mov r12, rcx
mov ecx, dword [rsp + 0xb0]
test ecx, ecx
mov eax, 6
cmovns eax, ecx
vmovd ebx, xmm3
mov edx, ebx
and edx, 0x7fffff
lea r8d, [rdx + rdx]
nop word [rax + rax]
cmp ebx, 0x7fffff
ja 0x180012214
test edx, edx
mov ebx, 0xffffff82
cmove ebx, edx
jmp 0x180012221
shr ebx, 0x17
or r8d, 0x1000000
add ebx, 0xffffff81
mov r14d, ebx
neg r14d
cmovs r14d, ebx
mov rdx, r15
sub rdx, r13
mov esi, eax
sub rdx, rsi
jl 0x180012265
xor esi, esi
cmp r14d, 0x64
setb sil
xor rsi, 3
cmp r14d, 0xa
mov edi, 1
cmovae rdi, rsi
cmp eax, 1
sbb rdi, 0
add rdi, 4
nop
cmp rdx, rdi
jge 0x180012277
mov qword [r12], r15
mov dword [r12 + 8], 0x84
jmp 0x180012476
shr ebx, 0x1f
add bl, bl
add bl, 0x2b
nop
cmp eax, 5
ja 0x1800122f6
lea edx, [rax*4]
lea edi, [r8 + r8]
lea esi, [r8 + r8]
dec esi
or esi, r8d
and esi, edi
mov dil, 0x18
sub dil, dl
mov edx, 1
shlx edi, edx, edi
and edi, esi
add edi, r8d
mov ecx, edi
shr ecx, 0x18
add cl, 0x30
mov byte [r13], cl
nop dword [rax]
test eax, eax
je 0x180012392
mov byte [r13 + 1], 0x2e
mov edx, edi
shr edx, 0x14
and edx, 0xf
lea rcx, str.0123456789abcdefghijklmnopqrstuvwxyz
movzx edx, byte [rdx + rcx]
mov byte [r13 + 2], dl
cmp eax, 1
jne 0x180012397
add r13, 3
jmp 0x1800123fd
mov edx, r8d
shr edx, 0x18
or dl, 0x30
mov byte [r13], dl
mov byte [r13 + 1], 0x2e
mov ecx, r8d
shr ecx, 0x14
and ecx, 0xf
lea rdx, str.0123456789abcdefghijklmnopqrstuvwxyz
movzx ecx, byte [rcx + rdx]
mov byte [r13 + 2], cl
mov ecx, r8d
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [r13 + 3], cl
mov ecx, r8d
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [r13 + 4], cl
mov ecx, r8d
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [r13 + 5], cl
mov ecx, r8d
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [r13 + 6], cl
and r8d, 0xf
movzx ecx, byte [r8 + rdx]
mov byte [r13 + 7], cl
add r13, 8
add eax, 0xfffffffa
je 0x1800123fd
mov esi, eax
mov rcx, r13
mov dl, 0x30
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
add r13, rsi
jmp 0x1800123fd
inc r13
jmp 0x1800123fd
mov edx, edi
shr edx, 0x10
and edx, 0xf
movzx edx, byte [rdx + rcx]
mov byte [r13 + 3], dl
cmp eax, 2
jne 0x1800123b2
add r13, 4
jmp 0x1800123fd
mov edx, edi
shr edx, 0xc
and edx, 0xf
movzx edx, byte [rdx + rcx]
mov byte [r13 + 4], dl
cmp eax, 3
jne 0x1800123cd
add r13, 5
jmp 0x1800123fd
mov edx, edi
shr edx, 8
and edx, 0xf
movzx edx, byte [rdx + rcx]
mov byte [r13 + 5], dl
nop dword [rax]
cmp eax, 4
jne 0x1800123eb
add r13, 6
jmp 0x1800123fd
shr edi, 4
and edi, 0xf
movzx eax, byte [rdi + rcx]
mov byte [r13 + 6], al
add r13, 7
mov byte [r13], 0x70
mov byte [r13 + 1], bl
xor ebx, ebx
mov eax, 0xcccccccd
nop dword [rax]
mov ecx, r14d
imul rcx, rax
shr rcx, 0x23
lea edx, [rcx + rcx]
lea edx, [rdx + rdx*4]
mov ebp, r14d
sub ebp, edx
or bpl, 0x30
mov byte [rsp + rbx + 0x3f], bpl
dec rbx
cmp r14d, 9
mov r14d, ecx
ja 0x180012410
add r13, 2
mov r8, rbx
neg r8
mov rcx, r15
sub rcx, r13
mov eax, 0x84
cmp rcx, r8
jl 0x18001246d
lea rdx, [rsp + rbx]
add rdx, 0x40
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
sub r13, rbx
xor eax, eax
mov r15, r13
mov qword [r12], r15
mov dword [r12 + 8], eax
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret