Function at 0x14003ea4c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], 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 [0x14025fa90]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov rdi, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025f5d8]
mulsd xmm1, qword [0x14025ed18]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025ef60]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025f530]
jbe 0x14003ead3
movaps xmm0, xmm3
mulsd xmm0, qword [0x14025eb10]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025eb68]
comisd xmm6, xmm3
ja 0x14003ea81
comisd xmm5, xmm4
jbe 0x14003eaf6
call fcn.14004976d
call fcn.140049741
jmp 0x14003ee8e
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x14003eafd
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
lea r15d, [r10 + 0xb]
mov qword [rbp + 0x80], r15
xor ebx, ebx
lea r11d, [rbx + 1]
cmp r9d, r11d
jbe 0x14003eb3a
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x14003eb2d
mov eax, r10d
test r10d, r10d
je 0x14003eb88
dec eax
je 0x14003eb7e
dec eax
je 0x14003eb74
dec eax
je 0x14003eb6a
lea rax, [fcn.14004976d]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x14003eb99
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x14003eb8d
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x14003eb8d
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x14003eb8d
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
inc r10d
cmp r10d, 0x21
jb 0x14003eba9
xor r10d, r10d
add r8b, 0x21
movzx eax, r8b
inc ebx
and eax, r11d
cmp ebx, r15d
jbe 0x14003ebbe
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x14003eb3a
cmp r9d, eax
je 0x14003ebe9
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 0x14003eb22
movzx ebx, byte [rsp + 0x21]
movzx r10d, byte [rsp + 0x27]
mov r13b, byte [rsp + 0x25]
mov r14b, byte [rsp + rbx + 0x20]
movzx eax, r8b
lea r12, [fcn.140049741]
movzx edx, byte [rsp + rax + 0x20]
add r14b, byte [rsp + 0x23]
mov sil, byte [r12]
movzx r11d, byte [rsp + rdx + 0x20]
mov cl, byte [r12 + 1]
movzx r8d, r14b
mov al, byte [rsp + r8 + 0x20]
add cl, 0x2c
add sil, 5
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
shl sil, 4
mov byte [rsp + r8 + 0x20], al
or sil, cl
inc bl
movzx eax, bl
lea rcx, [rsp + 0x20]
mov byte [rbp + 0x70], sil
add rcx, rax
mov qword [rbp + 0x78], rcx
mov al, byte [rcx]
mov byte [rsp + r10 + 0x20], al
mov byte [rcx], r11b
add r13b, byte [rsp + r11 + 0x20]
movzx eax, r13b
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]
mov r8b, byte [rbp + 0x70]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r11d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
mov rax, r12
mov r12, qword [rbp + 0x78]
xor cl, sil
xor r15d, r15d
lea esi, [r9 + 0xa]
add r14b, byte [r12]
add rax, 2
movzx edx, cl
mov r11b, byte [rax]
mov qword [rbp + 0x70], rax
mov al, byte [rax + 1]
add al, 0x2c
movzx r8d, r8b
add r11b, 5
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
shl r11b, 4
or r11b, al
mov al, byte [rsp + r9 + 0x20]
inc bl
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
lea r12, [rsp + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, bl
inc r15
add r12, rax
mov al, byte [r12]
mov byte [rsp + rdx + 0x20], al
mov byte [r12], r10b
add r13b, byte [rsp + r10 + 0x20]
movzx eax, r13b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, 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
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test r15, r15
jle 0x14003ed65
mov byte [r15 + rdi - 1], cl
mov rax, qword [rbp + 0x70]
dec rsi
jne 0x14003ecbd
mov r15, qword [rbp + 0x80]
movzx eax, bl
lea rdx, [rsp + 0x20]
add rdx, rax
lea r11, [fcn.140049741]
mov eax, 0xa
mov r12, rdx
add r11, 0x14
add r14b, byte [r12]
inc rax
movzx edx, cl
mov qword [rbp + 0x70], rax
movzx r8d, r8b
movzx r9d, r14b
movzx r10d, byte [rsp + r8 + 0x20]
lea r11, [r11 + 2]
inc bl
mov al, byte [r11 + 1]
mov sil, byte [r11]
lea r12, [rsp + 0x20]
add al, 0x2c
add sil, 5
shl sil, 4
or sil, 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, bl
add r12, rax
mov al, byte [r12]
mov byte [rsp + rdx + 0x20], al
mov byte [r12], r10b
add r13b, byte [rsp + r10 + 0x20]
movzx eax, r13b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, sil
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]
mov rax, qword [rbp + 0x70]
xor cl, sil
test rax, rax
jle 0x14003ee43
mov byte [rax + rdi - 1], cl
dec r15
jne 0x14003ed97
movzx eax, bl
movzx edx, cl
movzx r9d, sil
add r14b, byte [rsp + rax + 0x20]
movzx r11d, byte [rsp + r9 + 0x20]
inc bl
movzx r10d, r14b
movzx ecx, bl
mov byte [rdi + 0x15], r15b
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 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret