Function at 0x140080ff0
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, [0x1402d5c53]
call fcn.14007c5d0
mov dword [rsp + 0x30], 1
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140081060
test ebx, ebx
je 0x140081255
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 0x140081134
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.140084c50
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 0x1400810e1
mov rdx, rdi
mov rcx, rsi
call fcn.14007c5d0
nop
test rdi, rdi
je 0x140081134
mov rdx, qword [rsp + 0x60]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14008112c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008112c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14008762c
mov rcx, rsi
call fcn.140084f00
cmp rax, 0xffffffffffffffff
je 0x140081255
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov r8d, 2
lea rdx, [0x1402d69ec]
lea rcx, [rsp + 0x50]
call fcn.14007c5d0
nop
mov rax, qword [rsi + 0x10]
mov rbx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140081182
mov rbx, qword [rsi]
cmp rax, 2
jb 0x1400811ec
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 0x1400811ec
movzx edi, byte [reloc.WS2_32.dll_ioctlsocket]
movzx ebp, byte [reloc.WS2_32.dll_listen]
cmp byte [rax], bpl
jne 0x1400811c3
cmp byte [rax + 1], dil
jne 0x1400811c3
mov ecx, r15d
jmp 0x1400811c8
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140081250
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 0x1400811b3
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x20], r15
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.140085010
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140081134
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008112f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008112f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rax, rbx
jmp 0x1400811f3
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140087600
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret