Function at 0x140004c20
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x38], rcx
xor r12d, r12d
mov dword [rbp - 0x40], r12d
mov dword [rbp - 0x30], r12d
mov qword [rcx], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r12b
xor r8d, r8d
lea rdx, [0x14002678b]
call fcn.1400041a0
mov dword [rbp - 0x40], 1
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x140004c90
test edi, edi
je 0x140004f33
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, edi
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x140004db0
xorps xmm0, xmm0
mov esi, eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
cmp rax, 0x1000
jb 0x140004d0a
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140004f5b
call fcn.140021fac
mov rcx, rax
test rax, rax
je 0x140004da4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140004d12
mov rcx, rsi
call fcn.140021fac
mov qword [rbp - 0x28], rax
lea rbx, [rax + rsi]
mov qword [rbp - 0x18], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x28]
mov r8d, 1
mov edx, edi
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rdx, qword [rbp - 0x28]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140004d60
mov rcx, r15
call fcn.1400041a0
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140004db0
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022240
mov rax, qword [r15 + 0x10]
mov rbx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140004dc1
mov rbx, qword [r15]
cmp rax, 2
jb 0x140004e1d
lea rdi, [rax + rbx]
lea r8, [rdi - 1]
sub r8, rbx
mov edx, 0xd
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140004e1d
cmp byte [rax], 0xd
jne 0x140004df4
cmp byte [rax + 1], 0xa
jne 0x140004df4
mov ecx, r12d
jmp 0x140004df9
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140004ea0
inc rax
lea r8, [rdi - 1]
sub r8, rax
mov edx, 0xd
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140004de4
mov rax, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x140004f33
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov r8d, 2
lea rdx, [0x1400268f0]
lea rcx, [rbp - 0x28]
call fcn.1400041a0
nop
mov rax, qword [r15 + 0x10]
mov rbx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140004e6a
mov rbx, qword [r15]
cmp rax, 2
jb 0x140004ecd
lea rdi, [rax + rbx]
lea r8, [rdi - 1]
sub r8, rbx
mov edx, 0xd
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140004ecd
nop dword [rax]
cmp byte [rax], 0xd
jne 0x140004ea8
cmp byte [rax + 1], 0xa
jne 0x140004ea8
mov ecx, r12d
jmp 0x140004ead
sub rax, rbx
jmp 0x140004e24
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140004f2e
inc rax
lea r8, [rdi - 1]
sub r8, rax
mov edx, 0xd
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140004e90
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x20], r12
mov r8, qword [rbp - 0x18]
mov rdx, rax
mov rcx, r15
call fcn.14000ba70
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140004db0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rax, rbx
jmp 0x140004ed4
mov rax, r15
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140021cf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400012c0
int3