Function at 0x4c9f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x4ca245
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x40], 0
mov byte [rsp + 2], 0
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x60], rdx
cmp rdx, 3
jl 0x4c9f73
jmp 0x4c9f9c
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x40], 1
mov byte [rsp + 2], 0
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov qword [rsp + 0x30], 1
jmp 0x4c9fa7
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x60], rdx
cmp qword [rsp + 0x30], rdx
jl 0x4c9fc5
nop dword [rax + rax]
jmp 0x4ca05e
mov rdx, qword [rsp + 0x90]
add rdx, qword [rsp + 0x30]
cmp byte [rdx], 0x5d
je 0x4c9fd9
jmp 0x4ca052
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x10], 1
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 8], 0
mov byte [rsp + 3], 0
mov qword [rsp + 0x18], 0
nop dword [rax]
cmp qword [rsp + 0x10], rdx
jge 0x4ca029
jmp 0x4ca046
mov qword [rsp + 8], 0
mov byte [rsp + 3], 0
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x18], rdx
jmp 0x4ca17b
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x18], rdx
jmp 0x4ca087
jmp 0x4ca054
inc qword [rsp + 0x30]
jmp 0x4c9fa7
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x40], 1
mov byte [rsp + 2], 0
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rdx, qword [rsp + 0x18]
cmp qword [rsp + 0x48], rdx
setg byte [rsp + 6]
jg 0x4ca09a
jmp 0x4ca0ae
mov rdx, qword [rsp + 0x70]
add rdx, qword [rsp + 0x18]
cmp byte [rdx], 0x30
setae byte [rsp + 6]
jmp 0x4ca0b0
jmp 0x4ca0b0
movzx edx, byte [rsp + 6]
mov byte [rsp + 7], dl
test dl, dl
jne 0x4ca0bf
jmp 0x4ca0d3
mov rdx, qword [rsp + 0x70]
add rdx, qword [rsp + 0x18]
cmp byte [rdx], 0x39
setbe byte [rsp + 7]
jmp 0x4ca0d5
jmp 0x4ca0d5
cmp byte [rsp + 7], 0
jne 0x4ca0e5
nop dword [rax]
jmp 0x4ca179
mov rdx, qword [rsp + 8]
mov qword [rsp + 0x50], rdx
cmp rdx, 0xf4240
setg byte [rsp + 5]
jg 0x4ca100
jmp 0x4ca102
jmp 0x4ca112
cmp qword [rsp + 0x50], 0xfffffffffff0bdc0
setl byte [rsp + 5]
jmp 0x4ca112
movzx edx, byte [rsp + 5]
mov byte [rsp], dl
jmp 0x4ca120
test dl, dl
jne 0x4ca126
jmp 0x4ca142
mov qword [rsp + 8], 0
mov byte [rsp + 3], 0
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x18], rdx
nop
jmp 0x4ca17b
mov rdx, qword [rsp + 8]
lea rdx, [rdx + rdx*4]
mov rsi, qword [rsp + 0x70]
add rsi, qword [rsp + 0x18]
movzx esi, byte [rsi]
add esi, 0xffffffd0
movzx esi, sil
lea rdx, [rsi + rdx*2]
mov qword [rsp + 8], rdx
mov byte [rsp + 3], 1
jmp 0x4ca16f
inc qword [rsp + 0x18]
jmp 0x4ca087
jmp 0x4ca17b
mov rdx, qword [rsp + 8]
mov qword [rsp + 0x58], rdx
movzx esi, byte [rsp + 3]
mov byte [rsp + 4], sil
mov rsi, qword [rsp + 0x18]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], rdx
movzx edx, byte [rsp + 4]
mov byte [rsp + 1], dl
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rdx
movzx edx, byte [rsp + 1]
mov esi, edx
xor edx, 1
mov byte [rsp + 6], dl
nop
test sil, sil
jne 0x4ca1c7
jmp 0x4ca1d8
mov rdx, qword [rsp + 0x20]
cmp qword [rsp + 0x30], rdx
setne byte [rsp + 6]
jmp 0x4ca1da
jmp 0x4ca1da
cmp byte [rsp + 6], 0
nop
jne 0x4ca1e4
jmp 0x4ca211
mov qword [rsp + 0x28], 0
mov rdx, qword [rsp + 0x30]
inc rdx
mov qword [rsp + 0x40], rdx
mov byte [rsp + 2], 0
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov rdx, qword [rsp + 0x38]
dec rdx
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x30]
inc rdx
mov qword [rsp + 0x40], rdx
mov byte [rsp + 2], 1
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
mov ecx, 1
sub rsp, 0xffffffffffffff80
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00451b40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004c9f20