Function at 0x4026e5
Capabilities:
Encode data using base64

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor eax, eax
mov rbx, rcx
test rcx, rcx
je 0x4026fe
mov rax, qword [rcx]
xor edi, edi
imul rax, rax, 4
seto dil
jno 0x40270f
call fcn.0044c4f5
cqo
mov ebp, 3
idiv rbp
add rax, 6
mov rcx, rax
jns 0x402733
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.0044be0e
mov rdx, rax
xor ecx, ecx
xor esi, esi
call fcn.0044ab38
mov r9, rax
test rbx, rbx
je 0x402755
mov rsi, qword [rbx]
mov rax, rsi
cqo
idiv rbp
mov rdi, rdx
mov rbp, rsi
xor r10d, r10d
sub rbp, rdi
seto r10b
jo 0x40270a
xor r8d, r8d
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789___f
cmp rbp, r10
jne 0x402781
test rbx, rbx
jne 0x4028a4
jmp 0x4028ba
cmp r10, rsi
mov r11, qword [rbx]
jge 0x40295d
movzx edx, byte [rbx + r10 + 0x10]
mov rax, r10
shl edx, 0x10
mov r13d, edx
xor edx, edx
inc rax
js 0x4027a8
cmp rax, r10
jae 0x4027ad
mov edx, 1
mov rcx, rax
test rdx, rdx
jne 0x40270a
test rax, rax
js 0x4027c5
cmp rax, r11
jl 0x4027d7
jmp 0x4027ce
mov ecx, 1
shl rcx, 0x3f
lea rdx, [r11 - 1]
call fcn.0044cbbf
movzx edx, byte [rbx + rax + 0x10]
shl edx, 8
or edx, r13d
add rcx, 1
jo 0x40270a
cmp rcx, r11
jge 0x4027ce
test rcx, rcx
js 0x4027ce
movzx r11d, byte [rbx + rcx + 0x10]
lea r10, [rax + 2]
or r11d, edx
test r9, r9
je 0x4029c9
mov rdx, qword [r9]
cmp r8, rdx
jge 0x4029c4
mov eax, r11d
shr eax, 0x12
mov al, byte [r12 + rax]
mov byte [r9 + r8 + 0x10], al
mov rax, r8
inc rax
js 0x40270a
cmp rax, r8
jb 0x40270a
test rax, rax
js 0x402846
cmp rdx, rax
jg 0x40284e
dec rdx
mov rcx, rax
jmp 0x4027d2
mov ecx, r11d
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [r12 + rcx]
mov byte [r9 + rax + 0x10], cl
lea rcx, [rax + 1]
cmp rdx, rcx
jle 0x402a28
mov r8d, r11d
shr r8d, 6
and r8d, 0x3f
mov r8b, byte [r12 + r8]
mov byte [r9 + rcx + 0x10], r8b
lea rcx, [rax + 2]
cmp rdx, rcx
jle 0x402a28
and r11d, 0x3f
lea r8, [rax + 3]
mov dl, byte [r12 + r11]
mov byte [r9 + rcx + 0x10], dl
jmp 0x40276e
mov rcx, qword [rbx]
mov r11d, 3
mov rax, rcx
cqo
idiv r11
dec rdx
je 0x4028c9
cmp rdi, 2
jne 0x402a3a
jmp 0x402955
cmp rbp, rcx
jl 0x4028da
lea rdx, [rcx - 1]
mov rcx, rbp
jmp 0x4027d2
movzx eax, byte [rbx + rbp + 0x10]
mov rdx, rbp
shl eax, 0x10
inc rdx
js 0x40270a
cmp rdx, rbp
jb 0x40270a
test r9, r9
je 0x4029c9
mov rdx, qword [r9]
cmp r8, rdx
jge 0x4029c4
mov ecx, eax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789___f
shr ecx, 0x12
mov cl, byte [r10 + rcx]
mov byte [r9 + r8 + 0x10], cl
lea rcx, [r8 + 1]
cmp rdx, rcx
jle 0x402a28
shr eax, 0xc
and eax, 0x30
mov al, byte [r10 + rax]
mov byte [r9 + rcx + 0x10], al
lea rcx, [r8 + 2]
cmp rdx, rcx
jle 0x402a28
mov byte [r9 + rcx + 0x10], 0x3d
jmp 0x402a1f
cmp r10, rsi
mov r11, qword [rbx]
jl 0x402971
or rdx, 0xffffffffffffffff
test rbx, rbx
je 0x402969
add rdx, r11
mov rcx, r10
jmp 0x4027d2
movzx eax, byte [rbx + r10 + 0x10]
mov rcx, r10
shl eax, 0x10
mov edx, eax
inc rcx
js 0x40270a
cmp rcx, r10
jb 0x40270a
test rcx, rcx
js 0x4027ce
cmp r11, rcx
jle 0x4027ce
movzx eax, byte [rbx + rcx + 0x10]
shl eax, 8
or eax, edx
add rcx, 1
jo 0x40270a
test r9, r9
je 0x4029c9
mov rdx, qword [r9]
cmp r8, rdx
jl 0x4029d5
dec rdx
jmp 0x4029cd
or rdx, 0xffffffffffffffff
mov rcx, r8
jmp 0x4027d2
mov ecx, eax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789___f
shr ecx, 0x12
mov cl, byte [r10 + rcx]
mov byte [r9 + r8 + 0x10], cl
lea rcx, [r8 + 1]
cmp rdx, rcx
jle 0x402a28
mov r11d, eax
shr r11d, 0xc
and r11d, 0x3f
mov r11b, byte [r10 + r11]
mov byte [r9 + rcx + 0x10], r11b
lea rcx, [r8 + 2]
cmp rcx, rdx
jge 0x402a28
shr eax, 6
and eax, 0x3c
mov al, byte [r10 + rax]
mov byte [r9 + rcx + 0x10], al
lea rcx, [r8 + 3]
cmp rdx, rcx
jg 0x402a30
dec rdx
jmp 0x4027d2
mov byte [r9 + rcx + 0x10], 0x3d
add r8, 4
mov rdx, r8
mov rcx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.0044ab38