Function at 0x140057ba0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov r14, rdx
mov r13, qword [rdx]
mov r12, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov rdx, rax
sub rdx, r12
test r13, r13
mov r15, rdx
cmove r15, r13
mov rbx, rcx
mov rsi, qword [r14 + 0x20]
mov r9, qword [r14 + 0x28]
mov r10, qword [r14 + 0x30]
mov r11, r10
sub r11, r9
test rsi, rsi
mov rcx, r11
cmove rcx, rsi
mov rdi, qword [r14 + 0x40]
test rdi, rdi
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x38], r10
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x28], rdx
mov qword [rbp + 0x18], r13
je 0x140057c50
mov r8, qword [r14 + 0x60]
test r8, r8
je 0x140057ecf
mov rax, qword [r14 + 0x48]
mov rdx, rax
or rdx, r8
shr rdx, 0x20
je 0x140057c5d
xor edx, edx
div r8
mov r13, rax
add r15, rcx
jae 0x140057c6e
jmp 0x140057e69
xor r13d, r13d
add r15, rcx
jae 0x140057c6e
jmp 0x140057e69
xor edx, edx
div r8d
mov r13d, eax
add r15, rcx
jb 0x140057e69
mov rax, r13
shr rax, 0x3e
jne 0x140057e69
shl r13, 2
mov r12, r15
add r12, r13
jb 0x140057e69
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x60], rsi
je 0x140057cc6
js 0x140057edb
movzx eax, byte [0x1401f1d21]
mov eax, 1
mov qword [rbp + 0x38], rax
mov edx, 1
mov rcx, r12
call fcn.140021bf0
test rax, rax
je 0x140057ee1
mov rsi, rax
jmp 0x140057ccb
mov esi, 1
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], 0
mov rax, qword [r14 + 0x18]
mov qword [rbp + 0x38], rax
mov rax, qword [r14 + 0x38]
mov r12, qword [r14 + 0x48]
mov r14, qword [r14 + 0x60]
test rdi, rdi
mov qword [rbp - 0x30], rax
je 0x140057d23
test r14, r14
je 0x140057eed
mov rax, r12
or rax, r14
shr rax, 0x20
je 0x140057d27
mov rax, r12
xor edx, edx
div r14
mov rcx, rax
shr rcx, 0x3e
je 0x140057d3c
jmp 0x140057e9b
xor eax, eax
jmp 0x140057d3c
mov eax, r12d
xor edx, edx
div r14d
mov rcx, rax
shr rcx, 0x3e
jne 0x140057e9b
shl rax, 2
add r15, rax
jb 0x140057e9b
cmp rax, r13
mov qword [rbp - 0x58], rbx
jbe 0x140057d73
lea rcx, [rbp + 0x20]
xor edx, edx
mov r8, r15
call fcn.140134fc0
mov rax, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x30]
test rax, rax
jne 0x140057d7e
jmp 0x140057db1
xor ebx, ebx
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x140057db1
mov rax, qword [rbp + 0x38]
mov qword [rbp - 8], rax
mov r15, qword [rbp - 0x50]
mov r13, qword [rbp - 0x48]
cmp r13, r15
je 0x140057db1
lea rcx, [rsi + rbx]
lea rdx, [r15 + rbp]
add rdx, 0xfffffffffffffff8
mov r8, qword [rbp - 0x28]
call sub.VCRUNTIME140.dll_memcpy
add r13, rbx
sub r13, r15
mov rbx, r13
test rdi, rdi
je 0x140057e06
cmp r12, r14
jb 0x140057e06
cmp r14, 1
je 0x140057efb
test r14, r14
je 0x140057f13
cmp r14, 3
jb 0x140057f25
inc rdi
nop dword [rax + rax]
sub r12, r14
movzx eax, byte [rdi - 1]
movzx ecx, word [rdi]
mov byte [rsi + rbx], al
mov byte [rsi + rbx + 1], cl
mov byte [rsi + rbx + 2], ch
mov byte [rsi + rbx + 3], 0xff
add rbx, 4
add rdi, r14
cmp r12, r14
jae 0x140057de0
cmp qword [rbp - 0x60], 0
je 0x140057e42
mov rax, qword [rbp - 0x30]
mov qword [rbp - 8], rax
mov rdi, qword [rbp - 0x40]
mov r14, qword [rbp - 0x38]
cmp r14, rdi
je 0x140057e42
add rsi, rbx
lea rdx, [rdi + rbp]
add rdx, 0xfffffffffffffff8
mov rcx, rsi
mov r8, qword [rbp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
add r14, rbx
sub r14, rdi
mov rbx, r14
mov qword [rbp + 0x30], rbx
mov rax, qword [rbp - 0x58]
mov qword [rax + 0x10], rbx
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rax], xmm0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x1401455b0]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov qword [rbp - 8], 8
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea rdx, [0x140145620]
lea rcx, [rbp - 0x18]
call fcn.14013d820
lea rax, [0x1401455b0]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov qword [rbp - 8], 8
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea rdx, [0x1401457b0]
lea rcx, [rbp - 0x18]
call fcn.14013d820
jmp 0x140057f3b
lea rcx, str._rustc_fda509e817abeeecb5b76bc1de844f355675c81elibrarycore_src_sliceiter.rscapacity_overflow
call fcn.14013df20
xor eax, eax
mov qword [rbp + 0x38], rax
mov rcx, qword [rbp + 0x38]
mov rdx, r12
call fcn.14013d680
lea rcx, str._rustc_fda509e817abeeecb5b76bc1de844f355675c81elibrarycore_src_sliceiter.rscapacity_overflow
call fcn.14013df20
jmp 0x140057f3b
lea r8, [0x1401454b8]
mov ecx, 1
mov edx, 1
call fcn.14013d950
jmp 0x140057f3b
lea r8, [0x1401454a0]
xor ecx, ecx
xor edx, edx
call fcn.14013d950
jmp 0x140057f3b
lea r8, [0x1401454d0]
mov ecx, 2
mov edx, 2
call fcn.14013d950
ud2