Function at 0x140005c48
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 [0x14025aee0]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov r13, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025ab90]
mulsd xmm1, qword [0x14025a290]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025a630]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025aa40]
jbe 0x140005ccf
movaps xmm0, xmm3
mulsd xmm0, qword [0x140259f68]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025a0f8]
comisd xmm6, xmm3
ja 0x140005c7d
comisd xmm5, xmm4
jbe 0x140005cf2
call fcn.140038624
call fcn.14003863e
jmp 0x14000619a
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x140005cf9
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
xor ebx, ebx
lea r11d, [rbx + 1]
cmp r9d, r11d
jbe 0x140005d2b
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x140005d1e
mov eax, r10d
test r10d, r10d
je 0x140005d79
dec eax
je 0x140005d6f
dec eax
je 0x140005d65
dec eax
je 0x140005d5b
lea rax, [fcn.14003863e]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x140005d8a
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x140005d7e
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x140005d7e
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x140005d7e
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
inc r10d
cmp r10d, 0x1e
jb 0x140005d9a
xor r10d, r10d
add r8b, 0x1e
movzx eax, r8b
inc ebx
and eax, r11d
cmp ebx, 0xb
jbe 0x140005daf
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x140005d2b
cmp r9d, eax
je 0x140005dda
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 0x140005d13
movzx edi, byte [rsp + 0x21]
movzx r10d, byte [rsp + 0x27]
mov r14b, byte [rsp + 0x25]
mov sil, byte [rsp + rdi + 0x20]
movzx eax, r8b
lea r12, [fcn.140038624]
movzx edx, byte [rsp + rax + 0x20]
add sil, byte [rsp + 0x23]
mov cl, byte [r12 + 1]
movzx r11d, byte [rsp + rdx + 0x20]
mov r15b, byte [r12]
sub cl, 0x3f
movzx r8d, sil
sub r15b, 3
inc dil
mov al, byte [rsp + r8 + 0x20]
shl r15b, 4
lea rbx, [rsp + 0x20]
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
or r15b, cl
mov byte [rsp + r8 + 0x20], al
movzx eax, dil
mov qword [rbp + 0x70], 4
add rbx, rax
mov al, byte [rbx]
mov byte [rsp + r10 + 0x20], al
mov byte [rbx], r11b
add r14b, byte [rsp + r11 + 0x20]
movzx eax, r14b
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, r15b
and qword [rbp + 0x78], 0
mov r12, qword [rbp + 0x78]
add sil, byte [rbx]
add rax, 2
movzx edx, dl
mov r11b, byte [rax]
mov qword [rbp + 0x78], rax
mov al, byte [rax + 1]
sub al, 0x3f
movzx r8d, r15b
sub r11b, 3
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, sil
shl r11b, 4
or r11b, al
mov al, byte [rsp + r9 + 0x20]
inc dil
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
lea rbx, [rsp + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, dil
inc r12
add rbx, rax
mov r15b, r11b
mov al, byte [rbx]
mov byte [rsp + rdx + 0x20], al
mov byte [rbx], r10b
add r14b, byte [rsp + r10 + 0x20]
movzx eax, r14b
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 0x140005f50
mov byte [r12 + r13 - 1], dl
dec qword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
jne 0x140005eaa
movzx edx, dl
movzx eax, dil
movzx r9d, r15b
add sil, byte [rsp + rax + 0x20]
movzx r10d, byte [rsp + r9 + 0x20]
lea r12, [fcn.140038624]
mov cl, byte [r12 + 0xa]
mov bl, byte [r12 + 0xb]
movzx r8d, sil
mov al, byte [rsp + r8 + 0x20]
sub cl, 3
inc dil
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
shl cl, 4
mov byte [rsp + r8 + 0x20], al
movzx r11d, dil
sub bl, 0x3f
mov al, byte [rsp + r11 + 0x20]
or bl, cl
lea r15, [r12 + 0xc]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + r11 + 0x20], r10b
add r14b, byte [rsp + r10 + 0x20]
add sil, byte [rsp + r11 + 0x20]
movzx eax, r14b
inc dil
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
lea r12, [rsp + 0x20]
add ecx, eax
movzx eax, byte [rsp + r9 + 0x20]
movzx r9d, sil
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r8 + 0x20]
movzx r8d, bl
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, bl
mov ebx, 6
mov byte [r13 + 4], cl
mov al, byte [r15]
mov dl, byte [r15 + 1]
sub al, 3
sub dl, 0x3f
shl al, 4
or dl, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rbp + 0x70], dl
movzx edx, cl
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, dil
add r12, rax
mov al, byte [r12]
mov byte [rsp + rdx + 0x20], al
mov byte [r12], r10b
add r14b, byte [rsp + r10 + 0x20]
movzx eax, r14b
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], rbx
xor cl, dl
mov byte [r13 + 5], cl
add sil, byte [r12]
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, sil
lea r15, [r15 + 2]
mov al, byte [r15 + 1]
mov r11b, byte [r15]
inc dil
sub al, 0x3f
sub r11b, 3
lea r12, [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, dil
add r12, rax
mov al, byte [r12]
mov byte [rsp + rdx + 0x20], al
mov byte [r12], r10b
add r14b, byte [rsp + r10 + 0x20]
movzx eax, r14b
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 0x14000614a
mov byte [rbx + r13 - 1], cl
dec qword [rbp + 0x70]
jne 0x1400060a3
movzx eax, dil
movzx edx, cl
movzx r9d, r11b
add sil, byte [rsp + rax + 0x20]
movzx r11d, byte [rsp + r9 + 0x20]
inc dil
movzx r10d, sil
movzx ecx, dil
mov byte [r13 + 0xc], 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