Function at 0x4c0c60
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 8]
cmp rax, qword [rcx + 0x10]
jbe 0x4c11fe
sub rsp, 0x88
mov qword [rsp + 0x80], rbp
lea rbp, [rsp + 0x80]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
lea rdx, [rcx + rax]
shr rdx, 1
mov qword [rsp + 0x78], rdx
mov rbx, rcx
sub rcx, rax
mov qword [rsp + 0x70], rcx
cmp rcx, 0x28
jg 0x4c110d
mov rcx, qword [rsp + 0x90]
mov qword [rsp], rcx
mov rsi, qword [rsp + 0x98]
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rdx
lea rdi, [rbx - 1]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rdi
call fcn.004c0b50
mov rax, qword [rsp + 0xa0]
lea rcx, [rax + 1]
jmp 0x4c0d1c
mov rbx, qword [rsp + 0x48]
lea rcx, [rbx + 1]
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rcx
mov rbx, qword [rsp + 0x40]
cmp rcx, rbx
jge 0x4c0d4a
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
movzx eax, byte [rsp + 0x10]
test al, al
jne 0x4c0d0b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
jmp 0x4c0e22
mov rbx, qword [rsp + 0x60]
lea rcx, [rbx + 1]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rcx
cmp rcx, rax
jge 0x4c0d98
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4c0d59
mov rax, qword [rsp + 0x68]
jmp 0x4c0da4
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jge 0x4c1100
mov rcx, qword [rsp + 0xa0]
mov qword [rsp], rcx
lea rbx, [rax - 1]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rdx]
call rsi
movzx eax, byte [rsp + 0x10]
test al, al
jne 0x4c0d9f
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
jge 0x4c0e2c
mov qword [rsp], rax
dec rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x60]
lea rcx, [rax + 1]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
jmp 0x4c0d67
mov rbx, qword [rsp + 0xa8]
sub rbx, rcx
cmp rbx, 5
setl sil
jge 0x4c0f90
mov edx, 1
mov qword [rsp + 0x40], rcx
test dl, dl
je 0x4c0f8b
mov rdx, qword [rsp + 0x48]
jmp 0x4c0f30
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
cmp rdx, rax
jge 0x4c0eaa
lea rcx, [rax - 1]
mov qword [rsp + 0x70], rcx
mov qword [rsp], rcx
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0x90]
mov rsi, qword [rdx]
call rsi
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4c0e61
mov rax, qword [rsp + 0x50]
jmp 0x4c0eba
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + 1]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
jge 0x4c0efd
mov qword [rsp], rax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
movzx eax, byte [rsp + 0x10]
test al, al
jne 0x4c0eb1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
jge 0x4c0f3a
mov qword [rsp], rax
dec rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rdx
jmp 0x4c0e70
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
lea rax, [rcx - 1]
mov qword [rsp + 0x70], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb8], rax
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
mov rcx, rax
jmp 0x4c0f3a
mov rdi, qword [rsp + 0x70]
mov r8, rdi
sar rdi, 0x3f
shr rdi, 0x3e
add rdi, r8
sar rdi, 2
cmp rbx, rdi
jl 0x4c0fb3
mov edx, esi
jmp 0x4c0e4a
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
movzx eax, byte [rsp + 0x10]
mov byte [rsp + 0x2f], al
test al, al
je 0x4c10d2
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x60]
lea rbx, [rax - 1]
mov qword [rsp + 0x70], rbx
mov qword [rsp], rbx
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x10]
movzx ecx, byte [rsp + 0x2f]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4c10c5
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], rcx
mov rbx, qword [rsp + 0x78]
mov qword [rsp], rbx
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4c108e
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
cmp rax, 1
setg dl
mov rax, rcx
mov rcx, qword [rsp + 0x40]
jmp 0x4c0e4a
mov rax, qword [rsp + 0x78]
mov qword [rsp], rax
mov rax, qword [rsp + 0x70]
dec rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x38]
inc rax
mov rcx, qword [rsp + 0x70]
jmp 0x4c107a
inc rcx
mov rax, qword [rsp + 0x70]
jmp 0x4c103a
mov rax, qword [rsp + 0x68]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x68]
lea rcx, [rax + 1]
jmp 0x4c0fec
mov rax, rcx
mov rcx, qword [rsp + 0x68]
jmp 0x4c0df4
mov rdx, qword [rsp + 0x90]
mov qword [rsp], rdx
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rax
mov rsi, rcx
sar rcx, 0x3f
shr rcx, 0x3d
add rcx, rsi
sar rcx, 3
mov qword [rsp + 0x30], rcx
lea rdi, [rcx + rax]
mov qword [rsp + 0x18], rdi
lea rdi, [rax + rcx*2]
mov qword [rsp + 0x20], rdi
call fcn.004c0b50
mov rax, qword [rsp + 0x90]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0x30]
mov rsi, rdx
sub rdx, rbx
mov qword [rsp + 0x18], rdx
lea rdx, [rsi + rbx]
mov qword [rsp + 0x20], rdx
call fcn.004c0b50
mov rax, qword [rsp + 0x90]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa8]
lea rbx, [rdx - 1]
mov qword [rsp + 0x10], rbx
mov rsi, qword [rsp + 0x30]
mov rdi, rbx
sub rbx, rsi
mov qword [rsp + 0x18], rbx
shl rsi, 1
sub rdi, rsi
mov qword [rsp + 0x20], rdi
call fcn.004c0b50
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa8]
jmp 0x4c0cc7
call fcn.00452950
jmp fcn.004c0c60