Function at 0x140045700
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
xor eax, eax
mov rbp, rcx
imul rcx, r8, 4
mov rsi, rdx
mov rbx, r8
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
seto al
test r9b, r9b
je 0x1400459c8
test rax, rax
jne 0x140045c70
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov rcx, rdx
js 0x140045cb0
lea r12, [rsp + 0x50]
mov rcx, r12
call fcn.140009970
mov rax, rbx
imul rdi
mov rax, rbx
sar rax, 0x3f
sub rdx, rax
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
mov rax, rbx
sub rax, rdx
seto r13b
mov qword [rsp + 0x30], rax
mov r14, rax
movzx r13d, r13b
jo 0x140045c70
test rax, rax
je 0x140046070
test rbx, rbx
jle 0x140045d88
movzx eax, byte [rsi]
shl eax, 0x10
cmp rbx, 1
je 0x140045eee
movzx edi, byte [rsi + 1]
shl edi, 8
or edi, eax
cmp rbx, 2
je 0x140045ef8
mov qword [rsp + 0x48], rdx
xor r14d, r14d
lea r10, [0x1400af160]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0xb0], rbp
mov rbp, r14
movzx eax, byte [rsi + r13 + 2]
mov qword [rsp + 0x38], r13
mov r15, r13
add r13, 3
or edi, eax
mov rax, qword [rsp + 0x50]
cmp rax, rbp
jle 0x140045d40
mov rcx, qword [rsp + 0x58]
mov r12d, edi
lea r14, [rbp + 1]
shr r12d, 0x12
test rcx, rcx
je 0x140045c40
test byte [rcx + 7], 0x40
je 0x140045c40
mov rcx, qword [rsp + 0x28]
call fcn.14000c170
mov r9d, r12d
mov rax, qword [rsp + 0x58]
lea r10, [0x1400af160]
movzx ecx, byte [r10 + r9]
mov byte [rax + rbp + 8], cl
mov rax, qword [rsp + 0x50]
cmp rax, r14
jle 0x140045d00
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea r12, [rbp + 2]
shr r11d, 0xc
and r11d, 0x3f
test rcx, rcx
je 0x140045c58
test byte [rcx + 7], 0x40
je 0x140045c58
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x40], r11d
call fcn.14000c170
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
lea r10, [0x1400af160]
movzx ecx, byte [r10 + r11]
mov byte [rax + r14 + 8], cl
mov rax, qword [rsp + 0x50]
cmp r12, rax
jge 0x140045d20
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea r14, [rbp + 3]
shr r11d, 6
and r11d, 0x3f
test rcx, rcx
je 0x140045c98
test byte [rcx + 7], 0x40
je 0x140045c98
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x40], r11d
call fcn.14000c170
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
lea r10, [0x1400af160]
movzx ecx, byte [r10 + r11]
mov byte [rax + r12 + 8], cl
mov rax, qword [rsp + 0x50]
cmp rax, r14
jle 0x140045d00
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14004595a
test byte [rax + 7], 0x40
je 0x14004595a
mov rcx, qword [rsp + 0x28]
call fcn.14000c170
mov rax, qword [rsp + 0x58]
lea r10, [0x1400af160]
and edi, 0x3f
add rbp, 4
movzx ecx, byte [r10 + rdi]
mov byte [rax + r14 + 8], cl
cmp qword [rsp + 0x30], r13
je 0x140045dd0
cmp r13, rbx
jge 0x140045d80
movzx eax, byte [rsi + r13]
lea rcx, [r15 + 4]
shl eax, 0x10
cmp rbx, rcx
jle 0x140045da0
movzx edi, byte [rsi + r13 + 1]
add r15, 5
shl edi, 8
or edi, eax
cmp rbx, r15
jg 0x140045801
mov rbp, qword [rsp + 0xb0]
lea rdx, [rbx - 1]
mov rcx, r15
call fcn.14000b4e0
jmp 0x140045c75
test rax, rax
jne 0x140045c70
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov rcx, rdx
js 0x140045cb0
lea r12, [rsp + 0x50]
mov rcx, r12
call fcn.140009970
mov rax, rbx
imul rdi
mov rax, rbx
sar rax, 0x3f
sub rdx, rax
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
mov rax, rbx
sub rax, rdx
seto r13b
mov qword [rsp + 0x30], rax
mov r14, rax
movzx r13d, r13b
jo 0x140045c70
test rax, rax
je 0x140046168
test rbx, rbx
jle 0x140045d88
movzx eax, byte [rsi]
shl eax, 0x10
cmp rbx, 1
je 0x140045eee
movzx edi, byte [rsi + 1]
shl edi, 8
or edi, eax
cmp rbx, 2
je 0x140045ef8
mov qword [rsp + 0x40], rdx
xor r14d, r14d
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x28], r12
movzx eax, byte [rsi + r13 + 2]
mov r15, r13
add r13, 3
or edi, eax
mov rax, qword [rsp + 0x50]
cmp rax, r14
jle 0x140045db6
mov rcx, qword [rsp + 0x58]
mov r12d, edi
lea rbp, [r14 + 1]
shr r12d, 0x12
test rcx, rcx
je 0x140045cc8
test byte [rcx + 7], 0x40
je 0x140045cc8
mov rcx, qword [rsp + 0x28]
call fcn.14000c170
mov r9d, r12d
mov rax, qword [rsp + 0x58]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx ecx, byte [r10 + r9]
mov byte [rax + r14 + 8], cl
mov rax, qword [rsp + 0x50]
cmp rbp, rax
jge 0x140045d60
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea r12, [r14 + 2]
shr r11d, 0xc
and r11d, 0x3f
test rcx, rcx
je 0x140045ce0
test byte [rcx + 7], 0x40
je 0x140045ce0
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], r11d
call fcn.14000c170
mov r11d, dword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx ecx, byte [r10 + r11]
mov byte [rax + rbp + 8], cl
mov rax, qword [rsp + 0x50]
cmp r12, rax
jge 0x140045d20
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea rbp, [r14 + 3]
shr r11d, 6
and r11d, 0x3f
test rcx, rcx
je 0x140045cf0
test byte [rcx + 7], 0x40
je 0x140045cf0
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], r11d
call fcn.14000c170
mov r11d, dword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx ecx, byte [r10 + r11]
mov byte [rax + r12 + 8], cl
mov rax, qword [rsp + 0x50]
cmp rax, rbp
jle 0x140045d60
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140045bdd
test byte [rax + 7], 0x40
je 0x140045bdd
mov rcx, qword [rsp + 0x28]
call fcn.14000c170
mov rax, qword [rsp + 0x58]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
and edi, 0x3f
add r14, 4
movzx ecx, byte [r10 + rdi]
mov byte [rax + rbp + 8], cl
mov rax, qword [rsp + 0x30]
cmp r13, rax
je 0x140045f03
cmp r13, rbx
jge 0x140045d80
movzx eax, byte [rsi + r13]
lea rcx, [r15 + 4]
shl eax, 0x10
cmp rbx, rcx
jle 0x140045da0
movzx edi, byte [rsi + r13 + 1]
add r15, 5
shl edi, 8
or edi, eax
cmp rbx, r15
jg 0x140045a89
jmp 0x1400459ac
mov r9d, r12d
movzx r9d, byte [r10 + r9]
mov byte [rcx + rbp + 8], r9b
jmp 0x14004586d
movzx r11d, byte [r10 + r11]
mov byte [rcx + r14 + 8], r11b
jmp 0x1400458cc
call fcn.1400087c0
movdqu xmm0, xmmword [rsp + 0x50]
mov rax, rbp
movups xmmword [rbp], xmm0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx r11d, byte [r10 + r11]
mov byte [rcx + r12 + 8], r11b
jmp 0x14004592b
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.140008dd0
jmp 0x140045c75
mov r9d, r12d
movzx r9d, byte [r10 + r9]
mov byte [rcx + r14 + 8], r9b
jmp 0x140045af1
movzx r11d, byte [r10 + r11]
mov byte [rcx + rbp + 8], r11b
jmp 0x140045b4f
movzx r11d, byte [r10 + r11]
mov byte [rcx + r12 + 8], r11b
jmp 0x140045bae
lea rdx, [rax - 1]
mov rcx, r14
mov rbp, qword [rsp + 0xb0]
call fcn.14000b4e0
jmp 0x140045c75
lea rdx, [rax - 1]
mov rcx, r12
mov rbp, qword [rsp + 0xb0]
call fcn.14000b4e0
jmp 0x140045c75
mov r14, rbp
lea rdx, [rax - 1]
mov rbp, qword [rsp + 0xb0]
mov rcx, r14
call fcn.14000b4e0
jmp 0x140045c75
mov r8, rbp
lea rdx, [rax - 1]
mov rbp, qword [rsp + 0xb0]
mov rcx, r8
call fcn.14000b4e0
jmp 0x140045c75
mov rbp, qword [rsp + 0xb0]
lea rdx, [rbx - 1]
mov rcx, r13
call fcn.14000b4e0
jmp 0x140045c75
mov rbp, qword [rsp + 0xb0]
lea rdx, [rbx - 1]
call fcn.14000b4e0
jmp 0x140045c75
lea rdx, [rax - 1]
mov rcx, r14
mov rbp, qword [rsp + 0xb0]
call fcn.14000b4e0
jmp 0x140045c75
mov rdx, qword [rsp + 0x48]
mov r14, rbp
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0xb0]
cmp rdx, 1
je 0x140045f9f
cmp rdx, 2
jne 0x140045ede
mov rax, qword [rsp + 0x30]
cmp rax, rbx
jge 0x1400461c0
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rsi + rax]
add rcx, 4
cmp rbx, rcx
jle 0x140045da8
movzx edx, byte [rsi + rcx]
mov rcx, qword [rsp + 0x50]
cmp rcx, r14
jle 0x1400461af
movzx ebx, dl
shl eax, 0x10
mov rcx, r12
lea rdi, [0x1400af160]
shl ebx, 8
lea rsi, [r14 + 1]
or ebx, eax
call fcn.140044b60
mov eax, ebx
shr eax, 0x12
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + r14 + 8], dl
mov rax, qword [rsp + 0x50]
cmp rax, rsi
jle 0x140045f8e
mov rcx, r12
call fcn.140044b60
mov eax, ebx
shr eax, 0xc
and eax, 0x3f
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rsi + 8], dl
mov rax, qword [rsp + 0x50]
lea rsi, [r14 + 2]
cmp rax, rsi
jle 0x140045f8e
mov rcx, r12
call fcn.140044b60
mov eax, ebx
lea rbx, [r14 + 3]
shr eax, 6
and eax, 0x3c
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rsi + 8], dl
mov rax, qword [rsp + 0x50]
cmp rax, rbx
jle 0x14004605f
mov rcx, r12
add r14, 4
call fcn.140044b60
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
mov rdx, r14
mov rcx, r12
call fcn.140009970
jmp 0x140045c75
mov ecx, 1
jmp 0x140045da8
mov r15d, 2
jmp 0x1400459b4
mov rdx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x28]
cmp rdx, 1
je 0x1400460a2
cmp rdx, 2
jne 0x140045ede
cmp r13, rbx
jge 0x140045d88
lea rcx, [r13 + 1]
movzx eax, byte [rsi + r13]
cmp rcx, rbx
jge 0x140045da8
mov rdx, qword [rsp + 0x50]
movzx ebx, byte [rsi + rcx]
cmp r14, rdx
jge 0x1400461e8
shl eax, 0x10
shl ebx, 8
mov rcx, r12
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
or ebx, eax
lea rsi, [r14 + 1]
call fcn.140044b60
mov eax, ebx
shr eax, 0x12
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + r14 + 8], dl
mov rax, qword [rsp + 0x50]
cmp rsi, rax
jl 0x140045e6a
lea rdx, [rax - 1]
mov rcx, rsi
call fcn.14000b4e0
jmp 0x140045c75
mov rax, qword [rsp + 0x30]
add rsi, rax
cmp rax, rbx
jge 0x140046190
mov rax, qword [rsp + 0x50]
movzx edx, byte [rsi]
cmp rax, r14
jle 0x140046091
mov rcx, qword [rsp + 0x58]
mov esi, edx
mov ebx, edx
shl esi, 0x10
shr ebx, 2
test rcx, rcx
je 0x140046198
test byte [rcx + 7], 0x40
je 0x140046198
mov rcx, r12
lea rdi, [0x1400af160]
call fcn.14000c170
mov edx, ebx
mov rax, qword [rsp + 0x58]
movzx edx, byte [rdi + rdx]
mov byte [rax + r14 + 8], dl
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 1]
cmp rax, rbx
jle 0x14004605f
mov rcx, r12
call fcn.140044b60
mov eax, esi
shr eax, 0xc
and eax, 0x30
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], dl
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 2]
cmp rax, rbx
jle 0x14004605f
mov rcx, r12
call fcn.140044b60
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 3]
cmp rax, rbx
jg 0x140045ec8
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.14000b4e0
jmp 0x140045c75
cmp rdx, 1
je 0x140045fb0
cmp rdx, 2
jne 0x140046188
movzx eax, byte [rsi]
mov ecx, 1
jmp 0x140045e19
lea rdx, [rax - 1]
mov rcx, r14
call fcn.14000b4e0
jmp 0x140045c75
cmp r13, rbx
jge 0x140045d88
add rsi, r13
mov rax, qword [rsp + 0x50]
movzx edx, byte [rsi]
cmp r14, rax
jge 0x140046091
mov rcx, qword [rsp + 0x58]
mov esi, edx
mov ebx, edx
shl esi, 0x10
shr ebx, 2
test rcx, rcx
je 0x1400461d3
test byte [rcx + 7], 0x40
je 0x1400461d3
mov rcx, r12
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
call fcn.14000c170
mov rax, qword [rsp + 0x58]
movzx edx, byte [rdi + rbx]
mov byte [rax + r14 + 8], dl
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 1]
cmp rax, rbx
jle 0x14004605f
mov rcx, r12
call fcn.140044b60
mov eax, esi
shr eax, 0xc
and eax, 0x30
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], dl
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 2]
cmp rax, rbx
jle 0x14004605f
mov rcx, r12
call fcn.140044b60
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 3]
cmp rbx, rax
jge 0x14004605f
jmp 0x140045ec8
cmp rdx, 1
je 0x1400460ae
cmp rdx, 2
jne 0x140046188
movzx eax, byte [rsi]
xor r14d, r14d
mov ecx, 1
jmp 0x140045f40
xor r14d, r14d
jmp 0x140045ede
mov rcx, rax
jmp 0x140045da8
lea rdi, [0x1400af160]
mov edx, ebx
movzx edx, byte [rdi + rdx]
mov byte [rcx + r14 + 8], dl
jmp 0x140046007
lea rdx, [rcx - 1]
mov rcx, r14
call fcn.14000b4e0
jmp 0x140045c75
mov rcx, qword [rsp + 0x30]
lea rdx, [rbx - 1]
call fcn.14000b4e0
jmp 0x140045c75
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx edx, byte [rdi + rbx]
mov byte [rcx + r14 + 8], dl
jmp 0x1400460ff
sub rdx, 1
mov rcx, r14
call fcn.14000b4e0
jmp 0x140045c75