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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402fd960]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor r13d, r13d
mov dword [rbp - 0x40], r13d
mov dword [rbp - 0x30], r13d
mov qword [rcx], r13
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r13b
xor r8d, r8d
lea rdx, [0x1402dc410]
call fcn.140088990
mov dword [rbp - 0x40], 1
mov r14, 0xffffffffffffffff
mov rsi, r14
nop dword [rax]
inc rsi
cmp byte [r12 + rsi], 0
jne 0x1400813e0
test esi, esi
je 0x1400815d0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, esi
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x1400814f5
xorps xmm0, xmm0
mov r15d, eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r13
cmp rax, 0x1000
jb 0x14008145b
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x1400815f7
call fcn.140233cbc
mov rcx, rax
test rax, rax
je 0x1400814e9
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140081463
mov rcx, r15
call fcn.140233cbc
mov qword [rbp - 0x28], rax
lea rbx, [rax + r15]
mov qword [rbp - 0x18], rbx
mov r8, r15
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, esi
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rdx, qword [rbp - 0x28]
inc r14
cmp byte [rdx + r14], 0
jne 0x1400814a2
mov r8, r14
mov rcx, rdi
call fcn.140088990
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400814f5
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400814f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400814f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140233920
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140081502
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 2
lea r9, [0x1402dd348]
mov rdx, qword [rdi + 0x10]
call fcn.14008bf10
cmp rax, 0xffffffffffffffff
je 0x1400815d0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov r8d, 2
lea rdx, [0x1402dd348]
lea rcx, [rbp - 0x28]
call fcn.140088990
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14008155d
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 2
lea r9, [0x1402dd348]
mov rdx, qword [rdi + 0x10]
call fcn.14008bf10
mov qword [rsp + 0x20], r13
mov r8, qword [rbp - 0x18]
mov rdx, rax
mov rcx, rdi
call fcn.1400887d0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400814f5
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400814f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400814f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140233900
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007c250
int3