Function at 0x140004ef0
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 [0x1400e60a8]
movaps xmmword [rax - 0x48], xmm6
movsd xmm6, qword [0x1400e6028]
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rbx, rcx
movsd xmm8, qword [0x1400e60c8]
movsd xmm9, qword [0x1400e60b0]
movsd xmm7, qword [0x1400e60d0]
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movsd xmm10, qword [0x1400e60b8]
movsd xmm11, qword [0x1400e60c0]
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 0x140004fc2
movaps xmm0, xmm4
mulsd xmm0, xmm5
subsd xmm3, xmm0
addsd xmm4, xmm6
comisd xmm7, xmm4
ja 0x140004f80
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 0x140005027
call fcn.1400cd246
call fcn.1400cd1c4
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
xor edi, edi
mov qword [rsp + 0x198], r14
mov qword [rsp + 0x190], r15
lea rcx, [rsp + 0x20]
mov eax, edi
mov byte [rcx], al
inc eax
lea rcx, [rcx + 1]
cmp eax, 0x100
jb 0x140005060
mov r9d, edi
xor r8b, r8b
mov r10d, 0xff
lea rsi, [fcn.1400cd246]
mov r11d, 1
mov ebx, edi
cmp r10d, r11d
jbe 0x1400050a0
nop
lea r11d, [r11*2 + 1]
cmp r11d, r10d
jb 0x140005090
nop dword [rax]
mov eax, r9d
test r9d, r9d
je 0x1400050e6
dec eax
je 0x1400050dc
dec eax
je 0x1400050d2
dec eax
movzx eax, r8b
je 0x1400050c8
lea ecx, [r9 - 4]
movzx r8d, byte [rcx + rsi]
add r8b, byte [rsp + rax + 0x20]
jmp 0x1400050f8
cvttsd2si rcx, xmm3
shr ecx, 0x18
jmp 0x1400050ef
cvttsd2si rcx, xmm3
shr ecx, 0x10
jmp 0x1400050eb
cvttsd2si rcx, xmm3
shr ecx, 8
jmp 0x1400050eb
cvttsd2si rcx, xmm3
movzx eax, r8b
movzx r8d, byte [rsp + rax + 0x20]
add r8b, cl
inc r9d
cmp r9d, 0x20
jb 0x140005108
mov r9d, edi
add r8b, 0x20
movzx eax, r8b
inc ebx
and eax, r11d
cmp ebx, 0xb
jbe 0x14000511d
xor edx, edx
div r10d
mov eax, edx
cmp eax, r10d
ja 0x1400050a0
cmp r10d, eax
je 0x14000514b
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 0x140005082
movzx ebx, byte [rsp + 0x21]
movzx r10d, byte [rsp + 0x27]
movzx r15d, byte [rsp + 0x25]
movzx esi, byte [rsp + rbx + 0x20]
movzx eax, r8b
lea r14, [fcn.1400cd1c4]
movzx edx, byte [rsp + rax + 0x20]
add sil, byte [rsp + 0x23]
movzx r8d, byte [r14]
movzx r11d, byte [rsp + rdx + 0x20]
movzx ecx, byte [r14 + 1]
sub r8b, 2
sub cl, 0x23
shl r8b, 4
inc bl
or r8b, cl
lea r13, [rsp + 0x20]
mov r12, r14
mov byte [rbp + 0xd8], r8b
movzx r8d, sil
mov r14d, 0x1f
movzx eax, byte [rsp + r8 + 0x20]
mov byte [rsp + rdx + 0x20], al
movzx eax, byte [rsp + r10 + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, bl
add r13, rax
movzx eax, byte [r13]
mov byte [rsp + r10 + 0x20], al
mov byte [r13], 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 r8d, byte [rbp + 0xd8]
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, r8b
nop word [rax + rax]
add sil, byte [r13]
movzx eax, byte [r12 + 2]
movzx r11d, byte [r12 + 3]
movzx edx, cl
sub al, 2
movzx r8d, r8b
movzx r10d, byte [rsp + r8 + 0x20]
shl al, 4
sub r11b, 0x23
or r11b, al
movzx r9d, sil
lea r12, [r12 + 2]
movzx eax, byte [rsp + r9 + 0x20]
inc bl
lea r13, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
inc rdi
mov byte [rsp + r9 + 0x20], al
movzx eax, bl
add r13, rax
movzx eax, 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]
movzx r8d, r11b
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]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
mov r11, qword [rbp + 0xd0]
test rdi, rdi
jle 0x1400052e6
mov byte [rdi + r11 - 1], cl
dec r14
jne 0x140005230
movzx r9d, r8b
lea r12, [fcn.1400cd1c4]
lea r13, [rsp + 0x20]
movzx r10d, byte [rsp + r9 + 0x20]
movzx edx, byte [r12 + 0x40]
movzx eax, byte [r12 + 0x41]
sub al, 0x23
sub dl, 2
add r12, 0x40
shl dl, 4
mov r14d, 0x20
or dl, al
movzx eax, bl
inc bl
add sil, byte [rsp + rax + 0x20]
mov byte [rbp + 0xd8], dl
movzx edx, cl
movzx r8d, sil
mov edi, r14d
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, bl
add r13, rax
movzx eax, 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 + r9 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r8 + 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 [r11 + 0x1f], cl
nop
add sil, byte [r13]
movzx eax, byte [r12 + 2]
movzx r11d, byte [r12 + 3]
sub al, 2
movzx r8d, dl
movzx edx, cl
movzx r10d, byte [rsp + r8 + 0x20]
shl al, 4
movzx r9d, sil
lea r12, [r12 + 2]
sub r11b, 0x23
inc bl
or r11b, al
movzx eax, byte [rsp + r9 + 0x20]
lea r13, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, byte [rsp + rdx + 0x20]
inc r14
mov byte [rsp + r9 + 0x20], al
movzx eax, bl
add r13, rax
movzx eax, 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
movzx ecx, byte [rsp + rdx + 0x20]
movzx edx, r11b
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test r14, r14
jle 0x140005466
mov rax, qword [rbp + 0xd0]
mov byte [r14 + rax - 1], cl
dec rdi
jne 0x1400053b0
mov r15, qword [rsp + 0x190]
mov r14, qword [rsp + 0x198]
mov r13, qword [rsp + 0x1a0]
mov r12, qword [rsp + 0x1a8]
movzx eax, bl
movzx edx, cl
add sil, byte [rsp + rax + 0x20]
movzx r9d, r11b
inc bl
movzx r11d, byte [rsp + r9 + 0x20]
movzx r10d, sil
mov rsi, qword [rsp + 0x1e0]
movzx eax, byte [rsp + r10 + 0x20]
movzx ecx, bl
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 + 0x40], dil
mov rdi, qword [rsp + 0x1b0]
add rsp, 0x1b8
pop rbx
pop rbp
ret