Function at 0x47ced0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x47d2b5
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor edx, edx
xor ebx, ebx
mov rsi, rdx
mov rdi, rsi
xor r8d, r8d
jmp 0x47cf2b
dec rcx
mov r9, rcx
neg rcx
sar rcx, 0x3f
and rcx, 1
add rax, rcx
mov rcx, r9
test rcx, rcx
jle 0x47d25a
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rcx
mov byte [rsp + 0x46], r8b
movzx r9d, byte [rax]
mov byte [rsp + 0x47], r9b
cmp r9b, 0x20
jbe 0x47d1be
cmp r9b, 0x22
je 0x47d014
cmp r9b, 0x5c
jne 0x47cf77
inc rdi
cmp rcx, 1
jae 0x47cf14
jmp 0x47d2ae
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
call dbg.os.appendBSBytes
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rbx, [rcx + 1]
cmp rbx, rdx
jg 0x47cfd1
movzx r9d, byte [rsp + 0x47]
mov byte [rax + rcx], r9b
mov rcx, qword [rsp + 0x80]
mov rsi, rdx
mov rdx, rbx
mov rbx, rax
xor edi, edi
movzx r8d, byte [rsp + 0x46]
mov rax, qword [rsp + 0x78]
jmp 0x47cf6c
mov qword [rsp + 0x50], rcx
lea rsi, [0x004e04e0]
mov qword [rsp], rsi
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rbx
call dbg.runtime.growslice
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rbx, [rcx + 1]
mov rcx, qword [rsp + 0x50]
jmp 0x47cfa7
mov qword [rsp + 0x48], rdi
mov rax, rdi
sar rdi, 0x3f
shr rdi, 0x3f
lea rcx, [rax + rdi]
sar rcx, 1
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x18], rcx
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
call dbg.os.appendBSBytes
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
shl rbx, 1
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
test rsi, rsi
jne 0x47d154
movzx ebx, byte [rsp + 0x46]
test bl, bl
je 0x47d145
mov rsi, qword [rsp + 0x80]
cmp rsi, 1
jle 0x47d13e
mov rdi, qword [rsp + 0x78]
movzx r8d, byte [rdi + 1]
lea r9, [rdi + 1]
cmp r8b, 0x22
jne 0x47d131
lea rdi, [rcx + 1]
cmp rdi, rdx
jg 0x47d0dc
movzx r8d, byte [rsp + 0x47]
mov byte [rax + rcx], r8b
lea rcx, [rsi - 1]
xor ebx, 1
mov rsi, rdx
mov rdx, rdi
xor edi, edi
mov r8d, ebx
mov rbx, rax
mov rax, r9
jmp 0x47cf6c
mov qword [rsp + 0x60], r9
lea rbx, [0x004e04e0]
mov qword [rsp], rbx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rdi
call dbg.runtime.growslice
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rdi, [rcx + 1]
mov rcx, qword [rsp + 0x50]
movzx ebx, byte [rsp + 0x46]
mov rsi, qword [rsp + 0x80]
mov r9, qword [rsp + 0x60]
jmp 0x47d0b5
mov r9, rdi
mov rcx, rsi
mov rdi, qword [rsp + 0x50]
jmp 0x47d0c3
mov rdi, qword [rsp + 0x78]
jmp 0x47d131
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
jmp 0x47d131
lea rbx, [rcx + 1]
cmp rbx, rdx
jg 0x47d180
movzx esi, byte [rsp + 0x47]
mov byte [rax + rcx], sil
mov rcx, qword [rsp + 0x80]
mov r9, qword [rsp + 0x78]
mov rdi, rbx
movzx ebx, byte [rsp + 0x46]
jmp 0x47d0c6
lea rsi, [0x004e04e0]
mov qword [rsp], rsi
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rbx
call dbg.runtime.growslice
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rbx, [rcx + 1]
mov rcx, qword [rsp + 0x50]
jmp 0x47d15d
cmp r9b, 9
jne 0x47d24b
test r8b, r8b
jne 0x47cf77
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
call dbg.os.appendBSBytes
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rdx
mov rax, qword [rsp + 0x80]
dec rax
mov rcx, rax
neg rax
sar rax, 0x3f
and rax, 1
mov rdx, qword [rsp + 0x78]
add rax, rdx
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rcx
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
cmp r9b, 0x20
je 0x47d1c8
jmp 0x47cf77
mov qword [rsp], rbx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
call dbg.os.appendBSBytes
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
call dbg.runtime.panicslice
ud2
call dbg.runtime.morestack_noctxt
jmp dbg.os.readNextArg