Function at 0x140022a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx]
mov r12, qword [rcx + 8]
lea r15, [r12 + 1]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x140022af3
cmp rax, 1
jne 0x140022a85
xor r8d, r8d
jmp 0x140022ad7
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x14021f180]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdx + r9]
por xmm1, xmm0
movdqa xmmword [rdx + r9], xmm1
lea r8, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdx + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [rdx + r9 + 0x10], xmm1
mov r9, r8
add rcx, 0xfffffffffffffffe
jne 0x140022aa0
test al, 1
je 0x140022af3
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdx + r8]
por xmm0, xmmword [0x14021f180]
movdqa xmmword [rdx + r8], xmm0
cmp r15, 0x10
jae 0x140022b21
lea rcx, [rdx + 0x10]
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 0x28
mov qword [rbp - 0x18], rsi
test r15, r15
jne 0x140022b3b
xor eax, eax
jmp 0x140022f42
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rdx + r15], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 0x28
mov qword [rbp - 0x18], rsi
xor r14d, r14d
jmp 0x140022b66
shr rax, 0x39
lea r8, [r14 - 0x10]
and rdx, r8
mov byte [rcx + r14], al
mov rcx, qword [rsi]
mov byte [rcx + rdx + 0x10], al
lea rax, [r14 + 1]
cmp r14, r12
mov r14, rax
je 0x140022f24
mov r13, qword [rsi]
cmp byte [r13 + r14], 0x80
jne 0x140022b56
lea rax, [r14*8]
lea rax, [rax + rax*4]
sub r13, rax
lea r15, [r13 - 0x28]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, rsi
mov r8, r14
call rdi
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, rdx
and r8, rax
movdqu xmm0, xmmword [rcx + r8]
pmovmskb r9d, xmm0
mov r10, r8
test r9d, r9d
jne 0x140022bea
mov r11d, 0x10
mov r10, r8
nop word cs:[rax + rax]
add r10, r11
and r10, rdx
movdqu xmm0, xmmword [rcx + r10]
pmovmskb r9d, xmm0
add r11, 0x10
test r9d, r9d
je 0x140022bd0
tzcnt r9d, r9d
add r9, r10
and r9, rdx
cmp byte [rcx + r9], 0
js 0x140022c0a
movdqa xmm0, xmmword [rcx]
pmovmskb r9d, xmm0
tzcnt r9d, r9d
mov r10, r14
sub r10, r8
mov r11, r9
sub r11, r8
xor r11, r10
and r11, rdx
cmp r11, 0x10
jb 0x140022b40
lea r8, [r9*8]
lea r8, [r8 + r8*4]
movzx r10d, byte [rcx + r9]
shr rax, 0x39
lea r11, [r9 - 0x10]
and r11, rdx
mov byte [rcx + r9], al
mov rdx, qword [rsi]
mov byte [rdx + r11 + 0x10], al
cmp r10b, 0xff
je 0x140022ee0
sub rcx, r8
movzx eax, byte [r13 - 0x28]
movzx edx, byte [rcx - 0x28]
mov byte [r13 - 0x28], dl
mov byte [rcx - 0x28], al
movzx eax, byte [r13 - 0x27]
movzx edx, byte [rcx - 0x27]
mov byte [r13 - 0x27], dl
mov byte [rcx - 0x27], al
movzx eax, byte [r13 - 0x26]
movzx edx, byte [rcx - 0x26]
mov byte [r13 - 0x26], dl
mov byte [rcx - 0x26], al
movzx eax, byte [r13 - 0x25]
movzx edx, byte [rcx - 0x25]
mov byte [r13 - 0x25], dl
mov byte [rcx - 0x25], al
movzx eax, byte [r13 - 0x24]
movzx edx, byte [rcx - 0x24]
mov byte [r13 - 0x24], dl
mov byte [rcx - 0x24], al
movzx eax, byte [r13 - 0x23]
movzx edx, byte [rcx - 0x23]
mov byte [r13 - 0x23], dl
mov byte [rcx - 0x23], al
movzx eax, byte [r13 - 0x22]
movzx edx, byte [rcx - 0x22]
mov byte [r13 - 0x22], dl
mov byte [rcx - 0x22], al
movzx eax, byte [r13 - 0x21]
movzx edx, byte [rcx - 0x21]
mov byte [r13 - 0x21], dl
mov byte [rcx - 0x21], al
movzx eax, byte [r13 - 0x20]
movzx edx, byte [rcx - 0x20]
mov byte [r13 - 0x20], dl
mov byte [rcx - 0x20], al
movzx eax, byte [r13 - 0x1f]
movzx edx, byte [rcx - 0x1f]
mov byte [r13 - 0x1f], dl
mov byte [rcx - 0x1f], al
movzx eax, byte [r13 - 0x1e]
movzx edx, byte [rcx - 0x1e]
mov byte [r13 - 0x1e], dl
mov byte [rcx - 0x1e], al
movzx eax, byte [r13 - 0x1d]
movzx edx, byte [rcx - 0x1d]
mov byte [r13 - 0x1d], dl
mov byte [rcx - 0x1d], al
movzx eax, byte [r13 - 0x1c]
movzx edx, byte [rcx - 0x1c]
mov byte [r13 - 0x1c], dl
mov byte [rcx - 0x1c], al
movzx eax, byte [r13 - 0x1b]
movzx edx, byte [rcx - 0x1b]
mov byte [r13 - 0x1b], dl
mov byte [rcx - 0x1b], al
movzx eax, byte [r13 - 0x1a]
movzx edx, byte [rcx - 0x1a]
mov byte [r13 - 0x1a], dl
mov byte [rcx - 0x1a], al
movzx eax, byte [r13 - 0x19]
movzx edx, byte [rcx - 0x19]
mov byte [r13 - 0x19], dl
mov byte [rcx - 0x19], al
movzx eax, byte [r13 - 0x18]
movzx edx, byte [rcx - 0x18]
mov byte [r13 - 0x18], dl
mov byte [rcx - 0x18], al
movzx eax, byte [r13 - 0x17]
movzx edx, byte [rcx - 0x17]
mov byte [r13 - 0x17], dl
mov byte [rcx - 0x17], al
movzx eax, byte [r13 - 0x16]
movzx edx, byte [rcx - 0x16]
mov byte [r13 - 0x16], dl
mov byte [rcx - 0x16], al
movzx eax, byte [r13 - 0x15]
movzx edx, byte [rcx - 0x15]
mov byte [r13 - 0x15], dl
mov byte [rcx - 0x15], al
movzx eax, byte [r13 - 0x14]
movzx edx, byte [rcx - 0x14]
mov byte [r13 - 0x14], dl
mov byte [rcx - 0x14], al
movzx eax, byte [r13 - 0x13]
movzx edx, byte [rcx - 0x13]
mov byte [r13 - 0x13], dl
mov byte [rcx - 0x13], al
movzx eax, byte [r13 - 0x12]
movzx edx, byte [rcx - 0x12]
mov byte [r13 - 0x12], dl
mov byte [rcx - 0x12], al
movzx eax, byte [r13 - 0x11]
movzx edx, byte [rcx - 0x11]
mov byte [r13 - 0x11], dl
mov byte [rcx - 0x11], al
movzx eax, byte [r13 - 0x10]
movzx edx, byte [rcx - 0x10]
mov byte [r13 - 0x10], dl
mov byte [rcx - 0x10], al
movzx eax, byte [r13 - 0xf]
movzx edx, byte [rcx - 0xf]
mov byte [r13 - 0xf], dl
mov byte [rcx - 0xf], al
movzx eax, byte [r13 - 0xe]
movzx edx, byte [rcx - 0xe]
mov byte [r13 - 0xe], dl
mov byte [rcx - 0xe], al
movzx eax, byte [r13 - 0xd]
movzx edx, byte [rcx - 0xd]
mov byte [r13 - 0xd], dl
mov byte [rcx - 0xd], al
movzx eax, byte [r13 - 0xc]
movzx edx, byte [rcx - 0xc]
mov byte [r13 - 0xc], dl
mov byte [rcx - 0xc], al
movzx eax, byte [r13 - 0xb]
movzx edx, byte [rcx - 0xb]
mov byte [r13 - 0xb], dl
mov byte [rcx - 0xb], al
movzx eax, byte [r13 - 0xa]
movzx edx, byte [rcx - 0xa]
mov byte [r13 - 0xa], dl
mov byte [rcx - 0xa], al
movzx eax, byte [r13 - 9]
movzx edx, byte [rcx - 9]
mov byte [r13 - 9], dl
mov byte [rcx - 9], al
movzx eax, byte [r13 - 8]
movzx edx, byte [rcx - 8]
mov byte [r13 - 8], dl
mov byte [rcx - 8], al
movzx eax, byte [r13 - 7]
movzx edx, byte [rcx - 7]
mov byte [r13 - 7], dl
mov byte [rcx - 7], al
movzx eax, byte [r13 - 6]
movzx edx, byte [rcx - 6]
mov byte [r13 - 6], dl
mov byte [rcx - 6], al
movzx eax, byte [r13 - 5]
movzx edx, byte [rcx - 5]
mov byte [r13 - 5], dl
mov byte [rcx - 5], al
movzx eax, byte [r13 - 4]
movzx edx, byte [rcx - 4]
mov byte [r13 - 4], dl
mov byte [rcx - 4], al
movzx eax, byte [r13 - 3]
movzx edx, byte [rcx - 3]
mov byte [r13 - 3], dl
mov byte [rcx - 3], al
movzx eax, byte [r13 - 2]
movzx edx, byte [rcx - 2]
mov byte [r13 - 2], dl
mov byte [rcx - 2], al
movzx eax, byte [r13 - 1]
movzx edx, byte [rcx - 1]
mov byte [r13 - 1], dl
mov byte [rcx - 1], al
jmp 0x140022b90
neg r8
lea rax, [rcx + r8]
add rax, 0xffffffffffffffd8
lea rcx, [r14 - 0x10]
and rcx, qword [rsi + 8]
mov rdx, qword [rsi]
mov byte [rdx + r14], 0xff
mov rdx, qword [rsi]
mov byte [rdx + rcx + 0x10], 0xff
mov rcx, qword [r15 + 0x20]
mov qword [rax + 0x20], rcx
movdqu xmm0, xmmword [r15]
movdqu xmm1, xmmword [r15 + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
jmp 0x140022b56
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
cmp rcx, 8
cmovb rax, rcx
sub rax, qword [rsi + 0x18]
mov qword [rsi + 0x10], rax
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret