Function at 0x4c4c80
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c4f4b
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rbx
cmp qword [rcx + 0x10], 0
jne 0x4c4caa
xor edx, edx
jmp 0x4c4cc0
cmp byte [rcx], 0
je 0x4c4cb8
mov rdx, 0xffffffffffffffff
jmp 0x4c4cc0
mov edx, 1
nop dword [rax]
test rdx, rdx
jle 0x4c4f37
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rbx
lea rax, [0x00554c20]
call sym.runtime.newobject
mov qword [rsp + 0x50], rax
mov rbx, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax + 8]
mov edi, 1
mov rax, rdx
call sym.math_big.nat.setUint64
mov rdx, qword [rsp + 0x50]
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rcx
cmp dword [0x006e9170], 0
je 0x4c4d30
nop
call sym.runtime.gcWriteBarrier2
mov qword [r11], rax
mov rsi, qword [rdx + 8]
mov qword [r11 + 8], rsi
mov qword [rdx + 8], rax
mov byte [rdx], 0
mov rax, rdx
mov rbx, qword [rsp + 0x88]
mov rcx, rax
call sym.math_big._Int_.Sub
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x10]
lea rsi, [rdx - 1]
test rsi, rsi
jl 0x4c4dbd
mov rdi, qword [rax + 8]
mov rdx, qword [rdi + rdx*8 - 8]
mov rdi, rdx
shr rdx, 1
or rdi, rdx
mov rdx, rdi
shr rdi, 2
or rdi, rdx
mov rdx, rdi
shr rdi, 4
or rdi, rdx
mov rdx, rdi
shr rdi, 8
or rdi, rdx
mov rdx, rdi
shr rdi, 0x10
or rdi, rdx
mov rdx, rdi
shr rdi, 0x20
or rdi, rdx
shl rsi, 6
bsr rdx, rdi
mov rdi, 0xffffffffffffffff
cmove rdx, rdi
lea rdx, [rdx + rsi]
lea rdx, [rdx + 1]
jmp 0x4c4dc0
xor edx, edx
nop
test rdx, rdx
je 0x4c4e28
mov qword [rsp + 0x30], rdx
lea rsi, [rdx + 7]
sar rsi, 0x3f
shr rsi, 0x3d
lea rcx, [rsi + rdx]
lea rcx, [rcx + 7]
sar rcx, 3
mov qword [rsp + 0x38], rcx
lea rax, [0x00543620]
mov rbx, rcx
call sym.runtime.makeslice
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x30]
mov rsi, rdx
sar rdx, 0x3f
shr rdx, 0x3d
add rdx, rsi
and rdx, 0xfffffffffffffff8
sub rsi, rdx
test rsi, rsi
mov edx, 8
cmove rsi, rdx
mov qword [rsp + 0x48], rsi
jmp 0x4c4e37
xor ebx, ebx
xor ecx, ecx
add rsp, 0x68
pop rbp
ret
mov rax, qword [rsp + 0x60]
nop
mov rbx, qword [rsp + 0x80]
mov rcx, rax
mov rdi, qword [rsp + 0x38]
mov rsi, rdi
mov r8, rsi
mov rax, qword [rsp + 0x78]
call sym.io.ReadAtLeast
nop dword [rax + rax]
test rbx, rbx
jne 0x4c4f25
mov r8, qword [rsp + 0x38]
test r8, r8
jbe 0x4c4f2d
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x40], rbx
mov rdi, qword [rsp + 0x60]
movzx edx, byte [rdi]
mov rcx, qword [rsp + 0x48]
mov r9d, 1
shl r9, cl
cmp rcx, 0x40
sbb r10, r10
and r9, r10
dec r9
and edx, r9d
mov byte [rdi], dl
mov rdx, qword [rsp + 0x50]
mov rax, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
nop
mov rsi, r8
mov rcx, r9
call sym.math_big.nat.setBytes
mov rdx, qword [rsp + 0x50]
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rcx
cmp dword [0x006e9170], 0
je 0x4c4ef0
nop dword [rax]
call sym.runtime.gcWriteBarrier2
mov qword [r11], rax
mov rcx, qword [rdx + 8]
mov qword [r11 + 8], rcx
mov qword [rdx + 8], rax
mov byte [rdx], 0
mov rax, rdx
mov rbx, qword [rsp + 0x88]
call sym.math_big._Int_.Cmp
test rax, rax
jge 0x4c4e32
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
add rsp, 0x68
pop rbp
ret
xor eax, eax
add rsp, 0x68
pop rbp
ret
xor eax, eax
mov rcx, rax
call sym.runtime.panicIndex
lea rax, [0x005432e0]
lea rbx, [0x005b97b0]
call sym.runtime.gopanic
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.crypto_rand.Int