Function at 0x140002144
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov eax, r9d
mov byte [rbp + 0x38], al
mov rax, qword [rbp + 0x30]
add rax, 2
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
mov rax, rdx
shr rax, 1
shl rax, 2
mov qword [rbp - 0x10], rax
cmp byte [rbp + 0x38], 0
je 0x140002191
mov eax, 0x2e
jmp 0x140002196
mov eax, 0x3d
mov byte [rbp - 0x11], al
movzx eax, byte [rbp + 0x38]
cdqe
lea rdx, [rax*8]
lea rax, section..data
mov rax, qword [rdx + rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400032a0
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::reserve_unsigned_long_long_
mov dword [rbp - 4], 0
jmp 0x1400023b4
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x28]
add rax, rdx
movzx eax, byte [rax]
shr al, 2
movzx edx, al
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
mov eax, dword [rbp - 4]
add eax, 1
mov eax, eax
cmp rax, qword [rbp + 0x30]
jae 0x140002356
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x28]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
shl eax, 4
and eax, 0x30
mov edx, eax
mov eax, dword [rbp - 4]
add eax, 1
mov ecx, eax
mov rax, qword [rbp + 0x28]
add rax, rcx
movzx eax, byte [rax]
shr al, 4
movzx eax, al
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
mov eax, dword [rbp - 4]
add eax, 2
mov eax, eax
cmp rax, qword [rbp + 0x30]
jae 0x140002308
mov eax, dword [rbp - 4]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x28]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
shl eax, 2
and eax, 0x3c
mov edx, eax
mov eax, dword [rbp - 4]
add eax, 2
mov ecx, eax
mov rax, qword [rbp + 0x28]
add rax, rcx
movzx eax, byte [rax]
shr al, 6
movzx eax, al
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
mov eax, dword [rbp - 4]
add eax, 2
mov edx, eax
mov rax, qword [rbp + 0x28]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
and eax, 0x3f
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
jmp 0x1400023b0
mov eax, dword [rbp - 4]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x28]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
shl eax, 2
cdqe
and eax, 0x3c
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
movzx eax, byte [rbp - 0x11]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
jmp 0x1400023b0
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x28]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
shl eax, 4
cdqe
and eax, 0x30
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
movzx eax, byte [rbp - 0x11]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
movzx eax, byte [rbp - 0x11]
movsx edx, al
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::push_back_char_
add dword [rbp - 4], 3
mov eax, dword [rbp - 4]
cmp rax, qword [rbp + 0x30]
jb 0x1400021de
jmp 0x1400023dd
mov rax, qword [rbp + 0x20]
add rsp, 0x48
pop rbx
pop rbp
ret