Function at 0x4d9900
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4d9c38
push rbp
mov rbp, rsp
sub rsp, 0x48
mov rsi, qword [rcx + 0x10]
test rsi, rsi
jne 0x4d991f
xor edx, edx
jmp 0x4d9932
cmp byte [rcx], 0
je 0x4d992d
mov rdx, 0xffffffffffffffff
jmp 0x4d9932
mov edx, 1
test rdx, rdx
jne 0x4d9971
cmp qword [rdi + 0x10], 0
jne 0x4d9942
xor edx, edx
jmp 0x4d9955
cmp byte [rdi], 0
je 0x4d9950
mov rdx, 0xffffffffffffffff
jmp 0x4d9955
mov edx, 1
test rdx, rdx
je 0x4d995f
test rsi, rsi
jmp 0x4d9974
mov rdx, qword [rax]
mov rax, qword [rdx]
call rax
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
test rsi, rsi
jne 0x4d997a
xor edx, edx
jmp 0x4d998d
cmp byte [rcx], 0
je 0x4d9988
mov rdx, 0xffffffffffffffff
jmp 0x4d998d
mov edx, 1
test rdx, rdx
jl 0x4d99bb
mov rdx, qword [rdi + 0x10]
test rdx, rdx
jne 0x4d99a2
xor r8d, r8d
nop
jmp 0x4d99b6
cmp byte [rdi], 0
je 0x4d99b0
mov r8, 0xffffffffffffffff
jmp 0x4d99b6
mov r8d, 1
test r8, r8
jge 0x4d99eb
lea rax, [0x0051e2a0]
call sym.runtime.newobject
mov qword [rax + 8], 0x13
lea rcx, [0x0053ad4c]
mov qword [rax], rcx
lea rbx, [0x0063e580]
mov rcx, rax
xor eax, eax
add rsp, 0x48
pop rbp
ret
lea r8, [rsi - 1]
test r8, r8
jl 0x4d9a55
mov r9, qword [rcx + 8]
mov rsi, qword [r9 + rsi*8 - 8]
mov r9, rsi
shr rsi, 1
or r9, rsi
mov rsi, r9
shr r9, 2
or rsi, r9
mov r9, rsi
shr rsi, 4
or r9, rsi
mov rsi, r9
shr r9, 8
or rsi, r9
mov r9, rsi
shr rsi, 0x10
or r9, rsi
mov rsi, r9
shr r9, 0x20
or rsi, r9
shl r8, 6
bsr rsi, rsi
mov r9, 0xffffffffffffffff
cmove rsi, r9
lea rsi, [r8 + rsi]
lea rsi, [rsi + 1]
jmp 0x4d9a5e
mov r9, 0xffffffffffffffff
xor esi, esi
mov r8, qword [rax + 8]
mov r8, qword [r8 + 0x28]
cmp rsi, r8
jg 0x4d9ad5
lea rsi, [rdx - 1]
test rsi, rsi
jl 0x4d9ace
mov r10, qword [rdi + 8]
mov rdx, qword [r10 + rdx*8 - 8]
mov r10, rdx
shr rdx, 1
or r10, rdx
mov rdx, r10
shr r10, 2
or rdx, r10
mov r10, rdx
shr rdx, 4
or r10, rdx
mov rdx, r10
shr r10, 8
or rdx, r10
mov r10, rdx
shr rdx, 0x10
or r10, rdx
mov rdx, r10
shr r10, 0x20
or r10, rdx
shl rsi, 6
bsr rdx, r10
cmove rdx, r9
lea rdx, [rsi + rdx]
lea rdx, [rdx + 1]
jmp 0x4d9ad0
xor edx, edx
cmp rdx, r8
jle 0x4d9b09
lea rax, [0x0051e2a0]
nop dword [rax]
call sym.runtime.newobject
mov qword [rax + 8], 0x16
lea rcx, [0x0053bd4a]
mov qword [rax], rcx
lea rbx, [0x0063e580]
mov rcx, rax
xor eax, eax
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rcx
lea rdx, [r8 + 7]
sar rdx, 0x3f
shr rdx, 0x3d
lea rdx, [rdx + r8]
lea rdx, [rdx + 7]
sar rdx, 3
mov qword [rsp + 0x20], rdx
lea rcx, [rdx + rdx]
lea rcx, [rcx + 1]
mov qword [rsp + 0x28], rcx
lea rax, [0x00514ca0]
mov rbx, rcx
call sym.runtime.makeslice
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
test rdx, rdx
jbe 0x4d9c2d
mov byte [rax], 4
mov rcx, qword [rsp + 0x20]
lea rsi, [rcx + 1]
cmp rdx, rsi
jb 0x4d9c25
nop
cmp rsi, 1
jb 0x4d9c19
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov rdi, rcx
shl rdi, 1
mov qword [rsp + 0x30], rdi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and edx, 1
lea rbx, [rdx + rax]
mov rax, qword [rsp + 0x68]
call sym.math_big._Int_.FillBytes
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
sub rdi, rdx
mov rcx, rdi
neg rdi
sar rdi, 0x3f
mov rdx, qword [rsp + 0x38]
and rdi, rdx
mov rdx, qword [rsp + 0x40]
lea rbx, [rdi + rdx]
mov rax, qword [rsp + 0x70]
mov rdi, rcx
call sym.math_big._Int_.FillBytes
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
mov rsi, qword [rdx]
call rsi
mov rdx, qword [rsp + 0x60]
mov rsi, qword [rdx]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov rdi, rcx
call rsi
add rsp, 0x48
pop rbp
ret
mov eax, 1
xor ecx, ecx
call sym.runtime.panicSliceB
mov rcx, rsi
call sym.runtime.panicSliceAcap
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_elliptic._nistCurve_go.shape.uint8__.pointFromAffine