Function at 0x140143100
Capabilities:
Encode data using base64

Disassembly:
push r14
sub rsp, 0x40
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov r14, rax
test rax, rax
jne 0x14014311a
add rsp, 0x40
pop r14
ret
mov qword [rsp + 0x50], rbx
mov rcx, r14
mov qword [rsp + 0x60], rbp
xor ebp, ebp
mov qword [rsp + 0x38], rsi
mov rsi, r14
mov qword [rsp + 0x20], r15
lea edx, [rbp + 0x3d]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14014316d
nop dword [rax]
nop word [rax + rax]
lea rcx, [rax + 1]
mov byte [rax], 0
mov edx, 0x3d
inc ebp
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x140143150
cmp ebp, 2
jg 0x14014317a
call fcn.140135c40
mov r15, rax
test rax, rax
jne 0x140143189
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor eax, eax
jmp 0x140143371
mov rcx, r15
mov qword [rsp + 0x28], r12
call fcn.140136450
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x1401431a0
mov qword [rsp + 0x30], rdi
lea r12, [0x1402e0330]
cmp rbx, 4
jbe 0x140143288
movsx edx, byte [rsi]
mov rcx, r12
call sub.VCRUNTIME140.dll_strchr
mov rdi, rax
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 1]
sub edi, r12d
shl edi, 0x12
mov rcx, r12
and edi, 0xfc0000
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 2]
sub eax, r12d
shl eax, 0xc
mov rcx, r12
and eax, 0x3f000
or edi, eax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 3]
sub eax, r12d
shl eax, 6
mov rcx, r12
and eax, 0xfc0
or edi, eax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
sub eax, r12d
lea rdx, [rsp + 0x58]
and eax, 0x3f
mov r8d, 3
or edi, eax
mov rcx, r15
mov eax, edi
mov byte [rsp + 0x5a], dil
shr eax, 0x10
mov byte [rsp + 0x58], al
mov eax, edi
shr eax, 8
mov byte [rsp + 0x59], al
call fcn.1401356a0
test eax, eax
js 0x140143355
sub rbx, 4
add rsi, 4
cmp rbx, 4
ja 0x1401431c0
sub rbx, 2
je 0x14014340f
sub rbx, 1
je 0x14014338c
cmp rbx, 1
jne 0x140143355
test ebp, ebp
jne 0x140143355
movsx edx, byte [rsi]
mov rcx, r12
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 1]
sub ebx, r12d
shl ebx, 0x12
mov rcx, r12
and ebx, 0xfc0000
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 2]
sub eax, r12d
shl eax, 0xc
mov rcx, r12
and eax, 0x3f000
or ebx, eax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 3]
sub eax, r12d
shl eax, 6
mov rcx, r12
and eax, 0xfc0
or ebx, eax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
sub eax, r12d
lea r8d, [rbp + 3]
and eax, 0x3f
or ebx, eax
mov eax, ebx
mov byte [rsp + 0x5a], bl
shr eax, 0x10
mov byte [rsp + 0x58], al
mov eax, ebx
shr eax, 8
mov byte [rsp + 0x59], al
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.1401356a0
test eax, eax
jns 0x14014348c
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, r15
call fcn.1401359e0
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x40
pop r14
ret
cmp ebp, 1
jne 0x140143355
movsx edx, byte [rsi]
mov rcx, r12
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 1]
sub ebx, r12d
shl ebx, 0x12
mov rcx, r12
and ebx, 0xfc0000
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 2]
sub eax, r12d
shl eax, 0xc
mov rcx, r12
and eax, 0x3f000
or ebx, eax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
sub eax, r12d
lea r8d, [rbp + 1]
shl eax, 6
and eax, 0xfc0
or ebx, eax
mov eax, ebx
mov byte [rsp + 0x5a], bl
shr eax, 0x10
mov byte [rsp + 0x58], al
mov eax, ebx
shr eax, 8
mov byte [rsp + 0x59], al
jmp 0x140143340
cmp ebp, 2
jne 0x140143355
movsx edx, byte [rsi]
mov rcx, r12
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x140143355
movsx edx, byte [rsi + 1]
sub ebx, r12d
shl ebx, 0x12
mov rcx, r12
and ebx, 0xfc0000
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140143355
sub eax, r12d
lea r8d, [rbp - 1]
shl eax, 0xc
lea rdx, [rsp + 0x58]
and eax, 0x3f000
mov rcx, r15
or ebx, eax
mov eax, ebx
mov byte [rsp + 0x5a], bl
shr eax, 0x10
mov byte [rsp + 0x58], al
mov eax, ebx
shr eax, 8
mov byte [rsp + 0x59], al
call fcn.1401356a0
test eax, eax
js 0x140143355
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, r15
jmp 0x140143367