Function at 0x140028db0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x14009e010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r10, r8
mov qword [rbp - 0x51], r8
mov r13, rdx
mov qword [rbp - 0x41], rdx
mov r14, rcx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x39], rdx
xor esi, esi
mov dword [rsp + 0x28], esi
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov r12d, 1
mov dword [rsp + 0x28], r12d
mov rax, qword [rcx]
mov r8, qword [rax + 8]
sub r8, qword [rax]
sar r8, 5
mov rax, qword [rcx + 8]
mov ecx, dword [rax + 0x14]
xor edx, edx
mov rax, r8
div rcx
mov r9, rax
sub r9d, r12d
mov qword [rbp - 0x61], r9
js 0x1400293b2
mov rax, qword [r14]
mov r8, qword [rax + 8]
sub r8, qword [rax]
sar r8, 5
mov rax, qword [r14 + 8]
mov ecx, dword [rax + 0x14]
xor edx, edx
mov rax, r8
div rcx
imul eax, dword [r10]
add eax, r9d
mov dword [rbp - 0x7d], eax
je 0x140029386
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
mov rax, qword [r14 + 0x10]
mov ecx, dword [rax]
mov edx, dword [rax + 4]
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], edx
imul edx, ecx
shl edx, 2
mov edi, edx
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rsi
test edx, edx
je 0x140028ec1
mov edx, edi
lea rcx, [rbp - 0x29]
call fcn.140034ae0
mov rcx, qword [rbp - 0x29]
lea rbx, [rcx + rdi]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x21], rbx
jmp 0x140028ec5
mov rbx, qword [rbp - 0x21]
mov rcx, rsi
mov rdx, qword [rbp - 0x29]
cmp rbx, rdx
je 0x140028f04
mov byte [rdx + rcx + 2], 0
mov rax, qword [rbp - 0x29]
mov byte [rax + rcx + 1], 0
mov rax, qword [rbp - 0x29]
mov byte [rax + rcx], 0
mov rax, qword [rbp - 0x29]
mov byte [rax + rcx + 3], 0
add rcx, 4
mov rax, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x29]
sub rax, rdx
cmp rcx, rax
jb 0x140028ed1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rax
mov rax, qword [r14]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x10]
mov rcx, qword [r8 + 0xc0]
test rcx, rcx
je 0x1400293ab
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
call qword [rax + 0x10]
or r12d, 4
mov dword [rsp + 0x28], r12d
mov rax, qword [r14]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rsp + 0x20], eax
mov ecx, eax
shr ecx, 0x18
movzx edi, byte [rsp + 0x22]
movzx esi, byte [rsp + 0x21]
mov rbx, qword [rbp - 0x11]
cmp cl, 0xff
jne 0x140028fd2
mov r15, qword [rbp - 9]
cmp rbx, r15
je 0x140028fd2
lea r10, [rbx + 8]
mov r11d, dword [r10 - 8]
mov r9d, dword [r10 - 4]
cmp r9d, dword [r10]
jg 0x140028fc1
nop dword [rax]
mov r8d, dword [rbp - 0x31]
imul r8d, r11d
add r8d, r9d
shl r8d, 2
lea edx, [r8 + 2]
add rdx, qword [rbp - 0x29]
mov byte [rdx], al
lea edx, [r8 + 1]
add rdx, qword [rbp - 0x29]
mov byte [rdx], sil
mov ecx, r8d
add rcx, qword [rbp - 0x29]
mov byte [rcx], dil
lea edx, [r8 + 3]
add rdx, qword [rbp - 0x29]
mov byte [rdx], 0xff
inc r9d
cmp r9d, dword [r10]
jle 0x140028f80
add r10, 0xc
lea rcx, [r10 - 8]
cmp rcx, r15
jne 0x140028f70
mov rbx, qword [rbp - 0x11]
movzx ecx, al
movzx r9d, byte [rsp + 0x23]
mov edx, ecx
shl edx, 8
or edx, ecx
imul edx, r9d
mov eax, 0x80808081
mul edx
mov r8d, edx
shr r8d, 7
mov dword [rbp - 0x71], r8d
mov ecx, esi
shl ecx, 8
or ecx, esi
imul ecx, r9d
mov eax, 0x80808081
mul ecx
mov r10d, edx
shr r10d, 7
mov dword [rbp - 0x6d], r10d
mov ecx, edi
shl ecx, 8
or ecx, edi
imul ecx, r9d
mov eax, 0x80808081
mul ecx
mov ecx, edx
shr ecx, 7
mov dword [rbp - 0x69], ecx
mov eax, r9d
shl eax, 8
or r9d, eax
mov dword [rbp - 0x75], r9d
imul eax, r9d, 0x101
mov r15d, 0x100feff
sub r15d, eax
mov rax, qword [rbp - 9]
mov qword [rbp - 0x59], rax
cmp rbx, rax
je 0x14002919e
lea rdi, [rbx + 8]
mov rdx, rax
nop dword [rax]
nop dword [rax + rax]
mov r12d, dword [rdi - 8]
mov esi, dword [rdi - 4]
cmp esi, dword [rdi]
jg 0x14002917c
imul r13d, r8d, 0xffff
imul r14d, r10d, 0xffff
imul r8d, ecx, 0xffff
mov dword [rbp - 0x79], r8d
imul eax, r9d, 0xffff
mov dword [rsp + 0x20], eax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbp - 0x31]
imul eax, r12d
add eax, esi
shl eax, 2
mov ebx, eax
mov r11, qword [rbp - 0x29]
movzx ecx, byte [r11 + rax + 2]
imul ecx, r15d
add ecx, r13d
mov eax, 0x80008001
mul ecx
mov r10d, edx
shr r10d, 0xf
shr r10d, 8
movzx ecx, byte [r11 + rbx + 1]
imul ecx, r15d
add ecx, r14d
mov eax, 0x80008001
mul ecx
mov r9d, edx
shr r9d, 0xf
shr r9d, 8
movzx ecx, byte [r11 + rbx]
imul ecx, r15d
add ecx, r8d
mov eax, 0x80008001
mul ecx
mov r8d, edx
shr r8d, 0xf
shr r8d, 8
movzx ecx, byte [r11 + rbx + 3]
imul ecx, r15d
add ecx, dword [rsp + 0x20]
mov eax, 0x80008001
mul ecx
shr edx, 0xf
shr edx, 8
lea eax, [rbx + 2]
mov byte [rax + r11], r10b
lea ecx, [rbx + 1]
add rcx, qword [rbp - 0x29]
mov byte [rcx], r9b
mov rax, qword [rbp - 0x29]
mov byte [rbx + rax], r8b
lea ecx, [rbx + 3]
add rcx, qword [rbp - 0x29]
mov byte [rcx], dl
inc esi
cmp esi, dword [rdi]
mov r8d, dword [rbp - 0x79]
jle 0x1400290b0
mov r9d, dword [rbp - 0x75]
mov r8d, dword [rbp - 0x71]
mov r10d, dword [rbp - 0x6d]
mov ecx, dword [rbp - 0x69]
mov rdx, qword [rbp - 0x59]
add rdi, 0xc
lea rax, [rdi - 8]
cmp rax, rdx
jne 0x140029070
mov r14, qword [rbp - 0x49]
mov rbx, qword [rbp - 0x11]
mov r12d, dword [rsp + 0x28]
mov r13, qword [rbp - 0x41]
mov edi, 1
mov rcx, qword [r14]
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
sar rax, 5
cmp rax, rdi
jbe 0x14002929c
movsxd r15, dword [rbp - 0x7d]
lea ebx, [rdi + 0x1f]
cmp rdi, r15
je 0x140029278
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rax
mov rax, qword [rcx]
mov r8, qword [rbx + rax + 0x10]
mov rcx, qword [r8 + 0xc0]
test rcx, rcx
je 0x140029396
mov rax, qword [rcx]
lea rdx, [rbp + 7]
call qword [rax + 0x10]
or r12d, 2
mov dword [rsp + 0x28], r12d
mov rax, qword [r14]
mov rcx, qword [rax]
lea r8, [rbp + 7]
mov edx, dword [rbx + rcx + 8]
lea rcx, [rbp - 0x31]
call fcn.14003e330
mov r8, qword [rbp + 7]
test r8, r8
je 0x140029278
mov rcx, qword [rbp + 0x17]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 2
mov rax, r8
cmp rdx, 0x1000
jb 0x140029270
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002938f
mov rcx, r8
call fcn.140078850
inc rdi
add rbx, 0x20
mov rcx, qword [r14]
mov rax, qword [rcx + 8]
sub rax, qword [rcx]
sar rax, 5
cmp rdi, rax
jb 0x1400291c1
mov rbx, qword [rbp - 0x11]
jmp 0x1400292a0
mov r15d, dword [rbp - 0x7d]
mov rdx, qword [r14 + 0x10]
lea rcx, [rbp - 0x31]
call fcn.14003a380
mov rax, qword [r14 + 0x18]
movsd xmm1, qword [rax]
comisd xmm1, xmm0
jbe 0x1400292df
mov rdx, qword [r13 + 8]
cmp rdx, qword [r13 + 0x10]
je 0x1400292cf
mov dword [rdx], r15d
add qword [r13 + 8], 4
jmp 0x1400292db
lea r8, [rbp - 0x7d]
mov rcx, r13
call fcn.140035dd0
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x140029346
mov rcx, qword [rbp - 1]
sub rcx, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 2
mov rax, rbx
cmp rdx, 0x1000
jb 0x14002932e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002939d
mov rcx, rbx
call fcn.140078850
xor esi, esi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
jmp 0x140029348
xor esi, esi
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14002937e
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029379
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400293a4
call fcn.140078850
mov r10, qword [rbp - 0x51]
mov r9, qword [rbp - 0x61]
sub r9d, 1
jmp 0x140028e38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
mov rax, r13
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140078830
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret