Function at 0x1400225b8
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 [0x14025fbe8]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov r15, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025f590]
mulsd xmm1, qword [0x14025ecd0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025f060]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025f288]
jbe 0x14002263f
movaps xmm0, xmm3
mulsd xmm0, qword [0x14025ea90]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025eb78]
comisd xmm6, xmm3
ja 0x1400225ed
comisd xmm5, xmm4
jbe 0x140022662
call fcn.140048090
call fcn.14004806c
jmp 0x140022a71
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x140022669
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
xor ebx, ebx
lea r11d, [rbx + 1]
cmp r9d, r11d
jbe 0x14002269b
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x14002268e
mov eax, r10d
test r10d, r10d
je 0x1400226e9
dec eax
je 0x1400226df
dec eax
je 0x1400226d5
dec eax
je 0x1400226cb
lea rax, [fcn.140048090]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x1400226fa
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x1400226ee
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x1400226ee
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x1400226ee
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
inc r10d
cmp r10d, 0x1e
jb 0x14002270a
xor r10d, r10d
add r8b, 0x1e
movzx eax, r8b
inc ebx
and eax, r11d
cmp ebx, 0xb
jbe 0x14002271f
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x14002269b
cmp r9d, eax
je 0x14002274a
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 0x140022683
movzx r10d, byte [rsp + 0x27]
movzx esi, byte [rsp + 0x21]
mov r12b, byte [rsp + 0x25]
mov r14b, byte [rsp + rsi + 0x20]
movzx eax, r8b
inc sil
movzx edx, byte [rsp + rax + 0x20]
add r14b, byte [rsp + 0x23]
movzx ebx, sil
movzx r11d, byte [rsp + rdx + 0x20]
movzx r8d, r14b
lea r13, [fcn.14004806c]
mov al, byte [rsp + r8 + 0x20]
mov dil, byte [r13]
mov cl, byte [r13 + 1]
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
sub cl, 0x55
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rbx + 0x20]
add dil, 2
mov byte [rsp + r10 + 0x20], al
mov byte [rsp + rbx + 0x20], r11b
add r12b, byte [rsp + r11 + 0x20]
add r14b, byte [rsp + rbx + 0x20]
shl dil, 4
movzx eax, r12b
or dil, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
movzx r9d, r14b
add ecx, eax
inc sil
movzx eax, cl
movzx ecx, byte [rsp + r8 + 0x20]
movzx r8d, dil
movzx edx, byte [rsp + rax + 0x20]
movzx r10d, byte [rsp + r8 + 0x20]
add ecx, r11d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
add r13, 2
xor cl, byte [rsp + rax + 0x20]
mov al, byte [r13 + 1]
mov r11b, byte [r13]
sub al, 0x55
xor cl, dil
add r11b, 2
movzx edx, cl
shl r11b, 4
lea rdi, [rsp + 0x20]
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov ebx, 1
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, sil
add rdi, rax
mov al, byte [rdi]
mov byte [rsp + rdx + 0x20], al
mov byte [rdi], r10b
add r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
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]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
mov byte [r15], cl
mov qword [rbp + 0x78], 7
mov r8b, r11b
add r14b, byte [rdi]
movzx edx, cl
movzx r8d, r8b
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
lea r13, [r13 + 2]
mov al, byte [r13]
mov r11b, byte [r13 + 1]
inc sil
add al, 2
sub r11b, 0x55
lea rdi, [rsp + 0x20]
shl al, 4
inc rbx
or r11b, 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, sil
add rdi, rax
mov al, byte [rdi]
mov byte [rsp + rdx + 0x20], al
mov byte [rdi], r10b
add r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
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 rbx, rbx
jle 0x14002294d
mov byte [rbx + r15 - 1], cl
dec qword [rbp + 0x78]
jne 0x1400228aa
lea rdx, [rsp + 0x20]
movzx eax, sil
lea r11, [fcn.14004806c]
add rdx, rax
mov edi, 8
mov qword [rbp + 0x70], 9
mov r13, rdx
add r11, 0x10
add r14b, byte [r13]
movzx edx, cl
movzx r8d, r8b
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r14b
lea r11, [r11 + 2]
mov al, byte [r11]
mov bl, byte [r11 + 1]
inc sil
add al, 2
sub bl, 0x55
lea r13, [rsp + 0x20]
shl al, 4
inc rdi
or bl, 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, sil
add r13, rax
mov al, byte [r13]
mov byte [rsp + rdx + 0x20], al
mov byte [r13], r10b
add r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, bl
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, bl
test rdi, rdi
jle 0x140022a21
mov byte [rdi + r15 - 1], cl
dec qword [rbp + 0x70]
jne 0x14002297e
movzx eax, sil
movzx edx, cl
movzx r9d, bl
add r14b, byte [rsp + rax + 0x20]
movzx r11d, byte [rsp + r9 + 0x20]
inc sil
movzx r10d, r14b
movzx ecx, sil
mov byte [r15 + 0x11], 0
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, r15
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