Function at 0x1401da3b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov qword [rdx + 0x18], 0xf
mov qword [rdx], rbp
mov r14d, r9d
mov qword [rdx + 0x10], rbp
mov r15, r8
mov rdi, rdx
mov esi, ebp
test r9d, r9d
je 0x1401da663
mov qword [rsp + 0x68], rbx
mov ecx, ebp
movzx ebx, byte [rsp + 0x78]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
nop dword [rax + rax]
movzx eax, byte [r15]
lea r15, [r15 + 1]
mov byte [rsp + rcx + 0x78], al
dec r14d
movzx edx, byte [rsp + 0x7a]
inc rcx
movzx r12d, byte [rsp + 0x79]
inc esi
movzx r13d, byte [rsp + 0x78]
cmp rcx, 3
jne 0x1401da4f1
movzx eax, r13b
movzx ecx, r13b
shr al, 2
and cl, 3
mov byte [rsp + 0x60], al
mov rsi, rbp
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
movzx eax, dl
mov byte [rsp + 0x61], cl
movzx ecx, r12b
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x62], cl
mov byte [rsp + 0x63], al
nop dword [rax]
nop word [rax + rax]
cmp qword [0x140544170], 0x10
lea rcx, [0x140544158]
movzx eax, byte [rsp + rsi + 0x60]
cmovae rcx, qword [0x140544158]
mov rdx, qword [rdi + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
cmp rcx, rdx
jae 0x1401da4cd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1401da4c2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], bpl
jmp 0x1401da4de
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1401a7570
inc rsi
cmp rsi, 4
jl 0x1401da480
movzx edx, byte [rsp + 0x7a]
mov esi, ebp
mov rcx, rbp
test r14d, r14d
jne 0x1401da400
test esi, esi
je 0x1401da645
mov r15d, 3
cmp esi, r15d
jge 0x1401da538
mov eax, r15d
lea rcx, [rsp + 0x78]
sub eax, esi
xor edx, edx
movsxd r8, eax
movsxd rax, esi
add rcx, rax
call fcn.1403ccc50
movzx edx, byte [rsp + 0x7a]
movzx r12d, byte [rsp + 0x79]
movzx r13d, byte [rsp + 0x78]
movzx eax, r13b
and r13b, r15b
shr al, 2
mov byte [rsp + 0x60], al
movzx eax, r12b
shr al, 4
and r12b, 0xf
shl r13b, 4
add r13b, al
shl r12b, 2
movzx eax, dl
mov byte [rsp + 0x61], r13b
shr al, 6
and dl, 0x3f
add r12b, al
mov byte [rsp + 0x63], dl
lea eax, [rsi + 1]
mov byte [rsp + 0x62], r12b
movsxd r14, eax
test eax, eax
jle 0x1401da5f2
movzx ebx, byte [rsp + 0x78]
lea r12, [0x140544158]
nop dword [rax]
cmp qword [0x140544170], 0x10
mov rcx, r12
movzx eax, byte [rsp + rbp + 0x60]
cmovae rcx, qword [0x140544158]
mov rdx, qword [rdi + 0x18]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
cmp rcx, rdx
jae 0x1401da5d9
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1401da5ce
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1401da5ea
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1401a7570
inc rbp
cmp rbp, r14
jl 0x1401da590
cmp esi, r15d
jge 0x1401da645
movzx ebx, byte [rsp + 0x78]
sub r15d, esi
movsxd rsi, r15d
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1401da62b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1401da623
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1401da63f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1401a7570
sub rsi, 1
jne 0x1401da602
mov r12, qword [rsp + 0x28]
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov r13, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret