Function at 0x140081760
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 + 0x38], rcx
mov rcx, qword [rdx + 0x20]
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x28], r8
call fcn.1400814e0
mov rcx, qword [rsi]
mov qword [rsp + 0x40], rsi
mov r8, qword [rsi + 8]
mov qword [rsp + 0x30], r8
and r8, rax
shr rax, 0x39
movd xmm0, eax
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor edx, edx
pcmpeqd xmm1, xmm1
movdqu xmm2, xmmword [rcx + r8]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r11d, xmm3
test r11d, r11d
je 0x140081940
mov rax, qword [rsp + 0x28]
movzx ebp, byte [rax]
mov qword [rsp + 0x48], rdx
jmp 0x14008180f
test sil, sil
je 0x140081ac6
lea eax, [r11 - 1]
and ax, r11w
mov r11d, eax
mov rdx, qword [rsp + 0x48]
je 0x140081940
tzcnt r15d, r11d
add r15, r8
and r15, qword [rsp + 0x30]
mov rax, r15
neg rax
lea r9, [rax + rax*4]
shl r9, 4
lea rax, [rcx + r9]
add r9, rcx
add r9, 0xffffffffffffffb0
cmp ebp, 1
je 0x1400818b0
cmp ebp, 2
jne 0x140081ac6
movzx esi, byte [r9]
cmp sil, 2
jne 0x1400817f0
mov rdx, qword [rsp + 0x28]
mov rsi, qword [rdx + 8]
mov r12, qword [rsi + 0x10]
mov r14, qword [rax - 0x48]
cmp r12, qword [r14 + 0x10]
jne 0x1400817f9
mov r13, qword [rsi + 8]
mov r14, qword [r14 + 8]
xor esi, esi
nop
cmp r12, rsi
je 0x1400818d1
movzx edi, byte [r13 + rsi]
movzx r10d, byte [r14 + rsi]
inc rsi
lea ebx, [rdi - 0x41]
cmp bl, 0x1a
setb bl
shl bl, 5
lea edx, [r10 - 0x41]
cmp dl, 0x1a
setb dl
shl dl, 5
or bl, dil
or dl, r10b
cmp bl, dl
je 0x140081870
jmp 0x1400817f9
movzx esi, byte [r9]
cmp sil, 1
jne 0x1400817f0
mov rdx, qword [rsp + 0x28]
movzx esi, byte [rdx + 1]
cmp sil, byte [rax - 0x4f]
jne 0x1400817f9
mov rdx, qword [rsp + 0x28]
mov r12, qword [rdx + 0x20]
cmp r12, qword [rax - 0x30]
jne 0x1400817f9
mov rdx, qword [rsp + 0x28]
mov r13, qword [rdx + 0x18]
mov r14, qword [rax - 0x38]
xor esi, esi
nop word cs:[rax + rax]
cmp r12, rsi
je 0x140081965
movzx edx, byte [r13 + rsi]
movzx r10d, byte [r14 + rsi]
inc rsi
lea edi, [rdx - 0x41]
cmp dil, 0x1a
setb bl
shl bl, 5
lea edi, [r10 - 0x41]
cmp dil, 0x1a
setb dil
shl dil, 5
or bl, dl
or dil, r10b
cmp bl, dil
je 0x140081900
jmp 0x1400817f9
pcmpeqb xmm2, xmm1
pmovmskb eax, xmm2
test eax, eax
jne 0x140081a3f
add r8, rdx
add r8, 0x10
add rdx, 0x10
and r8, qword [rsp + 0x30]
jmp 0x1400817bd
shl r15, 4
lea rdx, [r15 + r15*4]
sar rdx, 4
movabs r8, 0xcccccccccccccccd
imul r8, rdx
lea r10, [r8 - 0x10]
and r10, qword [rsp + 0x30]
movdqu xmm0, xmmword [rcx + r10]
pcmpeqd xmm1, xmm1
pcmpeqb xmm0, xmm1
pmovmskb r11d, xmm0
movdqu xmm0, xmmword [rcx + r8]
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
test r11d, r11d
mov rsi, qword [rsp + 0x40]
je 0x1400819be
bsr r11w, r11w
xor r11d, 0xf
jmp 0x1400819c3
mov r11w, 0x10
or edx, 0x10000
tzcnt edx, edx
add r11d, edx
mov dl, pe_nt_image_headers64
cmp r11w, 0xf
ja 0x1400819df
inc qword [rsi + 0x10]
mov dl, 0xff
mov byte [rcx + r8], dl
mov byte [rcx + r10 + 0x10], dl
dec qword [rsi + 0x18]
movdqu xmm0, xmmword [r9]
movdqu xmm1, xmmword [r9 + 0x10]
movdqu xmm2, xmmword [r9 + 0x20]
movups xmm3, xmmword [r9 + 0x30]
movaps xmmword [rsp + 0x80], xmm3
movdqu xmm3, xmmword [r9 + 0x40]
movdqa xmmword [rsp + 0x90], xmm3
movdqa xmmword [rsp + 0x70], xmm2
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmmword [rsp + 0x50], xmm0
movabs rcx, 0x8000000000000000
cmp qword [rsp + 0x80], rcx
jne 0x140081a53
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x140081ab1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax - 0x10]
mov rax, qword [rsp + 0x38]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
cmp byte [rsp + 0x50], 2
jb 0x140081a9a
mov rsi, qword [rsp + 0x58]
lea rcx, [rsi + 0x18]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call qword [rax + 0x20]
mov rcx, qword [0x1401b2100]
xor edx, edx
mov r8, rsi
call fcn.14011d4ec
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
call qword [rax + 0x20]
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_759e07f063fb8e6306ff1bdaeb70af56a878b415library_std_src_threadmod.rs
lea r8, str.src_index.crates.io_6f17d22bba15001f_http_0.2.12_src_uri_scheme.rs
mov edx, 0x28
call fcn.14001b280
int3