Function at 0x1800107a0
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]
cmp ebx, 0x7fffff
ja 0x1800107ee
test edx, edx
mov ebx, 0xffffff82
cmove ebx, edx
jmp 0x1800107fb
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 0x18001083d
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
cmp rdx, rdi
jge 0x18001084f
mov qword [r12], r15
mov dword [r12 + 8], 0x84
jmp 0x180010a46
shr ebx, 0x1f
add bl, bl
add bl, 0x2b
cmp eax, 5
ja 0x1800108c9
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
test eax, eax
je 0x180010961
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 0x180010966
add r13, 3
jmp 0x1800109c9
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 0x1800109c9
mov esi, eax
mov rcx, r13
mov dl, 0x30
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
add r13, rsi
jmp 0x1800109c9
inc r13
jmp 0x1800109c9
mov edx, edi
shr edx, 0x10
and edx, 0xf
movzx edx, byte [rdx + rcx]
mov byte [r13 + 3], dl
cmp eax, 2
jne 0x180010981
add r13, 4
jmp 0x1800109c9
mov edx, edi
shr edx, 0xc
and edx, 0xf
movzx edx, byte [rdx + rcx]
mov byte [r13 + 4], dl
cmp eax, 3
jne 0x18001099c
add r13, 5
jmp 0x1800109c9
mov edx, edi
shr edx, 8
and edx, 0xf
movzx edx, byte [rdx + rcx]
mov byte [r13 + 5], dl
cmp eax, 4
jne 0x1800109b7
add r13, 6
jmp 0x1800109c9
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 0x1800109e0
add r13, 2
mov r8, rbx
neg r8
mov rcx, r15
sub rcx, r13
mov eax, 0x84
cmp rcx, r8
jl 0x180010a3d
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