Function at 0x140062360
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov r12, rcx
mov rsi, rdx
mov rbp, r8
mov qword [rsp + 0x38], 0
test r9b, r9b
je 0x140062608
imul rcx, r8, 4
jo 0x1400625c0
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov r9, rdx
js 0x1400625d0
lea r14, [rsp + 0x30]
mov rcx, r14
call sym.setLengthStrV2
mov rax, rbp
imul rdi
mov rax, rbp
sar rax, 0x3f
mov rdi, rdx
sub rdi, rax
lea rax, [rdi + rdi*2]
mov rdi, rbp
sub rdi, rax
mov rax, rbp
sub rax, rdi
mov qword [rsp + 0x28], rdi
seto r15b
mov qword [rsp + 0x20], rax
movzx r15d, r15b
jo 0x1400625c0
xor ebx, ebx
lea r13, [0x140134fc0]
cmp qword [rsp + 0x20], r15
je 0x140062890
cmp rbp, r15
jle 0x140062878
movzx eax, byte [rsi + r15]
mov rcx, r15
shl eax, 0x10
mov r9d, eax
add rcx, 1
js 0x1400625c0
cmp rcx, r15
jb 0x1400625c0
test rcx, rcx
js 0x140062850
cmp rcx, rbp
jge 0x140062850
movzx edx, byte [rsi + rcx]
lea rcx, [r15 + 2]
shl edx, 8
cmp rbp, rcx
jle 0x140062850
movzx eax, byte [rsi + r15 + 2]
add r15, 3
or eax, edx
mov rdx, qword [rsp + 0x30]
or eax, r9d
mov edi, eax
test rbx, rbx
js 0x140062860
cmp rbx, rdx
jge 0x140062860
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400624b3
test byte [rdx + 7], 0x40
je 0x1400624b3
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ecx, edi
shr ecx, 0x12
movzx ecx, byte [r13 + rcx]
mov byte [rdx + rbx + 8], cl
add rbx, 1
mov rcx, rbx
jo 0x1400625c0
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062830
cmp rbx, rdx
jge 0x14006283a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140062503
test byte [rdx + 7], 0x40
je 0x140062503
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [r13 + rcx]
mov byte [rdx + rbx + 8], cl
add rbx, 1
mov rcx, rbx
jo 0x1400625c0
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062830
cmp rbx, rdx
jge 0x14006283a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140062556
test byte [rdx + 7], 0x40
je 0x140062556
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ecx, edi
shr ecx, 6
and ecx, 0x3f
movzx ecx, byte [r13 + rcx]
mov byte [rdx + rbx + 8], cl
add rbx, 1
mov rcx, rbx
jo 0x1400625c0
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062830
cmp rbx, rdx
jge 0x14006283a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400625a5
test byte [rdx + 7], 0x40
je 0x1400625a5
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov eax, edi
and eax, 0x3f
movzx eax, byte [r13 + rax]
mov byte [rdx + rbx + 8], al
add rbx, 1
jno 0x140062413
nop
call sym.raiseOverflow
jmp 0x1400625e4
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r9
call sym.raiseRangeErrorI
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r12
movups xmmword [r12], xmm0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
imul rcx, r8, 4
jo 0x1400625c0
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov r9, rdx
js 0x1400625d0
lea r14, [rsp + 0x30]
mov rcx, r14
call sym.setLengthStrV2
mov rax, rbp
imul rdi
mov rax, rbp
sar rax, 0x3f
mov rdi, rdx
sub rdi, rax
lea rax, [rdi + rdi*2]
mov rdi, rbp
sub rdi, rax
mov rax, rbp
sub rax, rdi
mov qword [rsp + 0x28], rdi
seto r15b
mov qword [rsp + 0x20], rax
movzx r15d, r15b
jo 0x1400625c0
xor ebx, ebx
lea r13, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
cmp qword [rsp + 0x20], r15
je 0x140062a06
cmp rbp, r15
jle 0x140062878
movzx eax, byte [rsi + r15]
mov rcx, r15
shl eax, 0x10
mov r9d, eax
add rcx, 1
js 0x1400625c0
cmp rcx, r15
jb 0x1400625c0
test rcx, rcx
js 0x140062850
cmp rcx, rbp
jge 0x140062850
movzx eax, byte [rsi + rcx]
lea rcx, [r15 + 2]
shl eax, 8
cmp rcx, rbp
jge 0x140062850
movzx edx, byte [rsi + r15 + 2]
add r15, 3
or eax, edx
mov rdx, qword [rsp + 0x30]
or eax, r9d
mov edi, eax
test rbx, rbx
js 0x140062860
cmp rdx, rbx
jle 0x140062860
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14006271f
test byte [rdx + 7], 0x40
je 0x14006271f
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ecx, edi
shr ecx, 0x12
movzx ecx, byte [r13 + rcx]
mov byte [rdx + rbx + 8], cl
add rbx, 1
mov rcx, rbx
jo 0x1400625c0
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062830
cmp rdx, rbx
jle 0x14006283a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14006276f
test byte [rdx + 7], 0x40
je 0x14006276f
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [r13 + rcx]
mov byte [rdx + rbx + 8], cl
add rbx, 1
mov rcx, rbx
jo 0x1400625c0
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062830
cmp rbx, rdx
jge 0x14006283a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400627c2
test byte [rdx + 7], 0x40
je 0x1400627c2
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ecx, edi
shr ecx, 6
and ecx, 0x3f
movzx ecx, byte [r13 + rcx]
mov byte [rdx + rbx + 8], cl
add rbx, 1
mov rcx, rbx
jo 0x1400625c0
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062830
cmp rdx, rbx
jle 0x14006283a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14006280d
test byte [rdx + 7], 0x40
je 0x14006280d
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov eax, edi
and eax, 0x3f
movzx eax, byte [r13 + rax]
mov byte [rdx + rbx + 8], al
add rbx, 1
jno 0x14006267f
jmp 0x1400625c0
movabs rcx, 0x8000000000000000
sub rdx, 1
call sym.raiseIndexError2
jmp 0x1400625e4
lea rdx, [rbp - 1]
call sym.raiseIndexError2
jmp 0x1400625e4
sub rdx, 1
mov rcx, rbx
call sym.raiseIndexError2
jmp 0x1400625e4
lea rdx, [rbp - 1]
mov rcx, r15
call sym.raiseIndexError2
jmp 0x1400625e4
cmp qword [rsp + 0x28], 1
je 0x140062b3c
cmp qword [rsp + 0x28], 2
jne 0x1400629ed
cmp rbp, qword [rsp + 0x20]
jle 0x140062d70
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
movzx eax, byte [rsi + rdi]
add rcx, 1
js 0x1400625c0
cmp rcx, rdi
jb 0x1400625c0
test rcx, rcx
js 0x140062850
cmp rcx, rbp
jge 0x140062850
movzx edx, byte [rsi + rdi + 1]
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062d9c
cmp rcx, rbx
jle 0x140062d9c
movzx esi, dl
shl eax, 0x10
mov rcx, r14
lea rdi, [0x140134fc0]
shl esi, 8
or esi, eax
call sym.nimPrepareStrMutationV2
mov eax, esi
shr eax, 0x12
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
add rbx, 1
mov r13, rbx
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062b2b
cmp rax, rbx
jle 0x140062b2b
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov eax, esi
shr eax, 0xc
and eax, 0x3f
add r13, 1
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x140062b2b
cmp r13, rax
jge 0x140062b2b
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov eax, esi
shr eax, 6
and eax, 0x3c
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r13 + 8], dl
add r13, 1
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x140062b2b
cmp rax, r13
jle 0x140062b2b
mov rcx, r14
mov rbx, r13
call sym.nimPrepareStrMutationV2
mov rax, qword [rsp + 0x38]
add rbx, 1
mov byte [rax + r13 + 8], 0x3d
jo 0x1400625c0
test rbx, rbx
js 0x140062d83
mov rdx, rbx
mov rcx, r14
call sym.setLengthStrV2
jmp 0x1400625e4
cmp qword [rsp + 0x28], 1
je 0x140062c71
cmp qword [rsp + 0x28], 2
jne 0x1400629ed
cmp rbp, qword [rsp + 0x20]
jle 0x140062d70
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
movzx eax, byte [rsi + rdi]
add rcx, 1
js 0x1400625c0
cmp rcx, rdi
jb 0x1400625c0
test rcx, rcx
js 0x140062850
cmp rbp, rcx
jle 0x140062850
movzx esi, byte [rsi + rdi + 1]
mov rdx, qword [rsp + 0x30]
test rbx, rbx
js 0x140062860
cmp rbx, rdx
jge 0x140062860
shl eax, 0x10
shl esi, 8
mov rcx, r14
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
or esi, eax
call sym.nimPrepareStrMutationV2
mov eax, esi
shr eax, 0x12
movzx edx, byte [rbp + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
add rbx, 1
mov r13, rbx
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062b2b
cmp rbx, rax
jge 0x140062b2b
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov eax, esi
shr eax, 0xc
and eax, 0x3f
add r13, 1
movzx edx, byte [rbp + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x140062b2b
cmp r13, rax
jge 0x140062b2b
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov eax, esi
shr eax, 6
and eax, 0x3c
movzx edx, byte [rbp + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + r13 + 8], dl
add r13, 1
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x140062b2b
cmp r13, rax
jl 0x1400629cd
lea rdx, [rax - 1]
mov rcx, r13
call sym.raiseIndexError2
jmp 0x1400625e4
cmp rbp, qword [rsp + 0x20]
jle 0x140062d70
mov rdi, qword [rsp + 0x20]
mov rax, rdi
movzx esi, byte [rsi + rdi]
add rax, 1
js 0x1400625c0
cmp rax, rdi
jb 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062c60
cmp rax, rbx
jle 0x140062c60
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140062b9a
test byte [rdx + 7], 0x40
je 0x140062b9a
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov ebp, esi
shr esi, 2
lea rdi, [0x140134fc0]
mov eax, esi
shl ebp, 0x10
movzx eax, byte [rdi + rax]
mov byte [rdx + rbx + 8], al
add rbx, 1
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062c60
cmp rbx, rax
jge 0x140062c60
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov eax, ebp
shr eax, 0xc
and eax, 0x30
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
add rbx, 1
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062c60
cmp rax, rbx
jle 0x140062c60
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], 0x3d
add rbx, 1
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062c60
cmp rbx, rax
jge 0x140062c60
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], 0x3d
add rbx, 1
jno 0x1400629ed
jmp 0x1400625c0
lea rdx, [rax - 1]
mov rcx, rbx
call sym.raiseIndexError2
jmp 0x1400625e4
cmp rbp, qword [rsp + 0x20]
jle 0x140062d70
mov rdi, qword [rsp + 0x20]
mov rax, rdi
movzx esi, byte [rsi + rdi]
add rax, 1
js 0x1400625c0
cmp rax, rdi
jb 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062c60
cmp rbx, rax
jge 0x140062c60
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140062cc7
test byte [rdx + 7], 0x40
je 0x140062cc7
mov rcx, r14
call sym.nimPrepareStrMutationImpl__system_u2387
mov rdx, qword [rsp + 0x38]
mov edi, esi
shr esi, 2
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov eax, esi
shl edi, 0x10
movzx eax, byte [rbp + rax]
mov byte [rdx + rbx + 8], al
add rbx, 1
mov r13, rbx
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x140062b2b
cmp rbx, rax
jge 0x140062b2b
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov eax, edi
shr eax, 0xc
and eax, 0x30
add r13, 1
movzx edx, byte [rbp + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
jo 0x1400625c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x140062b2b
cmp r13, rax
jge 0x140062b2b
mov rcx, r14
call sym.nimPrepareStrMutationV2
mov rax, qword [rsp + 0x38]
mov byte [rax + r13 + 8], 0x3d
add r13, 1
jno 0x140062b18
jmp 0x1400625c0
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 1]
call sym.raiseIndexError2
jmp 0x1400625e4
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x1400625e4
lea rdx, [rcx - 1]
mov rcx, rbx
call sym.raiseIndexError2
jmp 0x1400625e4