Function at 0x14001ca60
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 [0x14025f9c8]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov rdi, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025f700]
mulsd xmm1, qword [0x14025eba0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025ef40]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025f518]
jbe 0x14001cae7
movaps xmm0, xmm3
mulsd xmm0, qword [0x14025e9d8]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025eb78]
comisd xmm6, xmm3
ja 0x14001ca95
comisd xmm5, xmm4
jbe 0x14001cb0a
call fcn.140049e1c
call fcn.140049e6a
jmp 0x14001cf26
xor eax, eax
lea rcx, [rsp + 0x20]
lea r12d, [rax + 1]
mov byte [rcx], al
add eax, r12d
add rcx, r12
cmp eax, 0x100
jb 0x14001cb15
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
xor ebx, ebx
mov r11d, r12d
cmp r9d, r12d
jbe 0x14001cb47
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x14001cb3a
mov eax, r10d
test r10d, r10d
je 0x14001cb95
dec eax
je 0x14001cb8b
dec eax
je 0x14001cb81
dec eax
je 0x14001cb77
lea rax, [fcn.140049e6a]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x14001cba6
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x14001cb9a
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x14001cb9a
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x14001cb9a
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
add r10d, r12d
cmp r10d, 0x14
jb 0x14001cbb6
xor r10d, r10d
add r8b, 0x14
movzx eax, r8b
add ebx, r12d
and eax, r11d
cmp ebx, 0xb
jbe 0x14001cbcc
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x14001cb47
cmp r9d, eax
je 0x14001cbf7
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 0x14001cb30
movzx ebx, byte [rsp + 0x21]
movzx r10d, byte [rsp + 0x27]
mov r14b, byte [rsp + 0x25]
mov sil, byte [rsp + rbx + 0x20]
lea r13, [fcn.140049e1c]
movzx eax, r8b
movzx edx, byte [rsp + rax + 0x20]
add sil, byte [rsp + 0x23]
mov cl, byte [r13 + r12]
movzx r11d, byte [rsp + rdx + 0x20]
mov r15b, byte [r13]
add cl, 0x73
add r15b, r12b
movzx r8d, sil
add bl, r12b
mov al, byte [rsp + r8 + 0x20]
shl r15b, 4
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
or r15b, cl
mov byte [rsp + r8 + 0x20], al
movzx eax, bl
lea rcx, [rsp + 0x20]
add rcx, rax
mov byte [rbp + 0x70], r15b
mov al, byte [rcx]
mov qword [rbp + 0x78], rcx
mov byte [rsp + r10 + 0x20], al
mov byte [rcx], 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
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
mov dl, byte [rbp + 0x70]
xor cl, byte [rsp + rax + 0x20]
mov rax, r13
mov r13, qword [rbp + 0x78]
xor cl, r15b
xor r12d, r12d
lea r15d, [r9 + 0x12]
mov r11b, byte [rax + 3]
add sil, byte [r13]
add rax, 2
mov qword [rbp + 0x70], rax
mov al, byte [rax]
movzx r8d, dl
movzx r10d, byte [rsp + r8 + 0x20]
movzx edx, cl
inc al
shl al, 4
movzx r9d, sil
add r11b, 0x73
or r11b, al
mov al, byte [rsp + r9 + 0x20]
inc bl
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
lea r13, [rsp + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, bl
inc r12
add r13, rax
mov al, byte [r13]
mov byte [rsp + rdx + 0x20], al
mov byte [r13], 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 r12, r12
jle 0x14001cd71
mov byte [r12 + rdi - 1], cl
mov rax, qword [rbp + 0x70]
dec r15
jne 0x14001ccca
movzx r9d, dl
movzx edx, cl
lea r13, [fcn.140049e1c]
movzx r10d, byte [rsp + r9 + 0x20]
mov r11b, byte [r13 + 0x27]
add r13, 0x26
mov al, byte [r13]
add r11b, 0x73
lea rcx, [rsp + 0x20]
inc al
shl al, 4
or r11b, al
movzx eax, bl
inc bl
add sil, byte [rsp + rax + 0x20]
mov byte [rbp + 0x70], r11b
movzx r8d, sil
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r8 + 0x20], al
movzx eax, bl
add rcx, rax
mov qword [rbp + 0x78], rcx
mov al, byte [rcx]
mov byte [rsp + rdx + 0x20], al
mov byte [rcx], 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 + 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
mov cl, byte [rsp + rdx + 0x20]
mov dl, byte [rbp + 0x70]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
mov r11d, ILIsParent
mov r12d, r11d
mov byte [rdi + 0x12], cl
movzx r8d, dl
movzx edx, cl
lea r13, [r13 + 2]
movzx r10d, byte [rsp + r8 + 0x20]
mov al, byte [r13]
mov r15b, byte [r13 + 1]
inc al
add r15b, 0x73
inc bl
shl al, 4
lea rcx, [rsp + 0x20]
inc r11
or r15b, al
mov rax, qword [rbp + 0x78]
add sil, byte [rax]
movzx r9d, sil
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, bl
add rcx, rax
mov qword [rbp + 0x78], rcx
mov al, byte [rcx]
mov byte [rsp + rdx + 0x20], al
mov byte [rcx], 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, r15b
xor cl, byte [rsp + rax + 0x20]
xor cl, r15b
test r11, r11
jle 0x14001cedb
mov byte [r11 + rdi - 1], cl
dec r12
jne 0x14001ce32
movzx eax, bl
movzx edx, cl
movzx r9d, r15b
add sil, byte [rsp + rax + 0x20]
movzx r11d, byte [rsp + r9 + 0x20]
inc bl
movzx r10d, sil
movzx ecx, bl
mov byte [rdi + 0x26], r12b
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, rdi
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