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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x10]
cmp rax, qword [rcx + 0x10]
jbe 0x4d321e
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
mov rdx, rax
sub rax, rcx
mov qword [rsp + 0x80], rax
mov rbx, rax
sar rax, 0x3f
mov qword [rsp + 0x78], rax
mov rsi, rbx
sub rbx, rax
sar rbx, 1
add rbx, rcx
mov qword [rsp + 0x38], rbx
cmp rsi, 0x28
jg 0x4d3127
mov rdi, qword [rsp + 0x98]
mov qword [rsp], rdi
mov r8, qword [rsp + 0xa0]
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rbx
lea r9, [rdx - 1]
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x20], r9
call fcn.004d2ae0
mov rax, qword [rsp + 0xa8]
lea rcx, [rax + 1]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rsp + 0x70]
cmp rcx, rbx
jge 0x4d2d0b
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x98]
mov rsi, qword [rdx]
call rsi
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4d2d0b
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx + 1]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rsp + 0x70]
cmp rcx, rbx
jl 0x4d2ccc
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rcx
cmp rcx, rax
jge 0x4d2d63
mov rbx, qword [rsp + 0xa8]
mov qword [rsp], rbx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x98]
mov rsi, qword [rdx]
call rsi
movzx eax, byte [rsp + 0x10]
test al, al
jne 0x4d2d63
mov rbx, qword [rsp + 0x68]
lea rcx, [rbx + 1]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rcx
cmp rcx, rax
jl 0x4d2d24
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jge 0x4d2dbf
mov rbx, qword [rsp + 0xa8]
mov qword [rsp], rbx
lea rsi, [rax - 1]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x98]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4d3115
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jl 0x4d2d77
mov rax, rcx
mov rcx, qword [rsp + 0x48]
jge 0x4d2dfa
mov qword [rsp], rax
dec rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa0]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x68]
lea rcx, [rax + 1]
mov rax, qword [rsp + 0x60]
jmp 0x4d2d15
mov rbx, qword [rsp + 0xb0]
sub rbx, rcx
cmp rbx, 5
setl sil
jge 0x4d2f89
mov edx, 1
mov qword [rsp + 0x48], rcx
test dl, dl
je 0x4d2f84
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rax
cmp rdx, rax
jge 0x4d2e8c
lea rbx, [rax - 1]
mov qword [rsp + 0x80], rbx
mov qword [rsp], rbx
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0x98]
mov r8, qword [rdi]
mov rdx, rdi
call r8
movzx eax, byte [rsp + 0x10]
test al, al
jne 0x4d2e8c
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
cmp rdx, rax
jl 0x4d2e39
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
cmp rax, rcx
jge 0x4d2ee3
mov qword [rsp], rax
mov rbx, qword [rsp + 0xa8]
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0x98]
mov rsi, qword [rdx]
call rsi
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4d2f72
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
cmp rax, rcx
jl 0x4d2ea0
jge 0x4d2f1b
mov qword [rsp], rax
dec rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa0]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x58]
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
jmp 0x4d2e2a
mov rax, qword [rsp + 0xa8]
mov qword [rsp], rax
lea rax, [rcx - 1]
mov qword [rsp + 0x80], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rax, rcx
jmp 0x4d2ee3
mov rcx, rax
jmp 0x4d2f1b
mov rdi, qword [rsp + 0x78]
shr rdi, 0x3e
mov r8, qword [rsp + 0x80]
add rdi, r8
sar rdi, 2
cmp rbx, rdi
jl 0x4d2fad
mov edx, esi
jmp 0x4d2e18
mov rbx, qword [rsp + 0xa8]
mov qword [rsp], rbx
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x98]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x10]
mov byte [rsp + 0x2f], al
test al, al
je 0x4d30e2
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rcx
mov rbx, qword [rsp + 0x68]
lea rsi, [rbx - 1]
mov qword [rsp + 0x80], rsi
mov qword [rsp], rsi
mov rdi, qword [rsp + 0xa8]
mov qword [rsp + 8], rdi
mov rdx, qword [rsp + 0x98]
mov r8, qword [rdx]
call r8
movzx eax, byte [rsp + 0x10]
movzx ecx, byte [rsp + 0x2f]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4d30d2
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x80], rax
mov rbx, qword [rsp + 0x38]
mov qword [rsp], rbx
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x98]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x10]
test al, al
je 0x4d3092
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
cmp rax, 1
setg dl
mov rax, rcx
mov rcx, qword [rsp + 0x48]
jmp 0x4d2e18
mov rax, qword [rsp + 0x38]
mov qword [rsp], rax
mov rax, qword [rsp + 0x80]
dec rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, qword [rsp + 0x80]
jmp 0x4d307e
inc rcx
mov rax, qword [rsp + 0x80]
jmp 0x4d3038
mov rcx, qword [rsp + 0x48]
mov qword [rsp], rcx
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0xa0]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x48]
lea rcx, [rax + 1]
movzx eax, byte [rsp + 0x2f]
jmp 0x4d2fe6
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
jmp 0x4d2dc7
mov rdi, qword [rsp + 0x98]
mov qword [rsp], rdi
mov r8, qword [rsp + 0xa0]
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], rcx
shr rax, 0x3d
add rax, rsi
sar rax, 3
mov qword [rsp + 0x30], rax
lea r10, [rcx + rax]
mov qword [rsp + 0x18], r10
lea r10, [rcx + rax*2]
mov qword [rsp + 0x20], r10
call fcn.004d2ae0
mov rax, qword [rsp + 0x98]
mov qword [rsp], rax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x38]
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.004d2ae0
mov rax, qword [rsp + 0x98]
mov qword [rsp], rax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xb0]
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.004d2ae0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x80]
jmp 0x4d2c7b
call fcn.00452440
jmp fcn.004d2c00