Function at 0x140082e20
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 [0x1402f6010]
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, [0x1402d7c4b]
call fcn.14007c570
mov dword [rsp + 0x30], 1
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140082e90
test ebx, ebx
je 0x140083085
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 0x140082f64
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.140086ac0
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 0x140082f11
mov rdx, rdi
mov rcx, rsi
call fcn.14007c570
nop
test rdi, rdi
je 0x140082f64
mov rdx, qword [rsp + 0x60]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140082f5c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082f5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400897fc
mov rcx, rsi
call fcn.140086d70
cmp rax, 0xffffffffffffffff
je 0x140083085
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov r8d, 2
lea rdx, [0x1402d89cc]
lea rcx, [rsp + 0x50]
call fcn.14007c570
nop
mov rax, qword [rsi + 0x10]
mov rbx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140082fb2
mov rbx, qword [rsi]
cmp rax, 2
jb 0x14008301c
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 0x14008301c
movzx edi, byte [reloc.WS2_32.dll_ioctlsocket]
movzx ebp, byte [reloc.WS2_32.dll_listen]
cmp byte [rax], bpl
jne 0x140082ff3
cmp byte [rax + 1], dil
jne 0x140082ff3
mov ecx, r15d
jmp 0x140082ff8
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140083080
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 0x140082fe3
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x20], r15
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.140086e80
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140082f64
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082f5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082f5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rax, rbx
jmp 0x140083023
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400897d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret