Function at 0x1400822b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
lea rbp, [rax - 0xc8]
sub rsp, 0x1b8
movsd xmm5, qword [0x1400e97c8]
movaps xmmword [rax - 0x48], xmm6
movsd xmm6, qword [0x1400e70d0]
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rbx, rcx
movsd xmm8, qword [0x1400ea5d0]
movsd xmm9, qword [0x1400e71e0]
movsd xmm7, qword [0x1400ea760]
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movsd xmm10, qword [0x1400e9ba0]
movsd xmm11, qword [0x1400ea0c0]
xorps xmm12, xmm12
movaps xmm3, xmm12
movaps xmm4, xmm12
nop dword [rax]
movaps xmm2, xmm4
movaps xmm1, xmm4
movaps xmm0, xmm4
mulsd xmm2, xmm8
mulsd xmm1, xmm9
mulsd xmm0, xmm4
mulsd xmm2, xmm4
mulsd xmm1, xmm4
subsd xmm2, xmm0
addsd xmm1, xmm10
divsd xmm2, xmm1
addsd xmm3, xmm2
comisd xmm3, xmm11
jbe 0x140082382
movaps xmm0, xmm4
mulsd xmm0, xmm5
subsd xmm3, xmm0
addsd xmm4, xmm6
comisd xmm7, xmm4
ja 0x140082340
movaps xmm11, xmmword [rsp + 0x130]
movaps xmm10, xmmword [rsp + 0x140]
movaps xmm9, xmmword [rsp + 0x150]
comisd xmm12, xmm3
movaps xmm12, xmmword [rsp + 0x120]
movaps xmm8, xmmword [rsp + 0x160]
movaps xmm7, xmmword [rsp + 0x170]
movaps xmm6, xmmword [rsp + 0x180]
jbe 0x1400823e7
call fcn.1400c800c
call 0x1400c803c
mov rax, rbx
add rsp, 0x1b8
pop rbx
pop rbp
ret
mov qword [rsp + 0x1e0], rsi
mov qword [rsp + 0x1b0], rdi
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x1a0], r13
mov qword [rsp + 0x198], r14
xor eax, eax
mov qword [rsp + 0x190], r15
lea rcx, [rsp + 0x20]
nop
mov byte [rcx], al
inc eax
lea rcx, [rcx + 1]
cmp eax, 0x100
jb 0x140082420
xor r9d, r9d
mov r10d, 0xff
mov r12d, 1
xor r8b, r8b
lea rdi, [0x1400c803c]
nop dword [rax + rax]
xor ebx, ebx
mov r11d, r12d
cmp r10d, r12d
jbe 0x140082470
nop word [rax + rax]
lea r11d, [r11*2 + 1]
cmp r11d, r10d
jb 0x140082460
nop dword [rax]
mov eax, r9d
test r9d, r9d
je 0x1400824b6
dec eax
je 0x1400824ac
dec eax
je 0x1400824a2
dec eax
movzx eax, r8b
je 0x140082498
lea ecx, [r9 - 4]
movzx r8d, byte [rcx + rdi]
add r8b, byte [rsp + rax + 0x20]
jmp 0x1400824c8
cvttsd2si rcx, xmm3
shr ecx, 0x18
jmp 0x1400824bf
cvttsd2si rcx, xmm3
shr ecx, 0x10
jmp 0x1400824bb
cvttsd2si rcx, xmm3
shr ecx, 8
jmp 0x1400824bb
cvttsd2si rcx, xmm3
movzx eax, r8b
movzx r8d, byte [rsp + rax + 0x20]
add r8b, cl
inc r9d
cmp r9d, 0x19
jb 0x1400824d8
xor r9d, r9d
add r8b, 0x19
movzx eax, r8b
inc ebx
and eax, r11d
cmp ebx, 0xb
jbe 0x1400824ed
xor edx, edx
div r10d
mov eax, edx
cmp eax, r10d
ja 0x140082470
cmp r10d, eax
je 0x14008251b
mov edx, eax
mov ecx, r10d
movzx eax, byte [rsp + rdx + 0x20]
xor byte [rsp + rcx + 0x20], al
movzx eax, byte [rsp + rcx + 0x20]
xor byte [rsp + rdx + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
xor byte [rsp + rcx + 0x20], al
dec r10d
jne 0x140082450
movzx r10d, byte [rsp + 0x27]
movzx esi, byte [rsp + 0x21]
movzx r15d, byte [rsp + 0x25]
movzx r14d, byte [rsp + rsi + 0x20]
movzx eax, r8b
inc sil
movzx edx, byte [rsp + rax + 0x20]
add r14b, byte [rsp + 0x23]
movzx ebx, sil
movzx r11d, byte [rsp + rdx + 0x20]
movzx r8d, r14b
lea r13, [fcn.1400c800c]
movzx eax, byte [rsp + r8 + 0x20]
movzx ecx, byte [r13 + 1]
movzx edi, byte [r13]
mov byte [rsp + rdx + 0x20], al
movzx eax, byte [rsp + r10 + 0x20]
sub cl, 0x75
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rbx + 0x20]
dec dil
mov byte [rsp + r10 + 0x20], al
mov byte [rsp + rbx + 0x20], r11b
add r15b, byte [rsp + r11 + 0x20]
movzx eax, r15b
shl dil, 4
add r13, 2
or dil, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
add r14b, r11b
add ecx, eax
movzx r9d, r14b
inc sil
movzx eax, cl
movzx ecx, byte [rsp + r8 + 0x20]
movzx r8d, dil
movzx edx, byte [rsp + rax + 0x20]
movzx r10d, byte [rsp + r8 + 0x20]
add ecx, r11d
movzx eax, cl
movzx ecx, byte [rsp + rdx + 0x20]
movzx edx, byte [r13 + 1]
xor cl, byte [rsp + rax + 0x20]
movzx eax, byte [r13]
sub dl, 0x75
dec al
xor cl, dil
lea rbx, [rsp + 0x20]
shl al, 4
or dl, al
movzx eax, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rbp + 0xd8], dl
movzx edx, cl
movzx eax, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add rbx, rax
movzx eax, byte [rbx]
mov byte [rsp + rdx + 0x20], al
mov byte [rbx], r10b
add r15b, byte [rsp + r10 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
movzx ecx, byte [rsp + rdx + 0x20]
movzx edx, byte [rbp + 0xd8]
xor cl, byte [rsp + rax + 0x20]
mov rax, qword [rbp + 0xd0]
xor cl, dl
mov byte [rax], cl
mov edi, 9
nop word [rax + rax]
add r14b, byte [rbx]
movzx eax, byte [r13 + 2]
movzx r11d, byte [r13 + 3]
dec al
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
shl al, 4
movzx r9d, r14b
lea r13, [r13 + 2]
sub r11b, 0x75
inc sil
or r11b, al
movzx eax, byte [rsp + r9 + 0x20]
lea rbx, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
inc r12
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add rbx, rax
movzx eax, byte [rbx]
mov byte [rsp + rdx + 0x20], al
mov byte [rbx], r10b
add r15b, byte [rsp + r10 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
movzx ecx, byte [rsp + rdx + 0x20]
movzx edx, r11b
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test r12, r12
jle 0x140082741
mov rax, qword [rbp + 0xd0]
mov byte [r12 + rax - 1], cl
dec rdi
jne 0x140082690
mov r13, qword [rbp + 0xd0]
movzx r9d, dl
movzx edx, cl
movzx r10d, byte [rsp + r9 + 0x20]
lea r12, [fcn.1400c800c]
movzx r11d, byte [r12 + 0x16]
movzx eax, byte [r12 + 0x17]
add r12, 0x1a
sub al, 0x75
dec r11b
shl r11b, 4
or r11b, al
movzx eax, sil
inc sil
add r14b, byte [rsp + rax + 0x20]
movzx ebx, sil
inc sil
movzx r8d, r14b
movzx eax, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rbx + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + rbx + 0x20], r10b
add r15b, byte [rsp + r10 + 0x20]
add r14b, byte [rsp + rbx + 0x20]
movzx eax, r15b
movzx ebx, sil
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r9 + 0x20]
movzx r9d, r14b
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r8 + 0x20]
movzx r8d, r11b
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx r10d, byte [rsp + rdx + 0x20]
movzx eax, cl
xor r10b, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
xor r10b, r11b
movzx r11d, byte [rsp + r8 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [r13 + 0xa], r10b
movzx ecx, byte [r12 - 2]
movzx edi, byte [r12 - 1]
dec cl
movzx edx, r10b
sub dil, 0x75
movzx eax, byte [rsp + rdx + 0x20]
shl cl, 4
mov byte [rsp + r9 + 0x20], al
movzx eax, byte [rsp + rbx + 0x20]
or dil, cl
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + rbx + 0x20], r11b
add r15b, byte [rsp + r11 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r11d
movzx eax, cl
movzx ecx, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, dil
mov byte [r13 + 0xb], cl
movzx eax, byte [r12]
movzx edx, byte [r12 + 1]
dec al
sub dl, 0x75
shl al, 4
or dl, al
movzx r8d, dil
add r14b, r11b
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
mov byte [rbp + 0xd8], dl
movzx eax, byte [rsp + r9 + 0x20]
movzx edx, cl
inc sil
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
lea rdi, [rsp + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
mov ebx, 0xd
add rdi, rax
movzx eax, byte [rdi]
mov byte [rsp + rdx + 0x20], al
mov byte [rdi], r10b
add r15b, byte [rsp + r10 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
movzx ecx, byte [rsp + rdx + 0x20]
movzx edx, byte [rbp + 0xd8]
xor cl, byte [rsp + rax + 0x20]
xor cl, dl
mov byte [r13 + 0xc], cl
lea r13d, [rbx - 3]
nop dword [rax]
nop word [rax + rax]
add r14b, byte [rdi]
movzx eax, byte [r12 + 2]
movzx r11d, byte [r12 + 3]
dec al
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
shl al, 4
movzx r9d, r14b
lea r12, [r12 + 2]
sub r11b, 0x75
inc sil
or r11b, al
movzx eax, byte [rsp + r9 + 0x20]
lea rdi, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
inc rbx
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add rdi, rax
movzx eax, byte [rdi]
mov byte [rsp + rdx + 0x20], al
mov byte [rdi], r10b
add r15b, byte [rsp + r10 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
movzx ecx, byte [rsp + rdx + 0x20]
movzx edx, r11b
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test rbx, rbx
jle 0x140082a03
mov rax, qword [rbp + 0xd0]
mov byte [rbx + rax - 1], cl
dec r13
jne 0x140082950
mov r15, qword [rsp + 0x190]
mov r12, qword [rsp + 0x1a8]
mov rdi, qword [rsp + 0x1b0]
movzx eax, sil
movzx edx, cl
movzx r9d, r11b
add r14b, byte [rsp + rax + 0x20]
movzx r11d, byte [rsp + r9 + 0x20]
inc sil
movzx r10d, r14b
mov r14, qword [rsp + 0x198]
movzx ecx, sil
movzx eax, byte [rsp + r10 + 0x20]
mov rsi, qword [rsp + 0x1e0]
mov byte [rsp + r9 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
mov byte [rsp + r10 + 0x20], al
movzx eax, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
mov rax, qword [rbp + 0xd0]
mov byte [rsp + rcx + 0x20], r11b
mov byte [rax + 0x17], r13b
mov r13, qword [rsp + 0x1a0]
add rsp, 0x1b8
pop rbx
pop rbp
ret