Function at 0x140077050
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.140077450
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, xmm0
pcmpeqb xmm3, xmm2
pmovmskb r8d, xmm3
test r8d, r8d
je 0x1400772b0
mov rax, qword [rsp + 0x20]
movzx esi, byte [rax]
mov qword [rsp + 0x48], rsi
jmp 0x14007711a
test sil, sil
je 0x140077435
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 0x1400772b0
mov r11d, r8d
tzcnt r14d, r11d
mov rcx, r9
add r14, r9
and r14, rdx
mov r8, r14
neg r8
lea r8, [r8 + r8*4]
shl r8, 4
lea r15, [r10 + r8]
mov rax, r10
add r8, r10
add r8, 0xffffffffffffffb0
cmp esi, 1
je 0x1400771f0
cmp esi, 2
jne 0x140077435
movzx esi, byte [r8]
cmp sil, 2
jne 0x1400770f0
mov rdx, qword [rsp + 0x20]
mov rdi, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov r12, qword [r15 - 0x48]
cmp rsi, qword [r12 + 0x10]
jne 0x1400770f9
mov r13, qword [rdi + 8]
mov rbp, qword [r12 + 8]
mov r12, rsi
neg r12
mov rdi, 0xffffffffffffffff
nop word cs:[rax + rax]
lea r9, [r12 + rdi]
cmp r9, 0xffffffffffffffff
je 0x140077230
movzx r9d, byte [r13 + rdi + 1]
movzx ebx, byte [rbp + 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 0x1400771a0
cmp rdi, rsi
jb 0x1400770f9
jmp 0x140077230
movzx esi, byte [r8]
cmp sil, 1
jne 0x1400770f0
mov rdx, qword [rsp + 0x20]
cmp byte [rdx + 1], 0
movzx esi, byte [r15 - 0x4f]
je 0x140077218
test sil, sil
jne 0x140077230
jmp 0x1400770f9
test sil, sil
jne 0x1400770f9
nop word cs:[rax + rax]
mov rdx, qword [rsp + 0x20]
mov r12, qword [rdx + 0x20]
cmp r12, qword [r15 - 0x30]
jne 0x1400770f9
mov rdx, qword [rsp + 0x20]
mov r13, qword [rdx + 0x18]
mov r15, qword [r15 - 0x38]
mov rsi, r12
neg rsi
mov rdi, 0xffffffffffffffff
nop dword [rax]
lea rdx, [rsi + rdi]
cmp rdx, 0xffffffffffffffff
je 0x1400772dc
movzx edx, byte [r13 + rdi + 1]
movzx r9d, byte [r15 + 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 0x140077260
cmp rdi, r12
jb 0x1400770f9
jmp 0x1400772dc
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x1400773ae
mov rax, qword [rsp + 0x38]
add r9, rax
add r9, 0x10
add rax, 0x10
mov qword [rsp + 0x38], rax
jmp 0x1400770b6
shl r14, 4
lea rdx, [r14 + r14*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 0x140077334
bsr r10w, r10w
xor r10d, 0xf
jmp 0x140077339
mov r10w, 0x10
mov r11, qword [rsp + 0x28]
or edx, 0x10000
tzcnt edx, edx
add r10d, edx
mov dl, 0x80
cmp r10w, 0xf
ja 0x14007735a
inc qword [r11 + 0x10]
mov dl, 0xff
mov byte [rax + rsi], dl
mov byte [r9 + rax + 0x10], dl
dec qword [r11 + 0x18]
movups xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movdqu xmm2, xmmword [r8 + 0x20]
movdqu xmm3, xmmword [r8 + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movdqu xmm0, xmmword [r8 + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm3
movdqa xmmword [rsp + 0x70], xmm2
movdqa xmmword [rsp + 0x60], xmm1
movzx eax, byte [rsp + 0x50]
cmp al, 3
jne 0x1400773bc
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
jmp 0x140077420
movdqa xmm0, xmmword [rsp + 0x80]
movdqa xmm1, xmmword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
cmp al, 2
jb 0x140077409
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 + 0x10]
mov rcx, qword [0x14018aea8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
call qword [rax + 0x10]
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_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_src_threadmod.rs
lea r8, str.C:Usersmpx16.cargo_registry_srcindex.crates.io_6f17d22bba15001fhttp_0.2.11_srcuri_scheme.rs
mov edx, 0x28
call fcn.1401100d0
ud2