Function at 0x1400af5e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x4c]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
mov qword [rsp + 0x70], rcx
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14010c9b0
cmp dword [rsi + 0x48], 0
je 0x1400af708
mov rax, qword [rsi + 8]
mov byte [rbx + rax], 0
lea rdx, str.Content_Transfer_Encoding:
mov rcx, rbx
call fcn.1400c9790
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400af708
lea rdx, [0x1402065d0]
mov rcx, rax
call fcn.14010d30c
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400af68d
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rax, [rcx - 1]
mov rdi, qword [rsp + 0x20]
add rax, rdi
mov qword [rsp + 0x78], rax
je 0x1400af708
mov byte [rax], 0
lea rdx, str.binary
mov rcx, rdi
call fcn.1400c9790
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400af700
lea rcx, [rsi + 0x20]
call fcn.1400a4180
test eax, eax
jne 0x1400af6ce
mov ecx, dword [str.base64]
mov dword [rdi], ecx
movzx ecx, word [0x140210d48]
mov word [rdi + 4], cx
jmp 0x1400af700
lea rdx, [rdi + 2]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14010c9b0
mov dword [rdi], 0x74696238
sub rbx, 2
mov qword [rsp + 0x68], rbx
mov rax, qword [rsp + 0x78]
mov byte [rax], 0xd
add rbx, qword [rsi + 8]
mov qword [rsp + 0x68], rbx
mov eax, 0xa0d
mov word [rbx], ax
add rbx, 2
mov qword [rsp + 0x68], rbx
lea rcx, [rsi + 0x20]
call fcn.1400a4180
test eax, eax
jne 0x1400af8cb
mov r9d, 0xa0d
mov word [rbx], r9w
add rbx, 2
mov qword [rsp + 0x68], rbx
cmp dword [rsi + 0x48], eax
je 0x1400af8b2
xor edx, edx
mov qword [rsp + 0x28], rdx
mov r8, qword [rsi + 0x10]
mov qword [rsp + 0x20], r8
mov rdi, qword [rsi + 0x18]
mov qword [rsp + 0x30], rdi
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
cmp rdi, 2
jle 0x1400af81d
movzx eax, byte [r8]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movsx eax, byte [r8]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [r8 + 1]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movsx eax, byte [r8 + 1]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [r8 + 2]
shr eax, 6
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 2], al
movsx rax, byte [r8 + 2]
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rbx + 3], al
add rbx, 4
mov qword [rsp + 0x68], rbx
add r8, 3
mov qword [rsp + 0x20], r8
sub rdi, 3
mov qword [rsp + 0x30], rdi
add rdx, 4
mov qword [rsp + 0x28], rdx
cmp rdx, 0x48
jl 0x1400af818
xor edx, edx
mov qword [rsp + 0x28], rdx
mov word [rbx], r9w
add rbx, 2
mov qword [rsp + 0x68], rbx
jmp 0x1400af770
cmp rdi, 1
jne 0x1400af84e
movzx eax, byte [r8]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movsx eax, byte [r8]
and eax, 3
shl eax, 4
cdqe
movzx eax, byte [rax + r10]
mov byte [rbx + 1], al
mov word [rbx + 2], 0x3d3d
jmp 0x1400af89c
cmp rdi, 2
jne 0x1400af8a5
movzx eax, byte [r8]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movsx eax, byte [r8]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [r8 + 1]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movsx eax, byte [r8 + 1]
and eax, 0xf
shl eax, 2
cdqe
movzx eax, byte [rax + r10]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
mov qword [rsp + 0x68], rbx
mov word [rbx], r9w
add rbx, 2
jmp 0x1400af9c9
mov r8, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x10]
mov rcx, rbx
call fcn.14010c9b0
add rbx, qword [rsi + 0x18]
jmp 0x1400af9c9
mov r8, qword [rsi + 0xa0]
mov rdx, qword [rsi + 0x98]
mov rcx, rbx
call fcn.14010c9b0
add rbx, qword [rsi + 0xa0]
mov qword [rsp + 0x68], rbx
lea rcx, [rsi + 0x20]
call fcn.1400a3cb0
nop
lea rcx, [rsi + 0x20]
call fcn.1400a41d0
mov rdi, rax
test rdi, rdi
je 0x1400af96c
mov rcx, rdi
call fcn.1400a39b0
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400af95b
lea rdx, [rsi + 0x4c]
mov r8, qword [rsp + 0x70]
mov rcx, rbx
call fcn.14010c9b0
add rbx, qword [rsp + 0x70]
mov qword [rsp + 0x68], rbx
mov eax, 0xa0d
mov word [rbx], ax
add rbx, 2
mov qword [rsp + 0x68], rbx
mov rdx, rbx
mov rcx, qword [rsp + 0x78]
call fcn.1400af5e0
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdx, rdi
lea rcx, [rsi + 0x20]
call fcn.1400a41e0
mov rdi, rax
jmp 0x1400af903
jmp 0x1400af978
lea rcx, [rsi + 0x20]
call fcn.1400a3cd0
lea rdx, [rsi + 0x4c]
mov rdi, qword [rsp + 0x70]
mov r8, rdi
mov rcx, rbx
call fcn.14010c9b0
add rbx, rdi
mov qword [rsp + 0x68], rbx
mov dword [rbx], 0xa0d2d2d
add rbx, 4
mov qword [rsp + 0x68], rbx
mov r8, qword [rsi + 0xb0]
mov rdx, qword [rsi + 0xa8]
mov rcx, rbx
call fcn.14010c9b0
add rbx, qword [rsi + 0xb0]
mov qword [rsp + 0x68], rbx
mov rax, rbx
jmp 0x1400af9d8
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret