Function at 0x140030af0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rax, [0x1400eb460]
mov rdi, r8
test r9b, r9b
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r14, rcx
mov qword [rsp + 0x50], 0
cmovne rax, r8
imul rcx, rdi, 4
mov r12, rdx
mov qword [rsp + 0x58], 0
mov r15, rax
jo 0x140030d90
movabs rbx, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rbx
sub rdx, rcx
add rdx, 6
mov rcx, rdx
js 0x140030df0
lea rax, [rsp + 0x50]
mov r13, rdi
xor ebp, ebp
mov rcx, rax
mov qword [rsp + 0x28], rax
call sym.setLengthStrV2
mov rax, rdi
mov r8, rdi
imul rbx
mov rax, rdi
sar rax, 0x3f
sub rdx, rax
lea rax, [rdx + rdx*2]
sub r13, rax
sub r8, r13
seto bpl
jo 0x140030d90
test r8, r8
je 0x140030ff1
xor esi, esi
mov qword [rsp + 0xb0], r14
mov r14, rbp
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x30], r8
cmp rdi, rsi
jle 0x140030d76
movzx eax, byte [r12 + rsi]
shl eax, 0x10
mov ecx, eax
lea rax, [rsi + 1]
cmp rdi, rax
jle 0x140030e68
movzx eax, byte [r12 + rsi + 1]
lea r9, [rsi + 2]
shl eax, 8
cmp rdi, r9
jle 0x140030e88
movzx r13d, byte [r12 + rsi + 2]
or eax, ecx
lea rbx, [rsi + 3]
or r13d, eax
mov rax, qword [rsp + 0x50]
cmp rax, r14
jle 0x140030e28
mov r8d, r13d
mov rcx, qword [rsp + 0x58]
lea rbp, [r14 + 1]
shr r8d, 0x12
add r8, r15
test rcx, rcx
je 0x140030db8
test byte [rcx + 7], 0x40
je 0x140030db8
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], r8
call sym.nimPrepareStrMutationImpl__system_u2390
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
movzx ecx, byte [r8]
mov byte [rax + r14 + 8], cl
mov rax, qword [rsp + 0x50]
cmp rax, rbp
jle 0x140030e08
mov r8d, r13d
mov rcx, qword [rsp + 0x58]
lea r10, [r14 + 2]
shr r8d, 0xc
and r8d, 0x3f
add r8, r15
test rcx, rcx
je 0x140030dd0
test byte [rcx + 7], 0x40
je 0x140030dd0
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r8
call sym.nimPrepareStrMutationImpl__system_u2390
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
mov r10, qword [rsp + 0x40]
movzx ecx, byte [r8]
mov byte [rax + rbp + 8], cl
mov rax, qword [rsp + 0x50]
cmp rax, r10
jle 0x140030e48
mov r8d, r13d
mov rcx, qword [rsp + 0x58]
lea rbp, [r14 + 3]
shr r8d, 6
and r8d, 0x3f
add r8, r15
test rcx, rcx
je 0x140030de0
test byte [rcx + 7], 0x40
je 0x140030de0
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r8
call sym.nimPrepareStrMutationImpl__system_u2390
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
mov r10, qword [rsp + 0x40]
movzx ecx, byte [r8]
mov byte [rax + r10 + 8], cl
mov rax, qword [rsp + 0x50]
cmp rax, rbp
jle 0x140030e08
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140030d4e
test byte [rax + 7], 0x40
je 0x140030d4e
mov rcx, qword [rsp + 0x28]
call sym.nimPrepareStrMutationImpl__system_u2390
mov rax, qword [rsp + 0x58]
and r13d, 0x3f
add r14, 4
movzx ecx, byte [r15 + r13]
mov byte [rax + rbp + 8], cl
cmp qword [rsp + 0x30], rbx
je 0x140030ea8
mov rsi, rbx
cmp rdi, rsi
jg 0x140030bc8
lea rdx, [rdi - 1]
mov rcx, rsi
mov r14, qword [rsp + 0xb0]
call sym.raiseIndexError2
jmp 0x140030d95
call sym.raiseOverflow
movdqa xmm0, xmmword [rsp + 0x50]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx r8d, byte [r8]
mov byte [rcx + r14 + 8], r8b
jmp 0x140030c5f
movzx r8d, byte [r8]
mov byte [rcx + rbp + 8], r8b
jmp 0x140030cc2
movzx r8d, byte [r8]
mov byte [rcx + r10 + 8], r8b
jmp 0x140030d26
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140030d95
lea rdx, [rax - 1]
mov rcx, rbp
mov r14, qword [rsp + 0xb0]
call sym.raiseIndexError2
jmp 0x140030d95
mov rbp, r14
lea rdx, [rax - 1]
mov r14, qword [rsp + 0xb0]
mov rcx, rbp
call sym.raiseIndexError2
jmp 0x140030d95
lea rdx, [rax - 1]
mov rcx, r10
mov r14, qword [rsp + 0xb0]
call sym.raiseIndexError2
jmp 0x140030d95
lea rdx, [rdi - 1]
mov rcx, rax
mov r14, qword [rsp + 0xb0]
call sym.raiseIndexError2
jmp 0x140030d95
lea rdx, [rdi - 1]
mov rcx, r9
mov r14, qword [rsp + 0xb0]
call sym.raiseIndexError2
jmp 0x140030d95
mov r13, qword [rsp + 0x48]
mov rbp, r14
mov r8, qword [rsp + 0x30]
mov r14, qword [rsp + 0xb0]
cmp r13, 1
je 0x140030edf
cmp r13, 2
je 0x1400310ce
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call sym.setLengthStrV2
jmp 0x140030d95
cmp rdi, r8
jle 0x1400310e9
add r12, r8
mov rax, qword [rsp + 0x50]
cmp rax, rbp
jle 0x140030fe0
movzx edx, byte [r12]
mov rcx, qword [rsp + 0x58]
lea rdi, [rbp + 1]
mov esi, edx
shr edx, 2
shl esi, 0x10
lea rbx, [r15 + rdx]
test rcx, rcx
je 0x14003111c
test byte [rcx + 7], 0x40
je 0x14003111c
mov rcx, qword [rsp + 0x28]
call sym.nimPrepareStrMutationImpl__system_u2390
mov rax, qword [rsp + 0x58]
movzx edx, byte [rbx]
mov byte [rax + rbp + 8], dl
mov rax, qword [rsp + 0x50]
cmp rdi, rax
jge 0x1400310fa
shr esi, 0xc
mov rdx, qword [rsp + 0x58]
lea rbx, [rbp + 2]
and esi, 0x30
add rsi, r15
test rdx, rdx
je 0x140031147
test byte [rdx + 7], 0x40
je 0x140031147
mov rcx, qword [rsp + 0x28]
call sym.nimPrepareStrMutationImpl__system_u2390
mov rax, qword [rsp + 0x58]
movzx edx, byte [rsi]
mov byte [rax + rdi + 8], dl
mov rax, qword [rsp + 0x50]
cmp rbx, rax
jge 0x1400310bd
mov rcx, qword [rsp + 0x28]
call sym.nimPrepareStrMutationV2
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
mov rax, qword [rsp + 0x50]
lea rbx, [rbp + 3]
cmp rax, rbx
jle 0x1400310bd
mov rcx, qword [rsp + 0x28]
add rbp, 4
call sym.nimPrepareStrMutationV2
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
jmp 0x140030ecd
lea rdx, [rax - 1]
mov rcx, rbp
call sym.raiseIndexError2
jmp 0x140030d95
cmp r13, 1
je 0x140030eeb
cmp r13, 2
jne 0x140030ecd
movzx eax, byte [r12]
mov ecx, 1
shl eax, 0x10
mov rdx, qword [rsp + 0x50]
cmp rdx, rbp
jle 0x14003110b
movzx ebx, byte [r12 + rcx]
mov rcx, qword [rsp + 0x28]
lea rsi, [rbp + 1]
shl ebx, 8
or ebx, eax
call sym.nimPrepareStrMutationV2
mov eax, ebx
shr eax, 0x12
movzx edx, byte [r15 + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rbp + 8], dl
mov rax, qword [rsp + 0x50]
cmp rax, rsi
jle 0x140031128
mov rcx, qword [rsp + 0x28]
call sym.nimPrepareStrMutationV2
mov eax, ebx
shr eax, 0xc
and eax, 0x3f
movzx edx, byte [r15 + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rsi + 8], dl
mov rax, qword [rsp + 0x50]
lea rsi, [rbp + 2]
cmp rax, rsi
jle 0x140031128
mov rcx, qword [rsp + 0x28]
call sym.nimPrepareStrMutationV2
mov eax, ebx
lea rbx, [rbp + 3]
shr eax, 6
and eax, 0x3c
movzx edx, byte [r15 + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rsi + 8], dl
mov rax, qword [rsp + 0x50]
cmp rax, rbx
jg 0x140030fb9
lea rdx, [rax - 1]
mov rcx, rbx
call sym.raiseIndexError2
jmp 0x140030d95
cmp rdi, r8
jle 0x1400310e9
lea rcx, [rsi + 4]
cmp rdi, rcx
jle 0x140031139
movzx eax, byte [r12 + r8]
shl eax, 0x10
jmp 0x140031012
lea rdx, [rdi - 1]
mov rcx, r8
call sym.raiseIndexError2
jmp 0x140030d95
lea rdx, [rax - 1]
mov rcx, rdi
call sym.raiseIndexError2
jmp 0x140030d95
sub rdx, 1
mov rcx, rbp
call sym.raiseIndexError2
jmp 0x140030d95
movzx edx, byte [rbx]
mov byte [rcx + rbp + 8], dl
jmp 0x140030f41
lea rdx, [rax - 1]
mov rcx, rsi
call sym.raiseIndexError2
jmp 0x140030d95
lea rdx, [rdi - 1]
call sym.raiseIndexError2
jmp 0x140030d95
movzx ecx, byte [rsi]
mov byte [rdx + rdi + 8], cl
jmp 0x140030f8a