Function at 0x140027bc4
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 [0x14025fa40]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov r12, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025f768]
mulsd xmm1, qword [0x14025ec50]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025eec0]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025f198]
jbe 0x140027c4b
movaps xmm0, xmm3
mulsd xmm0, qword [0x14025e7a0]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025eb78]
comisd xmm6, xmm3
ja 0x140027bf9
comisd xmm5, xmm4
jbe 0x140027c6e
call fcn.1400484b2
call fcn.1400484d6
jmp 0x140028232
xor eax, eax
lea rcx, [rsp + 0x20]
lea esi, [rax + 1]
mov byte [rcx], al
add eax, esi
add rcx, rsi
cmp eax, 0x100
jb 0x140027c78
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
xor ebx, ebx
mov r11d, esi
cmp r9d, esi
jbe 0x140027ca9
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x140027c9c
mov eax, r10d
test r10d, r10d
je 0x140027cf7
dec eax
je 0x140027ced
dec eax
je 0x140027ce3
dec eax
je 0x140027cd9
lea rax, [fcn.1400484d6]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x140027d08
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x140027cfc
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x140027cfc
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x140027cfc
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
add r10d, esi
cmp r10d, 0x20
jb 0x140027d18
xor r10d, r10d
add r8b, 0x20
movzx eax, r8b
add ebx, esi
and eax, r11d
cmp ebx, 0xb
jbe 0x140027d2d
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x140027ca9
cmp r9d, eax
je 0x140027d58
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 0x140027c92
movzx r10d, byte [rsp + 0x27]
mov r15b, byte [rsp + 0x25]
movzx eax, r8b
movzx edx, byte [rsp + rax + 0x20]
lea r13, [fcn.1400484b2]
mov qword [rbp + 0x78], 6
movzx r11d, byte [rsp + rdx + 0x20]
mov cl, byte [r13 + rsi]
mov dil, byte [r13]
sub cl, 0xf
sub dil, sil
movzx esi, byte [rsp + 0x21]
mov r14b, byte [rsp + rsi + 0x20]
inc sil
shl dil, 4
add r14b, byte [rsp + 0x23]
or dil, cl
movzx ebx, sil
movzx r8d, r14b
add r13, 2
inc sil
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rbx + 0x20]
mov byte [rsp + r10 + 0x20], al
mov byte [rsp + rbx + 0x20], r11b
add r15b, byte [rsp + r11 + 0x20]
add r14b, byte [rsp + rbx + 0x20]
movzx eax, r15b
lea rbx, [rsp + 0x20]
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
movzx r9d, r14b
add ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
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
mov r11b, byte [r13]
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
mov al, byte [r13 + 1]
dec r11b
sub al, 0xf
xor cl, dil
shl r11b, 4
movzx edx, cl
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov edi, 1
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add rbx, rax
mov al, 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
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
mov byte [r12], cl
mov dl, r11b
add r14b, byte [rbx]
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
lea r13, [r13 + 2]
mov al, byte [r13]
mov r11b, byte [r13 + 1]
inc sil
dec al
sub r11b, 0xf
lea rbx, [rsp + 0x20]
shl al, 4
inc rdi
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 rbx, rax
mov al, 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
mov cl, byte [rsp + rdx + 0x20]
mov dl, r11b
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test rdi, rdi
jle 0x140027f5b
mov byte [rdi + r12 - 1], cl
dec qword [rbp + 0x78]
jne 0x140027eb8
movzx r9d, dl
movzx edx, cl
lea r13, [fcn.1400484b2]
movzx r10d, byte [rsp + r9 + 0x20]
mov al, byte [r13 + 0x10]
mov dil, byte [r13 + 0x11]
dec al
sub dil, 0xf
shl al, 4
or dil, al
movzx eax, sil
inc sil
add r14b, byte [rsp + rax + 0x20]
movzx r11d, sil
inc sil
movzx r8d, r14b
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + r11 + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + r11 + 0x20], r10b
add r15b, byte [rsp + r10 + 0x20]
add r14b, byte [rsp + r11 + 0x20]
movzx eax, r15b
movzx r11d, 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, dil
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx r10d, byte [rsp + r8 + 0x20]
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, dil
lea rdi, [r13 + 0x14]
mov byte [r12 + 7], cl
mov al, byte [r13 + 0x13]
mov bl, byte [r13 + 0x12]
sub al, 0xf
movzx edx, cl
dec bl
shl bl, 4
or bl, 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
mov al, byte [rsp + r11 + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + r11 + 0x20], 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]
xor cl, byte [rsp + rax + 0x20]
xor cl, bl
mov byte [r12 + 8], cl
mov al, byte [rdi]
mov dl, byte [rdi + 1]
dec al
sub dl, 0xf
shl al, 4
or dl, al
add r14b, byte [rsp + r11 + 0x20]
movzx r8d, bl
mov byte [rbp + 0x70], dl
movzx r10d, byte [rsp + r8 + 0x20]
movzx edx, cl
movzx r9d, r14b
mov al, byte [rsp + r9 + 0x20]
inc sil
lea r13, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov ebx, 0xa
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add r13, rax
mov al, byte [r13]
mov byte [rsp + rdx + 0x20], al
mov byte [r13], 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, byte [rbp + 0x70]
xor cl, byte [rsp + rax + 0x20]
mov qword [rbp + 0x70], 7
xor cl, dl
mov byte [r12 + 9], cl
add r14b, byte [r13]
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
lea rdi, [rdi + 2]
mov al, byte [rdi + 1]
mov r11b, byte [rdi]
inc sil
sub al, 0xf
dec r11b
lea r13, [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 r13, rax
mov al, byte [r13]
mov byte [rsp + rdx + 0x20], al
mov byte [r13], 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 0x1400281e1
mov byte [rbx + r12 - 1], cl
dec qword [rbp + 0x70]
jne 0x14002813c
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 [r12 + 0x11], 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, r12
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