Function at 0x140006548
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
xorps xmm5, xmm5
movaps xmmword [rax - 0x48], xmm6
movsd xmm6, qword [0x14025b2a8]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov r13, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025adc8]
mulsd xmm1, qword [0x14025a3a8]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025a688]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025a980]
jbe 0x1400065cf
movaps xmm0, xmm3
mulsd xmm0, qword [0x140259f30]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025a220]
comisd xmm6, xmm3
ja 0x14000657d
comisd xmm5, xmm4
jbe 0x1400065f2
call fcn.140039669
call fcn.140039685
jmp 0x140006b32
xor eax, eax
lea rcx, [rsp + 0x20]
lea edi, [rax + 1]
mov byte [rcx], al
add eax, edi
add rcx, rdi
cmp eax, 0x100
jb 0x1400065fc
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
xor ebx, ebx
mov r11d, edi
cmp r9d, edi
jbe 0x14000662d
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x140006620
mov eax, r10d
test r10d, r10d
je 0x14000667b
dec eax
je 0x140006671
dec eax
je 0x140006667
dec eax
je 0x14000665d
lea rax, [fcn.140039685]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x14000668c
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x140006680
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x140006680
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x140006680
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
add r10d, edi
cmp r10d, 0x19
jb 0x14000669c
xor r10d, r10d
add r8b, 0x19
movzx eax, r8b
add ebx, edi
and eax, r11d
cmp ebx, 0xb
jbe 0x1400066b1
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x14000662d
cmp r9d, eax
je 0x1400066dc
mov edx, eax
mov ecx, r9d
mov al, byte [rsp + rdx + 0x20]
xor byte [rsp + rcx + 0x20], al
mov al, byte [rsp + rcx + 0x20]
xor byte [rsp + rdx + 0x20], al
mov al, byte [rsp + rdx + 0x20]
xor byte [rsp + rcx + 0x20], al
dec r9d
jne 0x140006616
movzx esi, byte [rsp + 0x21]
movzx r10d, byte [rsp + 0x27]
mov r15b, byte [rsp + 0x25]
mov r14b, byte [rsp + rsi + 0x20]
movzx eax, r8b
lea r12, [fcn.140039669]
movzx edx, byte [rsp + rax + 0x20]
add r14b, byte [rsp + 0x23]
mov cl, byte [r12 + rdi]
movzx r11d, byte [rsp + rdx + 0x20]
mov bl, byte [r12]
sub cl, 0x74
add sil, dil
movzx r8d, r14b
sub bl, 4
mov al, byte [rsp + r8 + 0x20]
shl bl, 4
lea rdi, [rsp + 0x20]
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
or bl, cl
mov byte [rsp + r8 + 0x20], al
movzx eax, sil
mov qword [rbp + 0x70], 4
add rdi, rax
mov al, byte [rdi]
mov byte [rsp + r10 + 0x20], al
mov byte [rdi], r11b
add r15b, byte [rsp + r11 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r8 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r11d
mov dl, byte [rsp + rdx + 0x20]
movzx eax, cl
xor dl, byte [rsp + rax + 0x20]
mov rax, r12
xor dl, bl
and qword [rbp + 0x78], 0
mov r12, qword [rbp + 0x78]
add r14b, byte [rdi]
add rax, 2
movzx edx, dl
mov r11b, byte [rax]
mov qword [rbp + 0x78], rax
mov al, byte [rax + 1]
sub al, 0x74
movzx r8d, bl
sub r11b, 4
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
shl r11b, 4
or r11b, al
mov al, byte [rsp + r9 + 0x20]
inc sil
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
lea rdi, [rsp + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
inc r12
add rdi, rax
mov bl, r11b
mov al, 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
mov dl, byte [rsp + rdx + 0x20]
movzx eax, cl
xor dl, byte [rsp + rax + 0x20]
xor dl, r11b
test r12, r12
jle 0x14000684d
mov byte [r12 + r13 - 1], dl
dec qword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
jne 0x1400067a7
movzx r9d, bl
movzx edx, dl
movzx eax, sil
add r14b, byte [rsp + rax + 0x20]
movzx r10d, byte [rsp + r9 + 0x20]
lea r12, [fcn.140039669]
mov cl, byte [r12 + 0xa]
mov r11b, byte [r12 + 0xb]
movzx r8d, r14b
mov al, byte [rsp + r8 + 0x20]
sub cl, 4
sub r11b, 0x74
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
shl cl, 4
mov byte [rsp + r8 + 0x20], al
or r11b, cl
inc sil
movzx ebx, sil
inc sil
mov al, 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
mov r10b, byte [rsp + rdx + 0x20]
movzx eax, cl
xor r10b, byte [rsp + rax + 0x20]
mov al, byte [rsp + r9 + 0x20]
xor r10b, r11b
movzx r11d, byte [rsp + r8 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [r13 + 4], r10b
mov cl, byte [r12 + 0xc]
mov dil, byte [r12 + 0xd]
sub cl, 4
movzx edx, r10b
sub dil, 0x74
mov al, byte [rsp + rdx + 0x20]
shl cl, 4
mov byte [rsp + r9 + 0x20], al
mov al, 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
add r12, 0xe
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
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, dil
mov byte [r13 + 5], cl
mov r11b, byte [r12]
mov al, byte [r12 + 1]
sub r11b, 4
shl r11b, 4
sub al, 0x74
add r14b, byte [rsp + rbx + 0x20]
movzx edx, cl
or r11b, al
movzx r8d, dil
movzx r9d, r14b
inc sil
mov al, byte [rsp + r9 + 0x20]
movzx r10d, byte [rsp + r8 + 0x20]
lea rdi, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov ebx, 7
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
mov qword [rbp + 0x78], 6
add rdi, rax
mov al, 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
mov cl, byte [rsp + rdx + 0x20]
mov dl, r11b
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
mov byte [r13 + 6], cl
add r14b, byte [rdi]
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
lea r12, [r12 + 2]
mov al, byte [r12 + 1]
mov r11b, byte [r12]
inc sil
sub al, 0x74
sub r11b, 4
lea rdi, [rsp + 0x20]
shl r11b, 4
inc rbx
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add rdi, rax
mov al, 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
mov cl, byte [rsp + rdx + 0x20]
mov dl, r11b
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test rbx, rbx
jle 0x140006ae2
mov byte [rbx + r13 - 1], cl
dec qword [rbp + 0x78]
jne 0x140006a3c
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
movzx ecx, sil
mov byte [r13 + 0xd], 0
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + rcx + 0x20], r11b
lea r11, [rsp + 0x130]
mov rax, r13
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret