Function at 0x1400455cc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x138
movaps xmmword [rax - 0x58], xmm6
mov r12, rcx
movsd xmm6, qword [0x140214a40]
xorps xmm5, xmm5
xorps xmm4, xmm4
xorps xmm3, xmm3
movaps xmm2, xmm3
movaps xmm1, xmm3
mulsd xmm2, qword [0x1402149f0]
movaps xmm0, xmm3
mulsd xmm1, qword [0x140214988]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
subsd xmm2, xmm0
addsd xmm1, qword [0x140214998]
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x1402126c0]
jbe 0x140045654
movaps xmm0, xmm3
mulsd xmm0, qword [0x140214960]
subsd xmm4, xmm0
addsd xmm3, qword [0x14020c380]
comisd xmm6, xmm3
ja 0x140045602
comisd xmm5, xmm4
jbe 0x140045677
call fcn.14004c9d2
call fcn.14004c9b0
jmp 0x140045b65
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x14004567e
xor r12d, r12d
mov r9d, 0xff
mov r10d, r12d
mov cl, r12b
mov r11d, 1
mov edi, r12d
cmp r9d, r11d
jbe 0x1400456b6
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x1400456a9
movzx eax, cl
mov dl, byte [rsp + rax + 0x20]
mov eax, r10d
test r10d, r10d
je 0x140045702
sub eax, 1
je 0x1400456f8
sub eax, 1
je 0x1400456ee
cmp eax, 1
je 0x1400456e4
lea ecx, [r10 - 4]
lea rax, [fcn.14004c9d2]
mov al, byte [rcx + rax]
jmp 0x140045707
cvttsd2si rax, xmm4
shr eax, 0x18
jmp 0x140045707
cvttsd2si rax, xmm4
shr eax, 0x10
jmp 0x140045707
cvttsd2si rax, xmm4
shr eax, 8
jmp 0x140045707
cvttsd2si rax, xmm4
add dl, al
lea r8d, [r10 + 1]
cmp r8d, 0x15
movzx edx, dl
lea eax, [rdx + 0x15]
movzx ecx, al
cmovb ecx, edx
sbb r10d, r10d
movzx ebx, cl
and r10d, r8d
mov eax, ebx
inc edi
and eax, r11d
cmp edi, 0xb
jbe 0x140045739
xor edx, edx
div r9d
mov eax, edx
mov cl, bl
cmp eax, r9d
ja 0x1400456b6
je 0x140045763
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
mov cl, bl
add r9d, 0xffffffff
jne 0x14004569b
movzx r10d, byte [rsp + rbx + 0x20]
lea r13, [fcn.14004c9b0]
movzx edx, byte [rsp + 0x27]
movzx edi, byte [rsp + 0x21]
mov r8d, edx
mov r15b, byte [rsp + 0x25]
movzx r11d, byte [rsp + r10 + 0x20]
mov cl, byte [r13 + 1]
mov sil, byte [rsp + rdi + 0x20]
add cl, 0x80
add sil, byte [rsp + 0x23]
inc dil
mov r14b, byte [r13]
movzx r9d, sil
sub r14b, 4
shl r14b, 4
or r14b, cl
movzx ecx, dil
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
mov edx, r11d
mov byte [rsp + rcx + 0x20], r11b
add r15b, byte [rsp + r11 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rax, r11
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
mov cl, r11b
xor dl, byte [rsp + rax + 0x20]
mov rax, r12
mov r12, qword [rbp + 0x80]
xor dl, r14b
sub r13, r12
lea rbx, [r12 + 0x10]
mov r12d, 6
mov r11b, byte [rbx + r13 - 0xe]
inc rax
mov qword [rbp + 0x90], rax
add sil, cl
mov al, byte [rbx + r13 - 0xd]
add rbx, 2
add al, 0x80
movzx r8d, dl
movzx r9d, r14b
sub r11b, 4
movzx r10d, sil
inc dil
movzx ecx, dil
shl r11b, 4
movzx r14d, byte [rsp + r9 + 0x20]
or r11b, al
mov al, byte [rsp + r10 + 0x20]
mov edx, r14d
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], r14b
add r15b, byte [rsp + r14 + 0x20]
movzx eax, r15b
mov byte [rbp + 0x88], r14b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, r14
mov r14b, r11b
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
xor dl, byte [rsp + rax + 0x20]
mov rax, qword [rbp + 0x90]
xor dl, r11b
test rax, rax
jle 0x140045904
movsx eax, dl
mov word [rbx], ax
mov rax, qword [rbp + 0x90]
mov r8b, byte [rbp + 0x88]
mov cl, r8b
sub r12, 1
jne 0x14004583c
mov r12, qword [rbp + 0x80]
lea rax, [fcn.14004c9b0]
mov cl, byte [rax + 0xe]
add sil, r8b
mov bl, byte [rax + 0xf]
sub cl, 4
shl cl, 4
add bl, 0x80
or bl, cl
movzx r9d, r14b
movzx r8d, dl
inc dil
movzx r10d, sil
movzx ecx, dil
inc dil
movzx r11d, byte [rsp + r9 + 0x20]
add sil, r11b
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], r11b
add r15b, byte [rsp + r11 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx r9d, bl
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, r11
movzx r10d, sil
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
movzx ecx, dil
xor dl, byte [rsp + rax + 0x20]
xor dl, bl
movzx ebx, byte [rsp + r9 + 0x20]
movzx r8d, dl
movsx eax, dl
mov word [r12 + 0x1e], ax
lea rax, [fcn.14004c9b0]
mov r14b, byte [rax + 0x11]
mov al, byte [rax + 0x10]
add r14b, 0x80
sub al, 4
mov byte [rbp + 0x88], bl
shl al, 4
or r14b, al
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], bl
add r15b, byte [rsp + rbx + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, rbx
movzx eax, al
mov bl, byte [rsp + rcx + 0x20]
xor bl, byte [rsp + rax + 0x20]
xor bl, r14b
movsx eax, bl
add r12, 0x20
mov word [r12], ax
mov eax, 8
mov qword [rbp + 0x98], rax
mov cl, byte [rbp + 0x88]
jmp 0x140045a7f
mov r14b, byte [rbp + 0x88]
inc rax
movzx r8d, bl
mov qword [rbp + 0x90], rax
lea r12, [r12 + 2]
mov al, byte [r12 + r13 - 0xf]
add sil, cl
mov r11b, byte [r12 + r13 - 0x10]
add al, 0x80
movzx r9d, r14b
sub r11b, 4
movzx r10d, sil
inc dil
movzx ecx, dil
shl r11b, 4
movzx r14d, byte [rsp + r9 + 0x20]
or r11b, al
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], r14b
add r15b, byte [rsp + r14 + 0x20]
movzx eax, r15b
mov byte [rbp + 0x88], r11b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
xor r9d, r9d
add rcx, rax
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, r14
movzx eax, al
mov bl, byte [rsp + rcx + 0x20]
xor bl, byte [rsp + rax + 0x20]
mov rax, qword [rbp + 0x90]
xor bl, r11b
test rax, rax
jle 0x140045b47
movsx eax, bl
mov word [r12], ax
mov rax, qword [rbp + 0x90]
sub qword [rbp + 0x98], 1
mov cl, r14b
jne 0x140045a78
mov r12, qword [rbp + 0x80]
mov word [r12 + 0x32], r9w
movaps xmm6, xmmword [rsp + 0x120]
lea rax, [r12 + 0x12]
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret