Function at 0x58d520
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x108]
cmp r12, qword [r14 + 0x10]
jbe 0x58da35
push rbp
mov rbp, rsp
sub rsp, 0x180
mov qword [rsp + 0x198], rbx
cmp al, 0x13
ja 0x58d5e7
cmp al, 0xc
je 0x58d56f
cmp al, 0x12
jne 0x58d560
xor eax, eax
jmp 0x58d9d5
cmp al, 0x13
jne 0x58d6ae
xor eax, eax
jmp 0x58d922
mov qword [rsp + 0x1a0], rcx
mov rax, rbx
mov rbx, rcx
mov rcx, rdi
call sym.unicode_utf8.Valid
test al, al
je 0x58d5b2
xor eax, eax
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x1a0]
nop dword [rax + rax]
call sym.runtime.slicebytetostring
xor ecx, ecx
xor edi, edi
add rsp, 0x180
pop rbp
ret
lea rax, [0x00680c40]
call sym.runtime.newobject
mov qword [rax + 8], 0x14
lea rcx, [0x006c3cf2]
mov qword [rax], rcx
xor ebx, ebx
lea rcx, [0x0073aa40]
mov rdi, rax
xor eax, eax
add rsp, 0x180
pop rbp
ret
cmp al, 0x14
je 0x58d72b
cmp al, 0x16
je 0x58d710
cmp al, 0x1e
jne 0x58d6ae
bt ecx, 0
jb 0x58d677
mov qword [rsp + 0x1a8], rdi
cmp rcx, 2
jl 0x58d629
movzx edx, byte [rcx + rbx - 1]
test dl, dl
jne 0x58d629
movzx edx, byte [rcx + rbx - 2]
test dl, dl
jne 0x58d629
add rcx, 0xfffffffffffffffe
mov qword [rsp + 0x158], rcx
mov rdx, rcx
shr rdx, 1
mov qword [rsp + 0x150], rdx
lea rax, [0x00667f20]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rdx, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x1a8]
mov rdi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor ebx, ebx
jmp 0x58d846
lea rax, [0x00680c40]
nop
call sym.runtime.newobject
mov qword [rax + 8], 0x11
lea rcx, [0x006c2654]
mov qword [rax], rcx
xor ebx, ebx
lea rcx, [0x0073aa40]
mov rdi, rax
xor eax, eax
add rsp, 0x180
pop rbp
ret
movups xmmword [rsp + 0x170], xmm15
lea rdx, [0x00679360]
mov qword [rsp + 0x170], rdx
movzx edx, al
lea r8, [0x008b3f00]
lea rdx, [r8 + rdx*8]
mov qword [rsp + 0x178], rdx
lea rax, [0x006c740e]
mov ebx, 0x1b
lea rcx, [rsp + 0x170]
mov edi, 1
mov rsi, rdi
call sym.fmt.Errorf
mov rcx, rax
mov rdi, rbx
xor eax, eax
xor ebx, ebx
add rsp, 0x180
pop rbp
ret
xor eax, eax
call sym.runtime.slicebytetostring
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x148], rbx
xor ecx, ecx
jmp 0x58d742
xor eax, eax
call sym.runtime.slicebytetostring
xor ecx, ecx
xor edi, edi
add rsp, 0x180
pop rbp
ret
mov rcx, rsi
cmp rbx, rcx
jle 0x58d7da
movzx edx, byte [rax + rcx]
cmp edx, 0x80
jge 0x58d75d
lea rsi, [rcx + 1]
jmp 0x58d77a
nop dword [rax]
call sym.runtime.decoderune
mov edx, eax
mov rsi, rbx
mov rax, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x148]
cmp edx, 0x7f
jle 0x58d73f
movups xmmword [rsp + 0x170], xmm15
call sym.runtime.convTstring
lea rcx, [0x00667e20]
mov qword [rsp + 0x170], rcx
mov qword [rsp + 0x178], rax
lea rax, [0x006cda8f]
mov ebx, 0x2a
lea rcx, [rsp + 0x170]
mov edi, 1
mov rsi, rdi
call sym.fmt.Errorf
mov rbx, qword [rsp + 0x148]
mov rcx, rax
mov rax, qword [rsp + 0x160]
jmp 0x58d7e0
xor ecx, ecx
nop dword [rax]
test rcx, rcx
je 0x58d81a
lea rax, [0x00680c40]
call sym.runtime.newobject
mov qword [rax + 8], 0x11
lea rcx, [0x006c2665]
mov qword [rax], rcx
xor ebx, ebx
lea rcx, [0x0073aa40]
mov rdi, rax
xor eax, eax
add rsp, 0x180
pop rbp
ret
xor ecx, ecx
xor edi, edi
add rsp, 0x180
pop rbp
ret
mov word [rax + rbx*2 - 2], r9w
add rsi, 0xfffffffffffffffe
mov r9, rsi
neg r9
sar r9, 0x3f
and r9d, 2
add rdi, r9
add rcx, 0xfffffffffffffffe
test rcx, rcx
je 0x58d8c5
cmp rcx, 1
jbe 0x58d912
inc rbx
movzx r9d, byte [rdi]
shl r9d, 8
movzx r10d, byte [rdi + 1]
add r9d, r10d
cmp rdx, rbx
jae 0x58d827
mov qword [rsp + 0x158], rcx
mov word [rsp + 0x46], r9w
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x168], rdi
mov rcx, rdx
mov edi, 1
lea rsi, [0x00667f20]
call sym.runtime.growslice
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x168]
movzx r9d, word [rsp + 0x46]
mov rdx, rcx
mov rcx, qword [rsp + 0x158]
jmp 0x58d827
lea rdi, [rsp + 0x48]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0046c594
mov rbp, qword [rbp]
mov rcx, rdx
lea rdi, [rsp + 0x48]
xor esi, esi
mov r8d, 0x40
call sym.unicode_utf16.decode
mov rdi, rcx
mov rcx, rbx
mov rbx, rax
xor eax, eax
nop dword [rax]
call sym.runtime.slicerunetostring
xor ecx, ecx
xor edi, edi
add rsp, 0x180
pop rbp
ret
mov eax, 1
mov rcx, rax
call sym.runtime.panicIndex
inc rax
cmp rcx, rax
jle 0x58d9ba
movzx edx, byte [rbx + rax]
lea esi, [rdx - 0x61]
cmp sil, 0x19
jbe 0x58d91f
lea esi, [rdx - 0x41]
nop dword [rax + rax]
cmp sil, 0x19
jbe 0x58d91f
lea esi, [rdx - 0x30]
cmp sil, 9
jbe 0x58d91f
lea esi, [rdx - 0x27]
cmp sil, 2
jbe 0x58d91f
lea esi, [rdx - 0x2b]
nop dword [rax + rax]
cmp sil, 4
jbe 0x58d91f
cmp dl, 0x20
je 0x58d91f
cmp dl, 0x3a
je 0x58d91f
cmp dl, 0x3d
je 0x58d91f
cmp dl, 0x3f
je 0x58d91f
cmp dl, 0x2a
je 0x58d91f
nop
cmp dl, 0x26
je 0x58d91f
lea rax, [0x00680c40]
call sym.runtime.newobject
mov qword [rax + 8], 0x17
lea rcx, [0x006c54e1]
mov qword [rax], rcx
xor ebx, ebx
lea rcx, [0x0073aa40]
mov rdi, rax
xor eax, eax
add rsp, 0x180
pop rbp
ret
xor eax, eax
nop dword [rax]
call sym.runtime.slicebytetostring
xor ecx, ecx
xor edi, edi
add rsp, 0x180
pop rbp
ret
inc rax
cmp rcx, rax
jle 0x58da21
movzx edx, byte [rbx + rax]
lea esi, [rdx - 0x30]
cmp sil, 9
jbe 0x58d9d2
cmp dl, 0x20
je 0x58d9d2
lea rax, [0x00680c40]
call sym.runtime.newobject
mov qword [rax + 8], 0x15
lea rcx, [0x006c440d]
mov qword [rax], rcx
xor ebx, ebx
lea rcx, [0x0073aa40]
mov rdi, rax
xor eax, eax
add rsp, 0x180
pop rbp
ret
xor eax, eax
call sym.runtime.slicebytetostring
xor ecx, ecx
xor edi, edi
add rsp, 0x180
pop rbp
ret
mov byte [rsp + 8], al
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
movzx eax, byte [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.crypto_x509.parseASN1String