Function at 0x140014280
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x50], rax
movsxd rsi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [r11 - 0x40], 0xf
mov qword [r11 - 0x48], rbp
mov byte [rsp + 0x30], bpl
xor r8d, r8d
lea rdx, [0x14025d840]
lea rcx, [r11 - 0x58]
call fcn.140007260
nop
mov r8d, ebp
test rdi, rdi
jne 0x140014310
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rbp
cmp qword [r14 + 0x18], 0x10
jb 0x140014305
mov rax, qword [r14]
jmp 0x140014308
mov rax, r14
mov byte [rax], r8b
jmp 0x140014461
mov qword [rbx + 0x18], rdi
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], ebp
mov rdx, rbp
nop dword [rax]
cmp rdx, rsi
jge 0x140014347
movsx eax, byte [rdx + rdi]
inc r8d
inc rdx
mov ecx, dword [rbx + 0x10]
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [rbx + 0x10], ecx
add dword [rbx + 0xc], 8
cmp dword [rbx + 0xc], 6
jl 0x140014320
mov edi, dword [rbx + 0xc]
mov eax, dword [rbx + 0x10]
cmp edi, 6
jge 0x140014360
mov ecx, 6
sub ecx, edi
shl eax, cl
mov dword [rbx + 0xc], ebp
jmp 0x14001436d
lea ecx, [rdi - 6]
shr eax, cl
mov edi, 6
mov dword [rbx + 0xc], ecx
and eax, 0x3f
test edi, edi
jle 0x140014429
movsxd rsi, r8d
lea r12, [0x14025d8c0]
movsxd rcx, eax
cmp qword [rbx + 0x30], rcx
jbe 0x14001441c
cmp qword [rbx + 0x38], 0x10
jb 0x14001439c
mov rax, qword [rbx + 0x20]
jmp 0x1400143a0
lea rax, [rbx + 0x20]
movzx edx, byte [rax + rcx]
lea rcx, [rsp + 0x30]
call fcn.140014980
movsxd r9, edi
mov eax, dword [rbx + 0xc]
cmp eax, edi
jge 0x140014400
movsxd r8, dword [rbx + 8]
nop dword [rax]
cmp rsi, r8
jge 0x1400143e7
mov rax, qword [rbx + 0x18]
movsx ecx, byte [rax + rsi]
inc rsi
mov edx, dword [rbx + 0x10]
shl edx, 8
movzx eax, cl
or edx, eax
mov dword [rbx + 0x10], edx
add dword [rbx + 0xc], 8
cmp dword [rbx + 0xc], edi
jl 0x1400143c0
mov eax, dword [rbx + 0xc]
cmp eax, edi
jge 0x140014400
sub edi, eax
movzx ecx, dil
mov edx, dword [rbx + 0x10]
shl edx, cl
mov edi, eax
mov dword [rbx + 0xc], ebp
jmp 0x14001440c
sub eax, edi
mov edx, dword [rbx + 0x10]
mov ecx, eax
shr edx, cl
mov dword [rbx + 0xc], eax
mov eax, dword [r12 + r9*4]
and eax, edx
test edi, edi
jg 0x140014382
jmp 0x140014429
lea rcx, str.invalid_string_position
call fcn.14010a148
int3
test byte [rsp + 0x40], 3
je 0x140014443
mov dl, 0x3d
lea rcx, [rsp + 0x30]
call fcn.140014980
test byte [rsp + 0x40], 3
jne 0x140014430
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rbp
cmp qword [r14 + 0x18], 0x10
jb 0x14001445b
mov rax, qword [r14]
jmp 0x14001445e
mov rax, r14
mov byte [rax], 0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400095a0
nop
mov r8, qword [rsp + 0x48]
cmp r8, 0x10
jb 0x14001448c
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400075b0
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012a1e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret