Function at 0x140012d80
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rdx
mov r10, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x60], rcx
xor r8d, r8d
mov dword [rsp + 0x48], r8d
lea rcx, [rbx + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
mov eax, 0x2e
mov r11d, 0x3d
test r9b, r9b
cmovne r11d, eax
mov dword [rsp + 0x24], r11d
movzx eax, r9b
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rcx, qword [rcx + rax*8]
mov qword [rsp + 0x38], rcx
xorps xmm0, xmm0
movups xmmword [r10], xmm0
mov qword [r10 + 0x10], r8
mov qword [r10 + 0x18], 0xf
mov byte [r10], r8b
mov dword [rsp + 0x48], 1
cmp rdx, 0xf
jbe 0x140012e3c
movzx r8d, byte [rsp + 0x20]
mov rcx, r10
call fcn.140002cc0
mov r10, qword [rsp + 0x28]
xor r8d, r8d
mov qword [r10 + 0x10], r8
mov rcx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400131be
mov r11d, 2
mov dword [rsp + 0x30], r11d
movzx r12d, byte [rsp + 0x20]
movzx r13d, byte [rsp + 0x20]
movzx ebp, byte [rsp + 0x20]
movzx r14d, byte [rsp + 0x20]
movzx ebx, byte [rsp + 0x20]
movzx r15d, byte [rsp + 0x20]
movzx edi, byte [rsp + 0x20]
movzx esi, byte [rsp + 0x20]
nop dword [rax]
add r8, qword [rsp + 0x50]
mov qword [rsp + 0x40], r8
movzx eax, byte [r8]
shr rax, 2
movzx r9d, byte [rax + rcx]
mov rcx, qword [r10 + 0x10]
mov rdx, qword [r10 + 0x18]
cmp rcx, rdx
jae 0x140012ec3
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140012eb8
mov rax, qword [r10]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140012ee3
movzx r8d, r12b
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov r8, qword [rsp + 0x40]
mov r11d, dword [rsp + 0x30]
lea ecx, [r11 - 1]
mov rdx, qword [r10 + 0x18]
cmp rcx, qword [rsp + 0x58]
jae 0x1400130b2
mov r11, qword [rsp + 0x50]
add r11, rcx
mov qword [rsp + 0x40], r11
movzx ecx, byte [r8]
and ecx, 3
shl ecx, 4
movzx eax, byte [r11]
shr eax, 4
add ecx, eax
mov r8, qword [rsp + 0x38]
movzx r9d, byte [rcx + r8]
mov rcx, qword [r10 + 0x10]
cmp rcx, rdx
jae 0x140012f48
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140012f3d
mov rax, qword [r10]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140012f68
movzx r8d, r13b
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov r11, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
mov rdx, qword [r10 + 0x18]
cmp rax, qword [rsp + 0x58]
jae 0x140013027
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
movzx ecx, byte [r11]
and ecx, 0xf
movzx eax, byte [rax]
shr eax, 6
lea eax, [rax + rcx*4]
movzx r9d, byte [rax + r8]
mov rcx, qword [r10 + 0x10]
cmp rcx, rdx
jae 0x140012fc2
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140012fb7
mov rax, qword [r10]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140012fdf
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [r10 + 0x10]
mov rdx, qword [r10 + 0x18]
cmp rcx, rdx
jae 0x14001301e
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140013010
mov rax, qword [r10]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001319c
movzx r8d, bpl
jmp 0x14001318a
movzx eax, byte [r11]
and eax, 0xf
movzx r9d, byte [r8 + rax*4]
mov rcx, qword [r10 + 0x10]
cmp rcx, rdx
jae 0x14001305b
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140013050
mov rax, qword [r10]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140013071
movzx r8d, r14b
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov rcx, qword [r10 + 0x10]
mov rdx, qword [r10 + 0x18]
cmp rcx, rdx
jae 0x1400130a3
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140013092
mov rax, qword [r10]
mov edx, dword [rsp + 0x24]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x14001319c
movzx r9d, byte [rsp + 0x24]
movzx r8d, bl
jmp 0x14001318a
movzx eax, byte [r8]
and eax, 3
add rax, rax
mov r9, qword [rsp + 0x38]
movzx r9d, byte [r9 + rax*8]
mov rcx, qword [r10 + 0x10]
cmp rcx, rdx
jae 0x1400130ee
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x1400130e3
mov rax, qword [r10]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140013104
movzx r8d, r15b
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov rcx, qword [r10 + 0x10]
mov rdx, qword [r10 + 0x18]
cmp rcx, rdx
jae 0x140013135
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140013125
mov rax, qword [r10]
mov r11d, dword [rsp + 0x24]
mov byte [rax + rcx], r11b
mov byte [rax + rcx + 1], 0
jmp 0x140013156
movzx r9d, byte [rsp + 0x24]
movzx r8d, dil
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov r11d, dword [rsp + 0x24]
mov rcx, qword [r10 + 0x10]
mov rdx, qword [r10 + 0x18]
cmp rcx, rdx
jae 0x140013182
lea rax, [rcx + 1]
mov qword [r10 + 0x10], rax
mov rax, r10
cmp rdx, 0x10
jb 0x140013177
mov rax, qword [r10]
mov byte [rax + rcx], r11b
mov byte [rax + rcx + 1], 0
jmp 0x14001319c
movzx r9d, r11b
movzx r8d, sil
mov edx, 1
mov rcx, r10
call fcn.140002b50
mov r10, qword [rsp + 0x28]
mov r11d, dword [rsp + 0x30]
add r11d, 3
mov dword [rsp + 0x30], r11d
lea r8d, [r11 - 2]
cmp r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
jb 0x140012e80
mov rax, r10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret