Function at 0x1402aeef0
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, qword [rcx + 0x20]
add rdx, rax
jb 0x1402af25a
mov r12, rcx
mov r15, qword [rcx + 8]
cmp rdx, r15
jbe 0x1402af211
mov esi, 1
cmp rdx, 2
jb 0x1402aef66
dec rdx
bsr rcx, rdx
xor ecx, 0x3f
mov rsi, 0xffffffffffffffff
shr rsi, cl
inc rsi
cmp rsi, 0x8000
ja 0x1402af274
test rsi, rsi
je 0x1402af28e
test rax, rax
je 0x1402aef87
mov rcx, r12
mov rdx, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.1402ab670
lea eax, [rsi - 1]
mov word [r12 + 0x58], ax
lea r14, [rsi*4]
mov edx, 2
mov rcx, r14
call fcn.1400938a0
test rax, rax
je 0x1402af2a8
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rsi
cmp rsi, 2
jb 0x1402af09f
lea r8, [rsi - 1]
mov ecx, 1
cmp r8, 8
jb 0x1402af085
mov rcx, r8
and rcx, 0xfffffffffffffff8
lea rdi, [rcx - 8]
mov rbx, rdi
shr rbx, 3
inc rbx
mov edx, ebx
and edx, 3
cmp rdi, 0x18
jae 0x1402aeff7
xor edi, edi
jmp 0x1402af041
and rbx, 0xfffffffffffffffc
xor edi, edi
movaps xmm0, xmmword [0x1403bc2e0]
nop word cs:[rax + rax]
movups xmmword [rax + rdi*4], xmm0
movups xmmword [rax + rdi*4 + 0x10], xmm0
movups xmmword [rax + rdi*4 + 0x20], xmm0
movups xmmword [rax + rdi*4 + 0x30], xmm0
movups xmmword [rax + rdi*4 + 0x40], xmm0
movups xmmword [rax + rdi*4 + 0x50], xmm0
movups xmmword [rax + rdi*4 + 0x60], xmm0
movups xmmword [rax + rdi*4 + 0x70], xmm0
add rdi, 0x20
add rbx, 0xfffffffffffffffc
jne 0x1402af010
test rdx, rdx
je 0x1402af078
shl rdi, 2
movaps xmm0, xmmword [0x1403bc2e0]
nop word cs:[rax + rax]
mov rbx, rdi
or rbx, 0x10
movups xmmword [rax + rdi], xmm0
movups xmmword [rax + rbx], xmm0
add rdi, 0x20
dec rdx
jne 0x1402af060
lea rax, [rax + rcx*4]
cmp r8, rcx
je 0x1402af09f
or rcx, 1
mov rdx, rsi
sub rdx, rcx
nop dword [rax + rax]
mov dword [rax], 0xffff
add rax, 4
dec rdx
jne 0x1402af090
mov dword [rax], 0xffff
mov qword [rbp - 0x40], rsi
mov rdx, qword [rbp - 0x48]
cmp rdx, rsi
jbe 0x1402af0e8
mov rcx, qword [rbp - 0x50]
shl rdx, 2
test rsi, rsi
je 0x1402af223
mov r8d, 2
mov r9, r14
call fcn.1400938c0
mov rbx, rax
test rax, rax
jne 0x1402af0ec
mov edx, 2
mov rcx, r14
call fcn.1403b6040
ud2
mov rbx, qword [rbp - 0x50]
test r15, r15
je 0x1402af107
mov rcx, qword [r12]
shl r15, 2
mov r8d, 2
mov rdx, r15
call fcn.1400938b0
mov qword [r12], rbx
mov qword [r12 + 8], rsi
mov rcx, rsi
shr rcx, 2
mov eax, 8
sub rsi, rcx
je 0x1402af160
movabs rax, 0x13b13b13b13b13c
xor ebx, ebx
cmp rsi, rax
setb al
jae 0x1402af2b7
imul rdi, rsi, 0x68
mov bl, al
shl rbx, 3
test rdi, rdi
je 0x1402af241
mov rcx, rdi
mov rdx, rbx
call fcn.1400938a0
test rax, rax
je 0x1402af24d
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rsi
lea rax, [r12 + 0x10]
mov qword [rbp - 0x58], rax
mov rdi, qword [r12 + 0x10]
mov qword [rbp - 0x28], r12
imul rax, qword [r12 + 0x20], 0x68
add rax, rdi
mov qword [rbp - 0x30], rax
mov rcx, rdi
jmp 0x1402af1ab
mov rbx, qword [rbp - 0x10]
mov rax, qword [rbx + 0x38]
lea rcx, [rbx + 0x30]
mov rdx, qword [rbx + 0x20]
mov r8, qword [rbx + 0x28]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
cmp rcx, qword [rbp - 0x30]
je 0x1402af1da
lea rax, [rcx + 0x68]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x10], rcx
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1402af190
mov rbx, qword [rbp - 0x10]
lea rcx, [rbx + 0x10]
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
call qword [rax + 0x10]
jmp 0x1402af190
mov rsi, qword [rbp - 0x28]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1402af1f9
imul rdx, rax, 0x68
mov r8d, 8
mov rcx, rdi
call fcn.1400938b0
mov rax, qword [rbp - 0x18]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp - 0x20]
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], 0
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov ebx, 2
mov r8d, 2
call fcn.1400938b0
test r15, r15
jne 0x1402af0f1
jmp 0x1402af107
mov rax, rbx
test rax, rax
jne 0x1402af160
mov rcx, rdi
mov rdx, rbx
call fcn.1403b6040
ud2
lea rcx, str.reserve_overflowheader_map_reserve_over_max_capacity
lea r8, [0x140455cb8]
mov edx, 0x10
call fcn.1403b6250
ud2
lea rcx, [0x140455c40]
lea r8, [0x140455c68]
mov edx, 0x24
call fcn.1403b25c0
ud2
lea rcx, str.header_map_reserve_overflowed
lea r8, [0x140455ca0]
mov edx, 0x1d
call fcn.1403b25c0
ud2
mov edx, 2
mov rcx, r14
call fcn.1403b6040
ud2
call fcn.14038e8a0
ud2