Function at 0x1400ac790
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov ebp, dword [rsp + 0x60]
xor r12d, r12d
mov ebx, edx
test r8, r8
mov rsi, r9
mov r14, rcx
lea r9d, [rdx + 2]
mov edi, r12d
sete dil
mov eax, 0xaaaaaaab
mul r9d
mov eax, r12d
mov r11d, r12d
shr edx, 1
mov r10d, r12d
shl edx, 2
mov r13d, r12d
mov r15d, r12d
lea ecx, [rdx + 0x3f]
shr ecx, 6
cmp ebp, 2
cmovne eax, ecx
add edx, eax
mov dword [rsp + 0x48], edx
test rsi, rsi
je 0x1400acb44
mov esi, dword [rsi]
cmp edx, esi
jbe 0x1400ac80d
test r8, r8
jne 0x1400acb44
mov edx, 1
cmp ebx, 2
jbe 0x1400ac974
mov r9d, edi
nop
mov eax, r13d
inc r13d
movzx ecx, byte [rax + r14]
movzx ebp, byte [r13 + r14]
movzx edi, cl
movzx eax, bpl
inc r13d
shr al, 4
and dil, 3
and bpl, 0xf
shl dil, 4
or dil, al
shl bpl, 2
movzx r14d, byte [r13 + r14]
inc r13d
movzx eax, r14b
and r14b, 0x3f
shr al, 6
or bpl, al
mov eax, ecx
shr rax, 2
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx ecx, byte [rax + rcx]
lea eax, [r10 + 1]
cmp eax, esi
jbe 0x1400ac896
test r9, r9
jne 0x1400ac8a2
mov rsi, qword [rsp + 0x58]
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r9, r9
jne 0x1400ac8a2
mov eax, r10d
mov byte [rax + r8], cl
add r10d, edx
mov eax, edx
movzx eax, dil
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx ecx, byte [rax + rdi]
lea eax, [r10 + 1]
cmp eax, esi
jbe 0x1400ac8c5
test r9, r9
je 0x1400ac886
jmp 0x1400ac8ce
test r9, r9
jne 0x1400ac8ce
mov byte [r10 + r8], cl
add r10d, edx
mov eax, edx
movzx eax, bpl
movzx ecx, byte [rax + rdi]
lea eax, [r10 + 1]
cmp eax, esi
jbe 0x1400ac8ea
test r9, r9
je 0x1400ac886
jmp 0x1400ac8f3
test r9, r9
jne 0x1400ac8f3
mov byte [r10 + r8], cl
add r10d, edx
mov eax, edx
movzx eax, r14b
movzx ecx, byte [rax + rdi]
lea eax, [r10 + 1]
cmp eax, esi
jbe 0x1400ac913
test r9, r9
je 0x1400ac886
jmp 0x1400ac91c
test r9, r9
jne 0x1400ac91c
mov byte [r10 + r8], cl
mov ebp, dword [rsp + 0x60]
lea ecx, [rdx + r10]
add ebx, 0xfffffffd
mov eax, edx
mov r10d, ecx
cmp ebp, 2
je 0x1400ac960
inc r15d
test r15b, 0xf
jne 0x1400ac960
test ebx, ebx
je 0x1400ac96f
lea eax, [rcx + 1]
cmp eax, esi
jbe 0x1400ac950
test r9, r9
je 0x1400ac886
jmp 0x1400ac95a
test r9, r9
jne 0x1400ac95a
mov byte [rcx + r8], 0xa
mov eax, edx
lea r10d, [rcx + rdx]
mov r14, qword [rsp + 0x40]
cmp ebx, 2
jbe 0x1400ac974
jmp 0x1400ac820
mov r14, qword [rsp + 0x40]
test ebx, ebx
je 0x1400acaa3
mov eax, r13d
movzx edi, byte [rax + r14]
cmp ebx, 2
jne 0x1400ac994
lea eax, [r13 + 1]
movzx r9d, byte [rax + r14]
jmp 0x1400ac997
xor r9b, r9b
mov rsi, qword [rsp + 0x58]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx eax, r9b
movzx ecx, dil
shr al, 4
and cl, 3
shl cl, 4
and r9b, 0xf
mov r11d, dword [rsi]
or cl, al
mov rax, rdi
shl r9b, 2
shr rax, 2
movzx edi, byte [rax + r14]
lea eax, [r10 + 1]
cmp eax, r11d
jbe 0x1400ac9e6
test r8, r8
je 0x1400ac9f2
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r8, r8
je 0x1400ac9f2
mov eax, r10d
mov byte [rax + r8], dil
add r10d, edx
mov eax, edx
movzx eax, cl
movzx ecx, byte [rax + r14]
lea eax, [r10 + 1]
cmp eax, r11d
jbe 0x1400aca18
test r8, r8
je 0x1400aca21
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r8, r8
je 0x1400aca21
mov byte [r10 + r8], cl
add r10d, edx
mov eax, edx
lea ecx, [r10 + 1]
cmp ebx, 2
jne 0x1400aca58
movzx eax, r9b
movzx r9d, byte [rax + r14]
cmp ecx, r11d
jbe 0x1400aca4d
test r8, r8
je 0x1400aca74
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r8, r8
je 0x1400aca74
mov byte [r10 + r8], r9b
jmp 0x1400aca74
cmp ecx, r11d
jbe 0x1400aca6a
test r8, r8
je 0x1400aca74
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r8, r8
je 0x1400aca74
mov byte [r10 + r8], 0x3d
lea eax, [rcx + 1]
mov r10d, ecx
cmp eax, r11d
jbe 0x1400aca8c
test r8, r8
je 0x1400aca99
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r8, r8
je 0x1400aca99
mov eax, r10d
mov byte [rax + r8], 0x3d
mov eax, edx
mov r11d, r12d
add r10d, edx
jmp 0x1400acaa8
mov rsi, qword [rsp + 0x58]
cmp ebp, 2
je 0x1400acad5
lea eax, [r10 + 1]
cmp eax, dword [rsi]
jbe 0x1400acac2
test r8, r8
je 0x1400acacf
mov r11d, 0xffffff7c
jmp 0x1400acad5
test r8, r8
je 0x1400acacf
mov eax, r10d
mov byte [rax + r8], 0xa
mov r11d, r12d
add r10d, edx
cmp r10d, dword [rsp + 0x48]
je 0x1400acaf7
test r11d, r11d
jne 0x1400acaf7
mov eax, 0xffffff66
mov rbx, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r8, r8
je 0x1400acb08
cmp dword [rsi], r10d
jbe 0x1400acb08
mov eax, r10d
mov byte [rax + r8], r12b
mov dword [rsi], r10d
test r11d, r11d
jne 0x1400acb30
mov eax, 0xffffff36
test r8, r8
cmove r12d, eax
mov eax, r12d
mov rbx, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, r11d
mov rbx, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x50]
mov eax, 0xffffff53
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret