Function at 0x14001b518
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, rdx
xor r13d, r13d
mov qword [rsp + 0x38], r13
lea rax, vtable.MemoryBufferPtr_class_ArrayMemoryBufferPtr_unsigned_char__.0
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
test al, al
jne 0x14001b7e6
mov r15d, r13d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov r14, rax
lea ebx, [rax - 1]
lea ecx, [r14 - 2]
cmp ebx, ecx
jl 0x14001b5b0
mov edx, ebx
mov rcx, rsi
call fcn.14000ac8c
mov rcx, rax
dec ebx
lea rax, [r15 + 1]
cmp word [rcx], 0x3d
cmovne rax, r15
mov r15, rax
jmp 0x14001b588
lea rbx, [r14 + r14*2]
shr rbx, 2
mov ecx, 0x18
call fcn.140058c00
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14001b5ec
lea rcx, [rbx + 1]
call fcn.140058c70
lea r8, [rbx + 1]
mov rdx, rax
mov rcx, rdi
call fcn.1400067f0
mov rdi, rax
jmp 0x14001b5ef
mov rdi, r13
mov qword [rsp + 0x50], rdi
lea rax, vtable.MemoryBufferPtr_class_ArrayMemoryBufferPtr_unsigned_char__.0
mov qword [rsp + 0x48], rax
mov r12d, r13d
mov dword [rsp + 0x28], r13d
lea r10, [0x140000000]
cmp r12d, r14d
jge 0x14001b761
mov ecx, r13d
mov dword [rsp + 0x20], ecx
cmp r13d, 4
jge 0x14001b655
lea edx, [r12 + r13]
mov rcx, rsi
call fcn.14000ac8c
movzx eax, word [rax]
lea r10, [0x140000000]
movsx ecx, byte [rax + r10 + 0xcda50]
and ecx, 0x3f
mov eax, dword [rsp + 0x20]
shl eax, 6
or ecx, eax
inc r13d
jmp 0x14001b61b
xor r13d, r13d
mov r8d, r13d
mov r9d, dword [rsp + 0x28]
cmp r8d, 3
jge 0x14001b758
cmp r9d, ebx
jl 0x14001b723
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp word [0x1400a6650], r13w
jne 0x14001b696
mov rax, r13
jmp 0x14001b6a2
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rsp + 0x58]
call fcn.1400045d0
nop
mov qword [rsp + 0x90], 0xf
mov qword [rsp + 0x88], r13
mov byte [rsp + 0x78], r13b
lea rcx, str..._nsCrypt.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsCrypt.cpp
lea rcx, [rsp + 0x78]
call fcn.140004720
nop
lea r9, [rsp + 0x58]
mov r8d, 0x464
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.140023340
lea rdx, [0x1400c8330]
lea rcx, [rsp + 0xa0]
call fcn.14005ba94
nop
movsxd rax, r8d
mov edx, dword [r10 + rax*4 + 0x8d4a0]
and edx, ecx
mov ecx, dword [r10 + rax*4 + 0x8d4b0]
sar edx, cl
movsxd rcx, r9d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], dl
inc r9d
mov dword [rsp + 0x28], r9d
inc r8d
mov ecx, dword [rsp + 0x20]
jmp 0x14001b660
add r12d, 4
jmp 0x14001b60f
mov ecx, 0x18
call fcn.140058c00
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14001b799
mov rsi, rbx
sub rsi, r15
mov rcx, rsi
call fcn.140058c70
mov r8, rsi
mov rdx, rax
mov rcx, r14
call fcn.1400067f0
mov rsi, rax
jmp 0x14001b79c
mov rsi, r13
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rsp + 0x38], rsi
mov rcx, r13
sub rbx, r15
je 0x14001b7d3
mov r9, qword [rdi + 8]
mov rax, qword [rsp + 0x38]
mov r8, qword [rax + 8]
mov al, byte [r9 + rcx]
mov byte [r8 + rcx], al
inc rcx
cmp rcx, rbx
jb 0x14001b7b6
test rdi, rdi
je 0x14001b7e6
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140058630
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret