Function at 0x140033be4
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
movaps xmmword [rax - 0x48], xmm6
mov rsi, rcx
movsd xmm6, qword [0x140212bb0]
xorps xmm5, xmm5
xorps xmm4, xmm4
xorps xmm3, xmm3
movaps xmm2, xmm3
movaps xmm1, xmm3
mulsd xmm2, qword [0x1402127a8]
movaps xmm0, xmm3
mulsd xmm1, qword [0x14020d1b0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
subsd xmm2, xmm0
addsd xmm1, qword [0x140212288]
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x1402125a0]
jbe 0x140033c6b
movaps xmm0, xmm3
mulsd xmm0, qword [0x140212060]
subsd xmm4, xmm0
addsd xmm3, qword [0x14020d170]
comisd xmm6, xmm3
ja 0x140033c19
comisd xmm5, xmm4
jbe 0x140033c8e
call fcn.140049de7
call fcn.140049dc7
jmp 0x140034001
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x140033c95
xor r10d, r10d
mov r9d, 0xff
xor cl, cl
xor edi, edi
lea r11d, [rdi + 1]
cmp r9d, r11d
jbe 0x140033cc6
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x140033cb9
movzx eax, cl
mov dl, byte [rsp + rax + 0x20]
mov eax, r10d
test r10d, r10d
je 0x140033d12
sub eax, 1
je 0x140033d08
sub eax, 1
je 0x140033cfe
cmp eax, 1
je 0x140033cf4
lea ecx, [r10 - 4]
lea rax, [fcn.140049de7]
mov al, byte [rcx + rax]
jmp 0x140033d17
cvttsd2si rax, xmm4
shr eax, 0x18
jmp 0x140033d17
cvttsd2si rax, xmm4
shr eax, 0x10
jmp 0x140033d17
cvttsd2si rax, xmm4
shr eax, 8
jmp 0x140033d17
cvttsd2si rax, xmm4
add al, dl
lea r8d, [r10 + 1]
movzx edx, al
cmp r8d, 0x22
lea eax, [rdx + 0x22]
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 0x140033d49
xor edx, edx
div r9d
mov eax, edx
mov cl, bl
cmp eax, r9d
ja 0x140033cc6
je 0x140033d73
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 0x140033cae
movzx r10d, byte [rsp + rbx + 0x20]
lea r14, [fcn.140049dc7]
movzx edi, byte [rsp + 0x21]
mov r13d, 7
movzx edx, byte [rsp + 0x27]
mov r11b, byte [rsp + 0x25]
movzx ebx, byte [rsp + r10 + 0x20]
mov r12b, byte [rsp + rdi + 0x20]
inc dil
add r12b, byte [rsp + 0x23]
mov cl, byte [r14 + 1]
mov r15b, byte [r14]
add cl, 0x20
movzx r9d, r12b
add r15b, 5
mov byte [rbp + 0x78], bl
shl r15b, 4
or r15b, 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 byte [rsp + rcx + 0x20], bl
add r11b, byte [rsp + rbx + 0x20]
movzx eax, r11b
mov byte [rbp + 0x70], r11b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
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 eax, al
mov bl, byte [rsp + rcx + 0x20]
mov cl, byte [rbp + 0x78]
xor bl, byte [rsp + rax + 0x20]
mov rax, r14
xor bl, r15b
and qword [rbp + 0x80], 0
mov r14, qword [rbp + 0x80]
jmp 0x140033e50
mov r15b, byte [rbp + 0x78]
mov r11b, byte [rax + 3]
add rax, 2
mov qword [rbp + 0x80], rax
add r12b, cl
movzx r8d, bl
add r11b, 0x20
movzx r9d, r12b
inc dil
mov al, byte [rax]
inc r14
add al, 5
movzx r10d, r15b
shl al, 4
or r11b, al
movzx ecx, dil
mov al, byte [rsp + r9 + 0x20]
movzx r15d, byte [rsp + r10 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov edx, r15d
mov al, byte [rsp + r8 + 0x20]
mov dl, r11b
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rbp + 0x70]
mov byte [rsp + rcx + 0x20], r15b
add al, byte [rsp + r15 + 0x20]
mov byte [rbp + 0x70], al
movzx eax, al
mov byte [rbp + 0x78], dl
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, r15
movzx eax, al
mov bl, byte [rsp + rcx + 0x20]
xor bl, byte [rsp + rax + 0x20]
xor bl, r11b
test r14, r14
jle 0x140033f05
mov byte [r14 + rsi - 1], bl
mov rax, qword [rbp + 0x80]
mov cl, r15b
sub r13, 1
jne 0x140033e4c
mov eax, 7
mov byte [rbp + 0x78], r12b
lea r14, [fcn.140049dc7]
add r14, 0xe
lea r12d, [rax + 1]
inc rax
movzx r8d, bl
mov qword [rbp + 0x80], rax
lea r14, [r14 + 2]
mov al, byte [r14]
inc dil
mov r13b, byte [r14 + 1]
add al, 5
shl al, 4
add r13b, 0x20
or r13b, al
movzx r10d, dl
mov al, byte [rbp + 0x78]
add al, r15b
movzx ecx, dil
movzx r9d, al
movzx r11d, byte [rsp + r10 + 0x20]
mov byte [rbp + 0x78], al
mov edx, r11d
mov dl, r13b
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 al, byte [rbp + 0x70]
mov byte [rsp + rcx + 0x20], r11b
add al, byte [rsp + r11 + 0x20]
mov byte [rbp + 0x70], al
movzx eax, al
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 bl, byte [rsp + rcx + 0x20]
xor bl, byte [rsp + rax + 0x20]
mov rax, qword [rbp + 0x80]
xor bl, r13b
test rax, rax
jle 0x140033ff0
mov byte [rax + rsi - 1], bl
mov r15b, r11b
sub r12, 1
jne 0x140033f31
mov byte [rsi + 0xf], 0
lea r11, [rsp + 0x130]
mov rax, rsi
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