Function at 0x140045b88
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 r13, rcx
movsd xmm6, qword [0x140214a38]
xorps xmm5, xmm5
xorps xmm4, xmm4
xorps xmm3, xmm3
movaps xmm2, xmm3
movaps xmm1, xmm3
mulsd xmm2, qword [0x140214a18]
movaps xmm0, xmm3
mulsd xmm1, qword [0x1402121b0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
subsd xmm2, xmm0
addsd xmm1, qword [0x1402149a8]
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x1402149b8]
jbe 0x140045c10
movaps xmm0, xmm3
mulsd xmm0, qword [0x140214970]
subsd xmm4, xmm0
addsd xmm3, qword [0x14020c380]
comisd xmm6, xmm3
ja 0x140045bbe
comisd xmm5, xmm4
jbe 0x140045c33
call fcn.14004c90c
call fcn.14004c8e6
jmp 0x140046257
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x140045c3a
xor r13d, r13d
mov r9d, 0xff
mov r10d, r13d
mov cl, r13b
mov r11d, 1
mov edi, r13d
cmp r9d, r11d
jbe 0x140045c72
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x140045c65
movzx eax, cl
mov dl, byte [rsp + rax + 0x20]
mov eax, r10d
test r10d, r10d
je 0x140045cbe
sub eax, 1
je 0x140045cb4
sub eax, 1
je 0x140045caa
cmp eax, 1
je 0x140045ca0
lea ecx, [r10 - 4]
lea rax, [fcn.14004c90c]
mov al, byte [rcx + rax]
jmp 0x140045cc3
cvttsd2si rax, xmm4
shr eax, 0x18
jmp 0x140045cc3
cvttsd2si rax, xmm4
shr eax, 0x10
jmp 0x140045cc3
cvttsd2si rax, xmm4
shr eax, 8
jmp 0x140045cc3
cvttsd2si rax, xmm4
add al, dl
lea r8d, [r10 + 1]
movzx edx, al
cmp r8d, 0x1d
lea eax, [rdx + 0x1d]
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 0x140045cf5
xor edx, edx
div r9d
mov eax, edx
mov cl, bl
cmp eax, r9d
ja 0x140045c72
je 0x140045d1f
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 0x140045c57
movzx r10d, byte [rsp + rbx + 0x20]
lea r12, [fcn.14004c8e6]
movzx edx, byte [rsp + 0x27]
movzx esi, byte [rsp + 0x21]
mov r15b, byte [rsp + 0x25]
movzx ebx, byte [rsp + r10 + 0x20]
mov r11b, byte [r12]
mov r14b, byte [rsp + rsi + 0x20]
sub r11b, 8
add r14b, byte [rsp + 0x23]
inc sil
mov cl, byte [r12 + 1]
mov dil, byte [r12 + 2]
add cl, 0x75
mov r13, qword [rbp + 0x80]
sub dil, 8
movzx r9d, r14b
add r14b, bl
shl r11b, 4
or r11b, cl
shl dil, 4
movzx ecx, sil
inc sil
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 byte [rsp + rcx + 0x20], bl
add r15b, byte [rsp + rbx + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
movzx r10d, r11b
movzx eax, byte [rsp + rdx + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rax, rbx
movzx r9d, r14b
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
mov cl, byte [r12 + 3]
add cl, 0x75
xor dl, byte [rsp + rax + 0x20]
or dil, cl
mov al, byte [rsp + r9 + 0x20]
xor dl, r11b
movzx r11d, byte [rsp + r10 + 0x20]
mov byte [rsp + r10 + 0x20], al
movzx r8d, dl
movzx ecx, sil
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 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 + r8 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r10 + 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]
xor dl, byte [rsp + rax + 0x20]
xor dl, dil
movsx eax, dl
mov word [r13 + 0x14], ax
lea rax, [fcn.14004c8e6]
mov r12b, byte [r12 + 4]
sub r12b, 8
shl r12b, 4
mov cl, byte [rax + 5]
add r14b, r11b
add cl, 0x75
movzx r8d, dl
or r12b, cl
movzx r10d, r14b
movzx r9d, dil
inc sil
movzx ecx, sil
mov qword [rbp + 0x90], 6
mov al, byte [rsp + r10 + 0x20]
movzx ebx, byte [rsp + r9 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov edx, ebx
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
mov byte [rbp + 0x88], bl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, byte [rbp + 0x88]
add rcx, rax
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, rbx
lea rbx, [r13 + 0x16]
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
mov ecx, 2
xor dl, byte [rsp + rax + 0x20]
xor dl, r12b
movsx eax, dl
mov word [rbx], ax
lea rax, [fcn.14004c8e6]
sub rax, r13
mov qword [rbp + 0x98], rax
mov r13, rax
inc rcx
movzx r10d, r12b
mov qword [rbp + 0x88], rcx
lea rbx, [rbx + 2]
mov al, byte [rbx + r13 - 0x11]
add r14b, r8b
mov r11b, byte [rbx + r13 - 0x12]
add al, 0x75
movzx edi, byte [rsp + r10 + 0x20]
sub r11b, 8
movzx r8d, dl
inc sil
movzx r9d, r14b
mov edx, edi
movzx ecx, sil
shl r11b, 4
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov r12b, r11b
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], dil
add r15b, byte [rsp + rdi + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rax, rdi
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
mov rcx, qword [rbp + 0x88]
xor dl, byte [rsp + rax + 0x20]
xor dl, r11b
test rcx, rcx
jle 0x140046009
movsx eax, dl
mov word [rbx], ax
sub qword [rbp + 0x90], 1
mov r8b, dil
jne 0x140045f50
mov rbx, qword [rbp + 0x80]
mov qword [rbp + 0x88], 8
add rbx, 0x22
mov r13, qword [rbp + 0x88]
mov qword [rbp + 0x90], 8
jmp 0x140046047
mov r12b, r11b
mov rax, qword [rbp + 0x98]
lea rbx, [rbx + 2]
movzx r8d, dl
add r14b, dil
movzx r9d, r14b
inc sil
movzx r10d, r12b
inc r13
mov r11b, byte [rbx + rax - 0x12]
mov al, byte [rbx + rax - 0x11]
sub r11b, 8
add al, 0x75
movzx ecx, sil
movzx r12d, byte [rsp + r10 + 0x20]
shl r11b, 4
mov edx, r12d
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], r12b
add r15b, byte [rsp + r12 + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, r11b
add rcx, rax
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rax, r12
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
xor dl, byte [rsp + rax + 0x20]
xor dl, r11b
test r13, r13
jle 0x1400460f9
movsx eax, dl
mov word [rbx], ax
sub qword [rbp + 0x90], 1
mov dil, r12b
jne 0x140046044
mov r13, qword [rbp + 0x80]
lea rax, [fcn.14004c8e6]
mov cl, byte [rax + 0x22]
add r14b, r12b
mov r11b, byte [rax + 0x23]
sub cl, 8
shl cl, 4
add r11b, 0x75
or r11b, cl
movzx r10d, r8b
movzx r8d, dl
inc sil
movzx r9d, r14b
movzx ecx, sil
inc sil
movzx edi, byte [rsp + r10 + 0x20]
add r14b, dil
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], dil
add r15b, byte [rsp + rdi + 0x20]
movzx eax, r15b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
movzx r10d, r11b
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rax, rdi
movzx r9d, r14b
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
movzx ecx, sil
xor dl, byte [rsp + rax + 0x20]
xor dl, r11b
movzx r11d, byte [rsp + r10 + 0x20]
movzx r8d, dl
movsx eax, dl
mov word [r13 + 0x34], ax
lea rax, [fcn.14004c8e6]
mov bl, byte [rax + 0x25]
mov al, byte [rax + 0x24]
add bl, 0x75
sub al, 8
shl al, 4
or bl, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r9 + 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 + r8 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r10 + 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 r8b, byte [rsp + rcx + 0x20]
xor r8b, byte [rsp + rax + 0x20]
xor r8b, bl
movsx eax, r8b
mov word [r13 + 0x36], ax
xor eax, eax
mov word [r13 + 0x38], ax
movaps xmm6, xmmword [rsp + 0x120]
lea rax, [r13 + 0x14]
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret