Function at 0x51c6e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51c97f
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rax
xor edx, edx
jmp 0x51c720
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x60], rdx
mov rcx, qword [rax + 0x30]
mov rax, rbx
call rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rcx + 0x10]
lea rbx, [rdx - 1]
nop
test rbx, rbx
jl 0x51c7a6
mov rsi, qword [rcx + 8]
mov rdx, qword [rsi + rdx*8 - 8]
mov rsi, rdx
shr rdx, 1
or rsi, rdx
mov rdx, rsi
shr rsi, 2
or rdx, rsi
mov rsi, rdx
shr rdx, 4
or rsi, rdx
mov rdx, rsi
shr rsi, 8
or rdx, rsi
mov rsi, rdx
shr rdx, 0x10
or rsi, rdx
mov rdx, rsi
shr rsi, 0x20
or rsi, rdx
shl rbx, 6
bsr rdx, rsi
mov rsi, 0xffffffffffffffff
cmove rdx, rsi
lea rdx, [rbx + rdx]
lea rdx, [rdx + 1]
jmp 0x51c7a8
xor edx, edx
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, [0x0054a7e0]
mov rbx, rcx
call sym.runtime.makeslice
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x90]
mov rcx, rax
mov rdi, qword [rsp + 0x38]
mov rsi, rdi
mov r8, rsi
mov rax, qword [rsp + 0x88]
call sym.io.ReadAtLeast
nop dword [rax]
test rbx, rbx
jne 0x51c969
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rdx + 0x10]
lea rdi, [rsi - 1]
test rdi, rdi
jl 0x51c87c
mov r8, qword [rdx + 8]
mov rsi, qword [r8 + rsi*8 - 8]
mov r8, rsi
shr rsi, 1
or r8, rsi
mov rsi, r8
shr r8, 2
or rsi, r8
mov r8, rsi
shr rsi, 4
or r8, rsi
mov rsi, r8
shr r8, 8
or rsi, r8
mov r8, rsi
shr rsi, 0x10
or r8, rsi
mov rsi, r8
shr r8, 0x20
or rsi, r8
shl rdi, 6
bsr rsi, rsi
mov r8, 0xffffffffffffffff
cmove rsi, r8
lea rsi, [rdi + rsi]
lea rsi, [rsi + 1]
jmp 0x51c87e
xor esi, esi
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rbx
mov rdi, qword [rsp + 0x38]
mov r8, rdi
shl rdi, 3
sub rdi, rsi
test rdi, rdi
jle 0x51c8c4
nop dword [rax]
test r8, r8
jbe 0x51c974
mov rsi, qword [rsp + 0x58]
movzx r9d, byte [rsi]
mov rcx, rdi
shr r9b, cl
cmp rcx, 8
sbb edi, edi
and r9d, edi
mov byte [rsi], r9b
lea rax, [0x0055cca0]
call sym.runtime.newobject
mov qword [rsp + 0x40], rax
mov rbx, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax + 8]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov r8, rsi
mov rax, rdx
call sym.math_big.nat.setBytes
mov rdx, qword [rsp + 0x40]
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rcx
cmp dword [0x00826e60], 0
je 0x51c91c
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
cmp qword [rdx + 0x10], 0
setne cl
movzx ecx, cl
test rcx, rcx
je 0x51c713
mov rax, rdx
mov rbx, qword [rsp + 0x50]
nop
call sym.math_big._Int_.Cmp
test rax, rax
jl 0x51c954
mov rdx, qword [rsp + 0x40]
jmp 0x51c713
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, qword [rsp + 0x60]
add rsp, 0x68
pop rbp
ret
xor eax, eax
mov rcx, 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.randFieldElement