Function at 0x51d760
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51d9c6
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rbx
mov rdx, qword [rax]
mov rax, rdx
call sym.crypto_ecdsa.randomPoint_go.shape.uint8_
test rcx, rcx
jne 0x51d84b
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
lea rax, [0x0056ab20]
call sym.runtime.newobject
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov qword [rax], rdx
cmp dword [0x00826e60], 0
je 0x51d7d4
call sym.runtime.gcWriteBarrier1
mov qword [r11], rbx
mov qword [rsp + 0x40], rax
mov qword [rax + 8], rbx
lea rax, [0x0055cca0]
call sym.runtime.newobject
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx + 0x18]
mov rbx, qword [rdx]
mov rbx, qword [rbx + 8]
shl rbx, 6
sub rbx, qword [rdx + 8]
lea rdx, [rbx + 7]
sar rdx, 0x3f
shr rdx, 0x3d
lea rbx, [rdx + rbx]
lea rbx, [rbx + 7]
sar rbx, 3
mov qword [rsp + 0x30], rbx
nop
lea rax, [0x0054a7e0]
mov rcx, rbx
call sym.runtime.makeslice
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
mov rbx, qword [rsp + 0x30]
mov rsi, rbx
xor edi, edi
jmp 0x51d860
xor eax, eax
mov rbx, rcx
mov rcx, rdi
add rsp, 0x58
pop rbp
ret
inc rdi
mov rbx, r10
nop
cmp rdi, rcx
jge 0x51d882
mov r9, qword [rdx + rdi*8]
xor r8d, r8d
jmp 0x51d982
test r9, r9
je 0x51d859
jmp 0x51d9a2
mov r10, rbx
nop
jmp 0x51d859
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x18]
mov r9, qword [rdx + 8]
mov rdi, rax
mov r8, rsi
mov rax, r9
nop dword [rax]
call sym.math_big.nat.setBytes
mov rdx, qword [rsp + 0x38]
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rcx
cmp dword [0x00826e60], 0
je 0x51d8d0
nop dword [rax + rax]
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
cmp dword [0x00826e60], 0
nop
jne 0x51d8e9
mov rsi, qword [rsp + 0x40]
jmp 0x51d8fe
call sym.runtime.gcWriteBarrier2
mov qword [r11], rdx
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsi + 0x20]
mov qword [r11 + 8], rdi
mov qword [rsi + 0x20], rdx
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rdx + 8]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call sym.crypto_ecdsa._nistCurve_go.shape.uint8__.pointToAffine
cmp dword [0x00826e60], 0
jne 0x51d92a
mov rdx, qword [rsp + 0x40]
jmp 0x51d94b
call sym.runtime.gcWriteBarrier4
mov qword [r11], rax
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rdx + 0x10]
mov qword [r11 + 8], rsi
mov qword [r11 + 0x10], rbx
mov rsi, qword [rdx + 0x18]
mov qword [r11 + 0x18], rsi
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rbx
test rcx, rcx
je 0x51d966
xor eax, eax
mov rbx, rcx
mov rcx, rdi
add rsp, 0x58
pop rbp
ret
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
add rsp, 0x58
pop rbp
ret
mov byte [rbx + rax - 1], r9b
inc r8
shr r9, 8
mov rbx, r10
cmp r8, 8
jge 0x51d87b
lea r10, [rbx - 1]
test r10, r10
jl 0x51d871
cmp rsi, r10
ja 0x51d973
nop
jmp 0x51d9b5
lea rax, [0x0054a4a0]
lea rbx, [0x006eb768]
call sym.runtime.gopanic
mov rax, r10
mov rcx, rsi
nop dword [rax + rax]
call sym.runtime.panicIndex
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.crypto_ecdsa.generateNISTEC_go.shape.uint8_