Function at 0x1400a9760
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], 0
mov byte [rcx], 0
mov dword [rsp + 0x20], 1
xor esi, esi
test r8d, r8d
je 0x1400a9b6b
xor ecx, ecx
nop dword [rax + rax]
dec r14d
movzx eax, byte [r15]
mov byte [rsp + rcx + 0x80], al
inc esi
inc rcx
inc r15
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x1400a9914
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x8b], al
xor esi, esi
nop dword [rax]
lea rcx, [0x140173210]
cmp qword [0x140173228], 0x10
cmovae rcx, qword [0x140173210]
movzx eax, byte [rsp + rsi + 0x88]
movzx ebp, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x1400a992b
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x1400a991e
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x1400a98ac
mov rdx, rbx
mov rcx, rdi
call fcn.140006a80
jmp 0x1400a98c8
test rbx, rbx
jne 0x1400a98cd
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x1400a98c0
mov rax, qword [rdi]
jmp 0x1400a98c3
mov rax, rdi
mov byte [rax], 0
jmp 0x1400a98fb
test rbx, rbx
je 0x1400a98fb
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1400a98dd
mov rax, qword [rdi]
jmp 0x1400a98e0
mov rax, rdi
mov byte [rax + rcx], bpl
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1400a98f4
mov rax, qword [rdi]
jmp 0x1400a98f7
mov rax, rdi
mov byte [rax + rbx], 0
inc rsi
cmp rsi, 4
jl 0x1400a9850
xor esi, esi
xor ecx, ecx
movzx edx, byte [rsp + 0x82]
test r14d, r14d
je 0x1400a9938
jmp 0x1400a97c0
lea rcx, str.string_too_long
call fcn.1400bbc18
int3
lea rcx, str.string_too_long
call fcn.1400bbc18
int3
test esi, esi
je 0x1400a9b6b
movsxd rax, esi
cmp rax, 3
jge 0x1400a997e
jae 0x1400a9978
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x1400a9949
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
jmp 0x1400a997e
call fcn.1400bedf0
int3
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x89], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x8a], r12b
and dl, 0x3f
mov byte [rsp + 0x8b], dl
xor ebp, ebp
lea r12d, [rsi + 1]
test r12d, r12d
jle 0x1400a9aae
lea r14, [rsp + 0x88]
lea rcx, [0x140173210]
cmp qword [0x140173228], 0x10
cmovae rcx, qword [0x140173210]
movzx eax, byte [r14]
movzx r15d, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x1400a9aa1
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x1400a9a94
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x1400a9a35
mov rdx, rbx
mov rcx, rdi
call fcn.140006a80
jmp 0x1400a9a51
test rbx, rbx
jne 0x1400a9a56
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x1400a9a49
mov rax, qword [rdi]
jmp 0x1400a9a4c
mov rax, rdi
mov byte [rax], 0
jmp 0x1400a9a84
test rbx, rbx
je 0x1400a9a84
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1400a9a66
mov rax, qword [rdi]
jmp 0x1400a9a69
mov rax, rdi
mov byte [rax + rcx], r15b
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1400a9a7d
mov rax, qword [rdi]
jmp 0x1400a9a80
mov rax, rdi
mov byte [rax + rbx], 0
inc ebp
inc r14
cmp ebp, r12d
jl 0x1400a99e0
jmp 0x1400a9aae
lea rcx, str.string_too_long
call fcn.1400bbc18
int3
lea rcx, str.string_too_long
call fcn.1400bbc18
int3
cmp esi, 3
jge 0x1400a9b6b
nop word [rax + rax]
inc esi
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x1400a9b5e
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x1400a9b51
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x1400a9af7
mov rdx, rbx
mov rcx, rdi
call fcn.140006a80
jmp 0x1400a9b13
test rbx, rbx
jne 0x1400a9b18
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x1400a9b0b
mov rax, qword [rdi]
jmp 0x1400a9b0e
mov rax, rdi
mov byte [rax], 0
jmp 0x1400a9b46
test rbx, rbx
je 0x1400a9b46
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1400a9b28
mov rax, qword [rdi]
jmp 0x1400a9b2b
mov rax, rdi
mov byte [rcx + rax], 0x3d
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1400a9b3f
mov rax, qword [rdi]
jmp 0x1400a9b42
mov rax, rdi
mov byte [rbx + rax], 0
cmp esi, 3
jl 0x1400a9ac0
jmp 0x1400a9b6b
lea rcx, str.string_too_long
call fcn.1400bbc18
int3
lea rcx, str.string_too_long
call fcn.1400bbc18
int3
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret