Function at 0x140163e50
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x668
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x5d0], xmm6
mov qword [rbp + 0x5c8], 0xfffffffffffffffe
mov qword [rbp + 0x4c0], rcx
mov r15, qword [rdx + 0x60]
movzx eax, byte [rdx + 0x68]
test al, al
mov qword [rbp + 0x5a8], r8
mov qword [rbp + 0x588], rdx
jne 0x140163ece
test r15, r15
jne 0x140163ece
mov r13, r8
mov qword [rbp + 0x3e0], 0
xor r15d, r15d
mov r8, qword [rdx + 0x40]
lea rbx, [0x1401f2788]
test r8, r8
jne 0x140164c2c
jmp 0x140165d59
mov qword [rbp + 0x4a0], 0
mov qword [rbp + 0x4b0], 0
test al, al
jne 0x14016411f
mov qword [rbp + 0x5b8], r15
call qword [0x14019d2b8]
test rax, rax
je 0x140167804
lea r15, [rbp - 0x18]
lea rdi, [rbp + 0x568]
lea rbx, [rbp + 0x440]
mov qword [rbp + 0x598], rax
mov r14, rax
nop
cmp word [r14], 0
je 0x140164104
mov r13, r14
mov rcx, 0xfffffffffffffffe
xor edx, edx
nop word [rax + rax]
mov r12, rdx
mov rax, rcx
inc rdx
add rcx, 2
cmp word [r13 + r12*2], 0
jne 0x140163f40
lea r14, [rdx*2]
add r14, r13
cmp r12, 1
je 0x140163f20
test r12, r12
je 0x14016772c
xor esi, esi
nop word cs:[rax + rax]
cmp word [r13 + rsi*2 + 2], 0x3d
je 0x140163fa0
inc rsi
add rax, 0xfffffffffffffffe
jne 0x140163f80
jmp 0x140163f20
lea r8, [rsi + 1]
cmp rsi, r12
jae 0x140167744
mov rcx, rdi
mov rdx, r13
call fcn.14015bbc0
add rsi, 2
mov r8, r12
sub r8, rsi
jb 0x14016775e
lea rdx, [rsi*2]
add rdx, r13
mov rcx, rbx
call fcn.14015bbc0
movups xmm0, xmmword [rbp + 0x568]
movups xmm1, xmmword [rbp + 0x578]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp + 0x440]
movups xmm1, xmmword [rbp + 0x450]
movups xmmword [r15 + 0x18], xmm1
movups xmmword [r15 + 8], xmm0
movdqa xmm0, xmmword [rbp - 0x30]
movaps xmm1, xmmword [rbp - 0x20]
movaps xmm2, xmmword [rbp - 0x10]
movaps xmm3, xmmword [rbp]
movdqa xmmword [rbp + 0x4f0], xmm0
movaps xmmword [rbp + 0x500], xmm1
movaps xmmword [rbp + 0x510], xmm2
movaps xmmword [rbp + 0x520], xmm3
cmp byte [rbp + 0x508], 2
je 0x140164104
mov rcx, qword [rbp + 0x4f0]
mov rax, qword [rbp + 0x500]
add rax, rcx
mov qword [rbp + 0x5a0], rcx
mov qword [rbp + 0x440], rcx
mov qword [rbp + 0x448], rax
mov word [rbp + 0x450], 0
mov rcx, rdi
mov rdx, rbx
call fcn.140168a90
movaps xmm0, xmmword [rbp + 0x4f0]
movaps xmm1, xmmword [rbp + 0x500]
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15], xmm0
movdqu xmm0, xmmword [rbp + 0x568]
movdqa xmmword [rbp - 0x30], xmm0
mov rax, qword [rbp + 0x578]
mov qword [rbp - 0x20], rax
mov byte [rbp + 0x597], 0
mov rcx, rbx
lea rdx, [rbp + 0x4a0]
lea r8, [rbp - 0x30]
lea r9, [rbp + 0x510]
call fcn.140168cd0
cmp byte [rbp + 0x458], 2
je 0x140163f20
cmp qword [rbp + 0x448], 0
je 0x140163f20
mov r8, qword [rbp + 0x440]
mov rcx, qword [0x14026d258]
xor edx, edx
call qword [case.0x14001f69e.0]
jmp 0x140163f20
mov rcx, qword [rbp + 0x598]
call qword [0x14019d2c0]
mov rdx, qword [rbp + 0x588]
mov r15, qword [rbp + 0x5b8]
mov rax, qword [rdx + 0x50]
mov r8, qword [rdx + 0x58]
xor r12d, r12d
test rax, rax
setne r12b
cmove r15, rax
xor r13d, r13d
jmp 0x140164149
lea r8, [0x1401f24b0]
mov ecx, 1
xor edx, edx
call fcn.140194840
jmp 0x14016794b
lea rax, [0x1401f2480]
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140194940
jmp 0x14016794b
lea r8, [0x1401f2498]
mov rcx, rsi
mov rdx, r12
call fcn.140194840
jmp 0x14016794b
call qword [0x14019d3b8]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x440], rax
lea rax, [rbp + 0x440]
mov qword [rbp + 0x4f0], rax
lea rax, [fcn.14015e490]
mov qword [rbp + 0x4f8], rax
lea rax, [0x1401f24f0]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x10], 0
lea rax, [rbp + 0x4f0]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rdx, [0x1401f2500]
lea rcx, [rbp - 0x30]
call fcn.140194800
jmp 0x14016794b