Function at 0x14000c2f0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x10], 0
mov byte [rcx], 0
mov dword [rsp + 0x20], 1
xor esi, esi
test r8d, r8d
je 0x14000c6fb
xor ecx, ecx
nop dword [rax + rax]
dec r14d
movzx eax, byte [r15]
mov byte [rsp + rcx + 0x80], al
inc esi
inc rcx
inc r15
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x14000c4a4
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x8b], al
xor esi, esi
nop dword [rax]
lea rcx, [0x140158018]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140158018]
movzx eax, byte [rsp + rsi + 0x88]
movzx ebp, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14000c4bb
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14000c4ae
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14000c43c
mov rdx, rbx
mov rcx, rdi
call fcn.140007420
jmp 0x14000c458
test rbx, rbx
jne 0x14000c45d
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14000c450
mov rax, qword [rdi]
jmp 0x14000c453
mov rax, rdi
mov byte [rax], 0
jmp 0x14000c48b
test rbx, rbx
je 0x14000c48b
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000c46d
mov rax, qword [rdi]
jmp 0x14000c470
mov rax, rdi
mov byte [rax + rcx], bpl
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14000c484
mov rax, qword [rdi]
jmp 0x14000c487
mov rax, rdi
mov byte [rax + rbx], 0
inc rsi
cmp rsi, 4
jl 0x14000c3e0
xor esi, esi
xor ecx, ecx
movzx edx, byte [rsp + 0x82]
test r14d, r14d
je 0x14000c4c8
jmp 0x14000c350
lea rcx, str.string_too_long
call fcn.1400437bc
int3
lea rcx, str.string_too_long
call fcn.1400437bc
int3
test esi, esi
je 0x14000c6fb
movsxd rax, esi
cmp rax, 3
jge 0x14000c50e
jae 0x14000c508
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x14000c4d9
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
jmp 0x14000c50e
call fcn.14006eb1c
int3
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x89], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x8a], r12b
and dl, 0x3f
mov byte [rsp + 0x8b], dl
xor ebp, ebp
lea r12d, [rsi + 1]
test r12d, r12d
jle 0x14000c63e
lea r14, [rsp + 0x88]
lea rcx, [0x140158018]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140158018]
movzx eax, byte [r14]
movzx r15d, byte [rax + rcx]
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14000c631
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14000c624
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14000c5c5
mov rdx, rbx
mov rcx, rdi
call fcn.140007420
jmp 0x14000c5e1
test rbx, rbx
jne 0x14000c5e6
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14000c5d9
mov rax, qword [rdi]
jmp 0x14000c5dc
mov rax, rdi
mov byte [rax], 0
jmp 0x14000c614
test rbx, rbx
je 0x14000c614
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000c5f6
mov rax, qword [rdi]
jmp 0x14000c5f9
mov rax, rdi
mov byte [rax + rcx], r15b
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14000c60d
mov rax, qword [rdi]
jmp 0x14000c610
mov rax, rdi
mov byte [rax + rbx], 0
inc ebp
inc r14
cmp ebp, r12d
jl 0x14000c570
jmp 0x14000c63e
lea rcx, str.string_too_long
call fcn.1400437bc
int3
lea rcx, str.string_too_long
call fcn.1400437bc
int3
cmp esi, 3
jge 0x14000c6fb
nop word [rax + rax]
inc esi
mov r8, qword [rdi + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 1
jbe 0x14000c6ee
lea rbx, [r8 + 1]
cmp rbx, 0xfffffffffffffffe
ja 0x14000c6e1
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14000c687
mov rdx, rbx
mov rcx, rdi
call fcn.140007420
jmp 0x14000c6a3
test rbx, rbx
jne 0x14000c6a8
mov qword [rdi + 0x10], rbx
cmp rax, 0x10
jb 0x14000c69b
mov rax, qword [rdi]
jmp 0x14000c69e
mov rax, rdi
mov byte [rax], 0
jmp 0x14000c6d6
test rbx, rbx
je 0x14000c6d6
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000c6b8
mov rax, qword [rdi]
jmp 0x14000c6bb
mov rax, rdi
mov byte [rcx + rax], 0x3d
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14000c6cf
mov rax, qword [rdi]
jmp 0x14000c6d2
mov rax, rdi
mov byte [rbx + rax], 0
cmp esi, 3
jl 0x14000c650
jmp 0x14000c6fb
lea rcx, str.string_too_long
call fcn.1400437bc
int3
lea rcx, str.string_too_long
call fcn.1400437bc
int3
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret