Function at 0x140020580
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x1401fd600]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, rdx
mov rbx, rcx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x51], rcx
xor esi, esi
mov rdi, qword [rdx + 8]
mov qword [rbp - 0x51], rdi
xorps xmm0, xmm0
lea r10d, [rsi + 0xf]
test rdi, rdi
jne 0x1400205e1
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], r10
mov byte [rcx], sil
jmp 0x1400208f5
mov rax, rdi
shr rax, 2
lea rdx, [rax + rax*2]
movups xmmword [rbp - 9], xmm0
mov r11, rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], r10
mov byte [rbp - 9], sil
cmp rdx, 0xf
jbe 0x140020619
lea rcx, [rbp - 9]
call fcn.1400209b0
mov r11, rsi
mov qword [rbp + 7], rsi
mov r10, qword [rbp + 0xf]
test rdi, rdi
je 0x1400208e6
mov r15d, 2
movzx edi, byte [rbp - 0x59]
movzx esi, byte [rbp - 0x59]
movzx ebx, byte [rbp - 0x59]
mov r14, qword [rbp - 0x51]
nop dword [rax + rax]
mov rdx, qword [r13 + 8]
lea rcx, [r15 - 1]
cmp rdx, rcx
jbe 0x14002091f
mov r8, qword [r13]
movzx ecx, byte [r8 + rcx]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x140020667
lea rax, [rcx - 0x41]
jmp 0x1400206a2
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140020674
lea rax, [rcx - 0x47]
jmp 0x1400206a2
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140020681
lea rax, [rcx + 4]
jmp 0x1400206a2
lea eax, [rcx - 0x2b]
test al, 0xfd
je 0x14002069d
cmp cl, 0x2f
je 0x140020696
cmp cl, 0x5f
jne 0x140020925
mov eax, 0x3f
jmp 0x1400206a2
mov eax, 0x3e
mov r12d, eax
lea rcx, [r15 - 2]
cmp rdx, rcx
jbe 0x14002091f
movzx ecx, byte [r8 + rcx]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x1400206c3
sub cl, 0x41
jmp 0x1400206f6
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x1400206cf
sub cl, 0x47
jmp 0x1400206f6
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400206db
add cl, 4
jmp 0x1400206f6
lea eax, [rcx - 0x2b]
test al, 0xfd
je 0x1400206f4
cmp cl, 0x2f
je 0x1400206f0
cmp cl, 0x5f
jne 0x140020946
mov cl, 0x3f
jmp 0x1400206f6
mov cl, 0x3e
movzx r9d, r12b
shr r9b, 4
and r9b, 3
shl cl, 2
add r9b, cl
cmp r11, r10
jae 0x14002072e
lea rax, [r11 + 1]
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
cmp r10, 0x10
cmovae rax, qword [rbp - 9]
mov byte [rax + r11], r9b
mov byte [rax + r11 + 1], 0
jmp 0x140020740
movzx r8d, dil
mov edx, 1
lea rcx, [rbp - 9]
call fcn.140020b00
cmp r15, r14
jae 0x1400208c8
cmp qword [r13 + 8], r15
jbe 0x14002091f
mov rax, qword [r13]
movzx ecx, byte [r15 + rax]
cmp cl, 0x3d
je 0x1400208c8
cmp cl, 0x2e
je 0x1400208c8
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14002077b
lea r14d, [rcx - 0x41]
jmp 0x1400207b8
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140020788
lea r14d, [rcx - 0x47]
jmp 0x1400207b8
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140020795
lea r14d, [rcx + 4]
jmp 0x1400207b8
lea eax, [rcx - 0x2b]
test al, 0xfd
je 0x1400207b2
cmp cl, 0x2f
je 0x1400207aa
cmp cl, 0x5f
jne 0x140020967
mov r14d, 0x3f
jmp 0x1400207b8
mov r14d, 0x3e
mov r9d, r14d
shr r9d, 2
and r9b, 0xf
shl r12b, 4
add r9b, r12b
mov rcx, qword [rbp + 7]
mov rdx, qword [rbp + 0xf]
cmp rcx, rdx
jae 0x1400207f7
lea rax, [rcx + 1]
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
cmp rdx, 0x10
cmovae rax, qword [rbp - 9]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140020809
movzx r8d, sil
mov edx, 1
lea rcx, [rbp - 9]
call fcn.140020b00
lea rcx, [r15 + 1]
cmp rcx, qword [rbp - 0x51]
jae 0x1400208c4
cmp qword [r13 + 8], rcx
jbe 0x14002091f
mov rax, qword [r13]
movzx ecx, byte [rcx + rax]
cmp cl, 0x3d
je 0x1400208c4
cmp cl, 0x2e
je 0x1400208c4
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x140020847
sub cl, 0x41
jmp 0x14002087a
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140020853
sub cl, 0x47
jmp 0x14002087a
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002085f
add cl, 4
jmp 0x14002087a
lea eax, [rcx - 0x2b]
test al, 0xfd
je 0x140020878
cmp cl, 0x2f
je 0x140020874
cmp cl, 0x5f
jne 0x140020988
mov cl, 0x3f
jmp 0x14002087a
mov cl, 0x3e
shl r14b, 6
add r14b, cl
mov rcx, qword [rbp + 7]
mov rdx, qword [rbp + 0xf]
cmp rcx, rdx
jae 0x1400208ae
lea rax, [rcx + 1]
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
cmp rdx, 0x10
cmovae rax, qword [rbp - 9]
mov byte [rax + rcx], r14b
mov byte [rax + rcx + 1], 0
jmp 0x1400208c4
movzx r9d, r14b
movzx r8d, bl
mov edx, 1
lea rcx, [rbp - 9]
call fcn.140020b00
mov r14, qword [rbp - 0x51]
add r15, 4
lea rax, [r15 - 2]
cmp rax, r14
jae 0x1400208e2
mov r10, qword [rbp + 0xf]
mov r11, qword [rbp + 7]
jmp 0x140020640
mov rbx, qword [rbp - 0x41]
movups xmm0, xmmword [rbp - 9]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14015b500
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140020ef0
nop
lea rdx, str.Input_is_not_valid_base64_encoded_data.
lea rcx, [rbp - 0x39]
call fcn.14001fe30
lea rdx, [0x1401f7618]
lea rcx, [rbp - 0x39]
call fcn.14015e1c8
int3
lea rdx, str.Input_is_not_valid_base64_encoded_data.
lea rcx, [rbp - 0x39]
call fcn.14001fe30
lea rdx, [0x1401f7618]
lea rcx, [rbp - 0x39]
call fcn.14015e1c8
int3
lea rdx, str.Input_is_not_valid_base64_encoded_data.
lea rcx, [rbp - 0x39]
call fcn.14001fe30
lea rdx, [0x1401f7618]
lea rcx, [rbp - 0x39]
call fcn.14015e1c8
int3
lea rdx, str.Input_is_not_valid_base64_encoded_data.
lea rcx, [rbp - 0x21]
call fcn.14001fe30
lea rdx, [0x1401f7618]
lea rcx, [rbp - 0x21]
call fcn.14015e1c8
int3