Function at 0x494250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4945f5
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
xor eax, eax
xor ecx, ecx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x4942a6
dec rdx
mov r9, rdx
neg rdx
sar rdx, 0x3f
and rdx, 1
add rbx, rdx
mov rdx, r9
test rdx, rdx
jle 0x494596
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x46], r8b
movzx r9d, byte [rbx]
mov byte [rsp + 0x47], r9b
cmp r9b, 0x20
jbe 0x494504
cmp r9b, 0x22
je 0x494389
cmp r9b, 0x5c
jne 0x4942ef
inc rdi
cmp rdx, 1
jae 0x49428f
jmp 0x4945e7
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rdi
call sym.a.out.exe_os.appendBSBytes
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rbx, [rcx + 1]
cmp rbx, rdx
ja 0x494346
movzx r9d, byte [rsp + 0x47]
mov byte [rax + rcx], r9b
mov rsi, rbx
mov rcx, rax
xor edi, edi
movzx r8d, byte [rsp + 0x46]
mov rbx, qword [rsp + 0x68]
mov rax, rdx
mov rdx, qword [rsp + 0x70]
jmp 0x4942e4
mov qword [rsp + 0x50], rcx
lea rsi, [0x006091c0]
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 sym.a.out.exe_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 0x49431f
mov qword [rsp + 0x48], rdi
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov rax, rdi
shr rdi, 0x3f
lea rcx, [rax + rdi]
sar rcx, 1
mov qword [rsp + 0x18], rcx
call sym.a.out.exe_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 + 0x48]
bt ebx, 0
jb 0x49449c
movzx ebx, byte [rsp + 0x46]
test bl, bl
je 0x494490
mov rsi, qword [rsp + 0x70]
cmp rsi, 1
jle 0x494489
mov rdi, qword [rsp + 0x68]
cmp byte [rdi + 1], 0x22
jne 0x494484
lea r8, [rcx + 1]
cmp r8, rdx
ja 0x494437
movzx r9d, byte [rsp + 0x47]
mov byte [rax + rcx], r9b
inc rdi
dec rsi
xor ebx, 1
mov rcx, rax
mov rax, rdx
mov rdx, rsi
mov rsi, r8
mov r8d, ebx
mov rbx, rdi
xor edi, edi
jmp 0x4942e4
lea rbx, [0x006091c0]
mov qword [rsp], rbx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], r8
call sym.a.out.exe_runtime.growslice
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea r8, [rcx + 1]
mov rcx, qword [rsp + 0x50]
movzx ebx, byte [rsp + 0x46]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
jmp 0x49440b
mov r8, rcx
jmp 0x49441b
mov rdi, qword [rsp + 0x68]
jmp 0x494484
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
jmp 0x494484
lea rbx, [rcx + 1]
cmp rbx, rdx
ja 0x4944c6
movzx r9d, byte [rsp + 0x47]
mov byte [rax + rcx], r9b
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov r8, rbx
movzx ebx, byte [rsp + 0x46]
jmp 0x49441e
lea rsi, [0x006091c0]
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 sym.a.out.exe_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 0x4944a5
cmp r9b, 9
jne 0x494587
test r8b, r8b
jne 0x4942ef
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rdi
call sym.a.out.exe_os.appendBSBytes
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rdx
mov rax, qword [rsp + 0x70]
dec rax
mov rcx, rax
neg rax
sar rax, 0x3f
and rax, 1
mov rdx, qword [rsp + 0x68]
add rax, rdx
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
cmp r9b, 0x20
je 0x49450a
jmp 0x4942ef
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rdi
call sym.a.out.exe_os.appendBSBytes
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov eax, 1
mov rcx, rdx
call sym.a.out.exe_runtime.panicSliceB
nop
call sym.a.out.exe_runtime.morestack_noctxt
jmp sym.a.out.exe_os.readNextArg