Function at 0x140153e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rdx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rdx + 0x20]
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x20], r8
call fcn.140153820
mov r9, rax
mov r10, qword [rsi]
mov qword [rsp + 0x28], rsi
mov rdx, qword [rsi + 8]
mov r8, rax
shr r8, 0x39
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor eax, eax
mov qword [rsp + 0x38], rax
pcmpeqd xmm1, xmm1
mov qword [rsp + 0x40], rdx
and r9, rdx
movdqu xmm2, xmmword [r10 + r9]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r8d, xmm3
test r8d, r8d
je 0x1401540b0
mov rax, qword [rsp + 0x20]
movzx esi, byte [rax]
mov qword [rsp + 0x48], rsi
jmp 0x140153f1a
test sil, sil
je 0x140154247
lea r8d, [r11 - 1]
and r8d, r11d
test r8w, r8w
mov rdx, qword [rsp + 0x40]
mov r9, rcx
mov r10, rax
mov rsi, qword [rsp + 0x48]
je 0x1401540b0
mov r11d, r8d
tzcnt r15d, r11d
mov rcx, r9
add r15, r9
and r15, rdx
mov r8, r15
neg r8
lea r8, [r8 + r8*4]
shl r8, 4
lea r12, [r10 + r8]
mov rax, r10
add r8, r10
add r8, 0xffffffffffffffb0
cmp esi, 1
je 0x140153ff0
cmp esi, 2
jne 0x140154247
movzx esi, byte [r8]
cmp sil, 2
jne 0x140153ef0
mov rdx, qword [rsp + 0x20]
mov rdi, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov r14, qword [r12 - 0x48]
cmp rsi, qword [r14 + 0x10]
jne 0x140153ef9
mov rbp, qword [rdi + 8]
mov r14, qword [r14 + 8]
mov r13, rsi
neg r13
mov rdi, 0xffffffffffffffff
nop word cs:[rax + rax]
lea r9, [rdi + r13]
cmp r9, 0xffffffffffffffff
je 0x140154030
movzx r9d, byte [rbp + rdi + 1]
movzx ebx, byte [r14 + rdi + 1]
lea edx, [r9 - 0x41]
cmp dl, 0x1a
setb dl
shl dl, 5
lea r10d, [rbx - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
or dl, r9b
or r10b, bl
inc rdi
cmp dl, r10b
je 0x140153fa0
cmp rdi, rsi
jb 0x140153ef9
jmp 0x140154030
movzx esi, byte [r8]
cmp sil, 1
jne 0x140153ef0
mov rdx, qword [rsp + 0x20]
cmp byte [rdx + 1], 0
movzx esi, byte [r12 - 0x4f]
je 0x140154019
test sil, sil
jne 0x140154030
jmp 0x140153ef9
test sil, sil
jne 0x140153ef9
nop word cs:[rax + rax]
mov rdx, qword [rsp + 0x20]
mov r13, qword [rdx + 0x20]
cmp r13, qword [r12 - 0x30]
jne 0x140153ef9
mov rdx, qword [rsp + 0x20]
mov rbp, qword [rdx + 0x18]
mov r14, qword [r12 - 0x38]
mov rsi, r13
neg rsi
mov rdi, 0xffffffffffffffff
nop
lea rdx, [rsi + rdi]
cmp rdx, 0xffffffffffffffff
je 0x1401540dc
movzx edx, byte [rbp + rdi + 1]
movzx r9d, byte [r14 + rdi + 1]
lea r10d, [rdx - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
lea ebx, [r9 - 0x41]
cmp bl, 0x1a
setb bl
shl bl, 5
or r10b, dl
or bl, r9b
inc rdi
cmp r10b, bl
je 0x140154060
cmp rdi, r13
jb 0x140153ef9
jmp 0x1401540dc
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x1401541b9
mov rax, qword [rsp + 0x38]
add r9, rax
add r9, 0x10
add rax, 0x10
mov qword [rsp + 0x38], rax
jmp 0x140153eb6
shl r15, 4
lea rdx, [r15 + r15*4]
sar rdx, 4
movabs rsi, 0xcccccccccccccccd
imul rsi, rdx
lea r9, [rsi - 0x10]
and r9, qword [rsp + 0x40]
movdqu xmm0, xmmword [rax + r9]
pcmpeqd xmm1, xmm1
pcmpeqb xmm0, xmm1
psllw xmm0, 7
pmovmskb r10d, xmm0
movdqu xmm0, xmmword [rax + rsi]
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
test r10d, r10d
je 0x140154134
bsr r10w, r10w
xor r10d, 0xf
jmp 0x140154139
mov r10w, 0x10
mov r11, qword [rsp + 0x28]
or edx, 0x10000
tzcnt edx, edx
add r10d, edx
mov dl, pe_nt_image_headers64
cmp r10w, 0xf
ja 0x14015415a
inc qword [r11 + 0x10]
mov dl, 0xff
mov byte [rax + rsi], dl
mov byte [r9 + rax + 0x10], dl
dec qword [r11 + 0x18]
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movdqu xmm2, xmmword [r8 + 0x20]
movups xmm3, xmmword [r8 + 0x30]
movaps xmmword [rsp + 0x80], xmm3
movdqu xmm3, xmmword [r8 + 0x40]
movdqa xmmword [rsp + 0x90], xmm3
movdqa xmmword [rsp + 0x70], xmm2
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmmword [rsp + 0x50], xmm0
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x80], rax
jne 0x1401541cd
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x140154232
lea rax, [rsp + 0x80]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
mov rax, qword [rsp + 0x30]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
cmp byte [rsp + 0x50], 2
jb 0x14015421b
mov rsi, qword [rsp + 0x58]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
lea rcx, [rsi + 0x18]
mov r8, qword [rsi + 0x10]
call qword [rax + 0x18]
mov rcx, qword [0x14037f2d0]
xor edx, edx
mov r8, rsi
call fcn.1402699cc
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
call qword [rax + 0x18]
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadmod.rs
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_http_1.1.0_src_uri_scheme.rs
mov edx, 0x28
call fcn.1400a7990
mov rdi, rax
mov rcx, qword [0x14037f2d0]
xor edx, edx
mov r8, rsi
call fcn.1402699cc
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call qword [rax + 0x18]
mov rcx, rdi
call fcn.140269f10
call fcn.1400ae6d0
int3