Function at 0x4e3920
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 0x4e3fed
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 0x4e3ef6
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.004e37c0
mov rax, qword [rsp + 0xa8]
lea rcx, [rax + 1]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x70]
cmp rcx, rdx
jge 0x4e3a39
mov rbx, qword [rsp + 0x98]
mov rsi, qword [rbx + 0x28]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
mov rdi, qword [rsp + 0xa0]
mov qword [rsp], rdi
call rsi
movzx eax, byte [rsp + 0x18]
test al, al
je 0x4e3a39
mov rdx, qword [rsp + 0x50]
lea rcx, [rdx + 1]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x70]
cmp rcx, rdx
jl 0x4e39ec
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rcx
cmp rcx, rax
jge 0x4e3a9f
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x28]
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rcx
mov rdi, qword [rsp + 0xa0]
mov qword [rsp], rdi
call rbx
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x4e3a9f
mov rdx, qword [rsp + 0x68]
lea rcx, [rdx + 1]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rcx
cmp rcx, rax
jl 0x4e3a52
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jge 0x4e3b09
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x28]
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 8], rsi
lea rdi, [rax - 1]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x10], rdi
mov r8, qword [rsp + 0xa0]
mov qword [rsp], r8
call rbx
movzx eax, byte [rsp + 0x18]
test al, al
je 0x4e3ee4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jl 0x4e3ab3
mov rax, rcx
mov rcx, qword [rsp + 0x48]
jge 0x4e3b52
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x30]
mov qword [rsp + 8], rax
dec rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x10], rcx
mov rsi, qword [rsp + 0xa0]
mov qword [rsp], rsi
call rbx
mov rax, qword [rsp + 0x68]
lea rcx, [rax + 1]
mov rax, qword [rsp + 0x60]
jmp 0x4e3a43
mov rdx, qword [rsp + 0xb0]
sub rdx, rcx
cmp rdx, 5
setl bl
jge 0x4e3d13
mov edx, 1
mov qword [rsp + 0x48], rcx
test dl, dl
je 0x4e3d0e
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rax
cmp rdx, rax
jge 0x4e3bed
mov rbx, qword [rsp + 0x98]
mov rsi, qword [rbx + 0x28]
lea rdi, [rax - 1]
mov qword [rsp + 0x80], rdi
mov qword [rsp + 8], rdi
mov r8, qword [rsp + 0xa8]
mov qword [rsp + 0x10], r8
mov r9, qword [rsp + 0xa0]
mov qword [rsp], r9
call rsi
movzx eax, byte [rsp + 0x18]
test al, al
jne 0x4e3bed
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
cmp rdx, rax
jl 0x4e3b90
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
cmp rax, rcx
jge 0x4e3c52
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x28]
mov qword [rsp + 8], rax
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0x10], rsi
mov rdi, qword [rsp + 0xa0]
mov qword [rsp], rdi
call rbx
movzx eax, byte [rsp + 0x18]
test al, al
je 0x4e3cfc
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
cmp rax, rcx
jl 0x4e3c01
jge 0x4e3c98
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x30]
mov qword [rsp + 8], rax
dec rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x10], rcx
mov rsi, qword [rsp + 0xa0]
mov qword [rsp], rsi
call rbx
mov rax, qword [rsp + 0x58]
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
jmp 0x4e3b81
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x30]
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 8], rdx
dec rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x10], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp], rdx
call rax
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 0x4e3c52
mov rcx, rax
jmp 0x4e3c98
mov rsi, qword [rsp + 0x78]
shr rsi, 0x3e
mov rdi, qword [rsp + 0x80]
add rsi, rdi
sar rsi, 2
cmp rdx, rsi
jl 0x4e3d37
mov edx, ebx
jmp 0x4e3b6f
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x28]
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x10], rdi
mov r8, qword [rsp + 0xa0]
mov qword [rsp], r8
call rbx
movzx eax, byte [rsp + 0x18]
mov byte [rsp + 0x2f], al
test al, al
je 0x4e3ea3
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x28]
mov rsi, qword [rsp + 0x68]
lea rdi, [rsi - 1]
mov qword [rsp + 0x80], rdi
mov qword [rsp + 8], rdi
mov r8, qword [rsp + 0xa8]
mov qword [rsp + 0x10], r8
mov r9, qword [rsp + 0xa0]
mov qword [rsp], r9
call rbx
movzx eax, byte [rsp + 0x18]
movzx ecx, byte [rsp + 0x2f]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4e3e93
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x98]
mov rbx, qword [rdx + 0x28]
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0xa8]
mov qword [rsp + 0x10], rdi
mov r8, qword [rsp + 0xa0]
mov qword [rsp], r8
call rbx
movzx eax, byte [rsp + 0x18]
test al, al
je 0x4e3e45
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
cmp rax, 1
setg dl
mov rax, rcx
mov rcx, qword [rsp + 0x48]
jmp 0x4e3b6f
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 8], rdx
mov rdx, qword [rsp + 0x80]
dec rdx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0xa0]
mov qword [rsp], rbx
call rcx
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, qword [rsp + 0x80]
jmp 0x4e3e31
inc rcx
mov rax, qword [rsp + 0x80]
jmp 0x4e3ddd
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rcx + 0x30]
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 8], rbx
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0xa0]
mov qword [rsp], rsi
call rdx
mov rax, qword [rsp + 0x48]
lea rcx, [rax + 1]
movzx eax, byte [rsp + 0x2f]
jmp 0x4e3d7e
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
jmp 0x4e3b11
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.004e37c0
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.004e37c0
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.004e37c0
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 0x4e399b
call fcn.00452210
jmp fcn.004e3920