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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov r10, rdx
xor r11d, r11d
mov rax, rdx
mov esi, 0
sub rax, 0x1a
cmovb rax, r11
jbe 0x1400119f8
mov r11d, 0x20
xor esi, esi
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_8_
lea rdi, [rsi + 0x1a]
cmp rdi, r10
ja 0x140011bae
test r11, r11
je 0x140011bae
cmp r11, r9
ja 0x140011bae
mov rdi, qword [rcx + rsi]
bswap rdi
mov rbx, rdi
shr rbx, 0x3a
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x20], bl
mov rbx, rdi
shr rbx, 0x34
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x1f], bl
mov rbx, rdi
shr rbx, 0x2e
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x1e], bl
mov rbx, rdi
shr rbx, 0x28
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x1d], bl
mov rbx, rdi
shr rbx, 0x22
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x1c], bl
mov rbx, rdi
shr rbx, 0x1c
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x1b], bl
mov ebx, edi
shr ebx, 0x16
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x1a], bl
shr edi, 0x10
and edi, 0x3f
mov bl, byte [rdi + rdx]
mov rdi, qword [rcx + rsi + 6]
bswap rdi
mov byte [r8 + r11 - 0x19], bl
mov rbx, rdi
shr rbx, 0x3a
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x18], bl
mov rbx, rdi
shr rbx, 0x34
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x17], bl
mov rbx, rdi
shr rbx, 0x2e
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x16], bl
mov rbx, rdi
shr rbx, 0x28
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x15], bl
mov rbx, rdi
shr rbx, 0x22
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x14], bl
mov rbx, rdi
shr rbx, 0x1c
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x13], bl
mov ebx, edi
shr ebx, 0x16
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x12], bl
shr edi, 0x10
and edi, 0x3f
mov bl, byte [rdi + rdx]
mov byte [r8 + r11 - 0x11], bl
mov rdi, qword [rcx + rsi + 0xc]
bswap rdi
mov rbx, rdi
shr rbx, 0x3a
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0x10], bl
mov rbx, rdi
shr rbx, 0x34
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0xf], bl
mov rbx, rdi
shr rbx, 0x2e
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0xe], bl
mov rbx, rdi
shr rbx, 0x28
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0xd], bl
mov rbx, rdi
shr rbx, 0x22
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0xc], bl
mov rbx, rdi
shr rbx, 0x1c
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0xb], bl
mov ebx, edi
shr ebx, 0x16
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 0xa], bl
shr edi, 0x10
and edi, 0x3f
mov bl, byte [rdi + rdx]
mov byte [r8 + r11 - 9], bl
mov rdi, qword [rcx + rsi + 0x12]
bswap rdi
mov rbx, rdi
shr rbx, 0x3a
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 8], bl
mov rbx, rdi
shr rbx, 0x34
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 7], bl
mov rbx, rdi
shr rbx, 0x2e
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 6], bl
mov rbx, rdi
shr rbx, 0x28
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 5], bl
mov rbx, rdi
shr rbx, 0x22
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 4], bl
mov rbx, rdi
shr rbx, 0x1c
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 3], bl
mov ebx, edi
shr ebx, 0x16
and ebx, 0x3f
mov bl, byte [rbx + rdx]
mov byte [r8 + r11 - 2], bl
shr edi, 0x10
and edi, 0x3f
mov bl, byte [rdi + rdx]
mov byte [r8 + r11 - 1], bl
add rsi, 0x18
add r11, 0x20
cmp rsi, rax
jbe 0x140011789
add r11, 0xffffffffffffffe0
mov edi, 3
mov rax, r10
xor edx, edx
div rdi
mov rdi, r10
sub rdi, rdx
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_8_
cmp rsi, rdi
jae 0x140011aba
cmp rsi, 0xfffffffffffffffc
ja 0x140011bae
lea rbx, [rsi + 3]
cmp rbx, r10
ja 0x140011bae
cmp r11, 0xfffffffffffffffb
ja 0x140011bae
lea r14, [r11 + 4]
cmp r14, r9
ja 0x140011bae
movzx ebp, byte [rcx + rsi]
mov r15d, ebp
shr r15d, 2
mov r15b, byte [r15 + rax]
mov byte [r8 + r11], r15b
mov r15b, byte [rcx + rsi + 1]
shl bpl, 4
mov r12d, r15d
shr r12b, 4
or r12b, bpl
movzx r12d, r12b
and r12d, 0x3f
mov bpl, byte [r12 + rax]
mov byte [r8 + r11 + 1], bpl
movzx esi, byte [rcx + rsi + 2]
shl r15b, 2
mov ebp, esi
shr bpl, 6
or bpl, r15b
movzx r15d, bpl
and r15d, 0x3f
mov bpl, byte [r15 + rax]
mov byte [r8 + r11 + 2], bpl
and esi, 0x3f
mov sil, byte [rsi + rax]
mov byte [r8 + r11 + 3], sil
mov r11, r14
mov rsi, rbx
jmp 0x140011a12
cmp rdx, 1
je 0x140011b38
cmp rdx, 2
jne 0x140011b76
cmp r11, r9
jae 0x140011bae
movzx esi, byte [rcx + rdi]
mov ebx, esi
shr ebx, 2
mov bl, byte [rbx + rax]
mov byte [r8 + r11], bl
inc rdi
cmp rdi, r10
jae 0x140011bae
lea r10, [r11 + 1]
cmp r10, r9
jae 0x140011bae
mov cl, byte [rcx + rdi]
mov r10d, ecx
shr r10b, 4
shl sil, 4
or sil, r10b
movzx r10d, sil
and r10d, 0x3f
mov r10b, byte [r10 + rax]
mov byte [r8 + r11 + 1], r10b
lea r10, [r11 + 2]
cmp r10, r9
jae 0x140011bae
shl cl, 2
and cl, 0x3c
mov esi, 3
jmp 0x140011b64
cmp r11, r9
jae 0x140011bae
movzx ecx, byte [rcx + rdi]
mov r10d, ecx
shr r10d, 2
mov r10b, byte [r10 + rax]
mov byte [r8 + r11], r10b
lea r10, [r11 + 1]
cmp r10, r9
jae 0x140011bae
shl cl, 4
and cl, 0x30
mov esi, 2
movzx ecx, cl
mov al, byte [rcx + rax]
mov byte [r8 + r10], al
add r11, rsi
cmp r11, r9
ja 0x140011bae
sub r9, r11
add r8, r11
mov rcx, rdx
xor rcx, 3
xor eax, eax
test rdx, rdx
je 0x140011b9e
cmp rcx, rax
jbe 0x140011b9e
cmp r9, rax
je 0x140011bae
mov byte [r8 + rax], 0x3d
inc rax
jmp 0x140011b85
add r11, rax
jb 0x140011bae
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2