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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1402f3010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
mov qword [r11 - 0x68], rcx
xor r15d, r15d
mov dword [r11 - 0x78], r15d
mov dword [r11 - 0x60], r15d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r15b
xor r8d, r8d
lea rdx, [0x1402d5c4b]
call fcn.14007c560
mov dword [rsp + 0x30], 1
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rbx + rbp], 0
jne 0x1400816e0
test ebx, ebx
je 0x1400818d5
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400817b4
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400850c0
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x50]
mov r9, rdi
mov r8d, 1
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140081761
mov rdx, rdi
mov rcx, rsi
call fcn.14007c560
nop
test rdi, rdi
je 0x1400817b4
mov rdx, qword [rsp + 0x60]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400817ac
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400817ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140087b3c
mov rcx, rsi
call fcn.140085370
cmp rax, 0xffffffffffffffff
je 0x1400818d5
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov r8d, 2
lea rdx, [0x1402d69cc]
lea rcx, [rsp + 0x50]
call fcn.14007c560
nop
mov rax, qword [rsi + 0x10]
mov rbx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140081802
mov rbx, qword [rsi]
cmp rax, 2
jb 0x14008186c
lea r14, [rax + rbx]
lea r8, [r14 - 1]
sub r8, rbx
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14008186c
movzx edi, byte [reloc.WS2_32.dll_ioctlsocket]
movzx ebp, byte [reloc.WS2_32.dll_listen]
cmp byte [rax], bpl
jne 0x140081843
cmp byte [rax + 1], dil
jne 0x140081843
mov ecx, r15d
jmp 0x140081848
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1400818d0
inc rax
lea r8, [r14 - 1]
sub r8, rax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140081833
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x20], r15
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.140085480
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400817b4
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400817af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400817af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rax, rbx
jmp 0x140081873
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140087b10
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret