Function at 0x1400813a0
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 [0x140303960]
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, [0x1402e04d0]
call fcn.1400890f0
mov dword [rbp - 0x40], 1
mov r14, 0xffffffffffffffff
mov rsi, r14
nop dword [rax]
inc rsi
cmp byte [r12 + rsi], 0
jne 0x140081410
test esi, esi
je 0x140081600
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 0x140081525
xorps xmm0, xmm0
mov r15d, eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r13
cmp rax, 0x1000
jb 0x14008148b
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140081627
call fcn.140237a7c
mov rcx, rax
test rax, rax
je 0x140081519
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140081493
mov rcx, r15
call fcn.140237a7c
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 0x1400814d2
mov r8, r14
mov rcx, rdi
call fcn.1400890f0
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140081525
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402376e0
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140081532
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 2
lea r9, [0x1402e1448]
mov rdx, qword [rdi + 0x10]
call fcn.14008c7a0
cmp rax, 0xffffffffffffffff
je 0x140081600
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, [0x1402e1448]
lea rcx, [rbp - 0x28]
call fcn.1400890f0
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14008158d
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 2
lea r9, [0x1402e1448]
mov rdx, qword [rdi + 0x10]
call fcn.14008c7a0
mov qword [rsp + 0x20], r13
mov r8, qword [rbp - 0x18]
mov rdx, rax
mov rcx, rdi
call fcn.140088f30
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140081525
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081520
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.1402376c0
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