Function at 0x140046c10
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 0x140046ed8
test rax, rax
jne 0x140047180
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov rcx, rdx
js 0x1400471c0
lea r12, [rsp + 0x50]
mov rcx, r12
call fcn.140009e00
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 0x140047180
test rax, rax
je 0x1400475e0
test rbx, rbx
jle 0x140047298
movzx eax, byte [rsi]
shl eax, 0x10
cmp rbx, 1
je 0x1400473fe
movzx edi, byte [rsi + 1]
shl edi, 8
or edi, eax
cmp rbx, 2
je 0x140047408
mov qword [rsp + 0x48], rdx
xor r14d, r14d
lea r10, [0x1400b6160]
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 0x140047250
mov rcx, qword [rsp + 0x58]
mov r12d, edi
lea r14, [rbp + 1]
shr r12d, 0x12
test rcx, rcx
je 0x140047150
test byte [rcx + 7], 0x40
je 0x140047150
mov rcx, qword [rsp + 0x28]
call fcn.14000c8f0
mov r9d, r12d
mov rax, qword [rsp + 0x58]
lea r10, [0x1400b6160]
movzx ecx, byte [r10 + r9]
mov byte [rax + rbp + 8], cl
mov rax, qword [rsp + 0x50]
cmp r14, rax
jge 0x140047210
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea r12, [rbp + 2]
shr r11d, 0xc
and r11d, 0x3f
test rcx, rcx
je 0x140047168
test byte [rcx + 7], 0x40
je 0x140047168
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x40], r11d
call fcn.14000c8f0
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
lea r10, [0x1400b6160]
movzx ecx, byte [r10 + r11]
mov byte [rax + r14 + 8], cl
mov rax, qword [rsp + 0x50]
cmp r12, rax
jge 0x140047230
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea r14, [rbp + 3]
shr r11d, 6
and r11d, 0x3f
test rcx, rcx
je 0x1400471a8
test byte [rcx + 7], 0x40
je 0x1400471a8
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x40], r11d
call fcn.14000c8f0
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
lea r10, [0x1400b6160]
movzx ecx, byte [r10 + r11]
mov byte [rax + r12 + 8], cl
mov rax, qword [rsp + 0x50]
cmp r14, rax
jge 0x140047210
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140046e6a
test byte [rax + 7], 0x40
je 0x140046e6a
mov rcx, qword [rsp + 0x28]
call fcn.14000c8f0
mov rax, qword [rsp + 0x58]
lea r10, [0x1400b6160]
and edi, 0x3f
add rbp, 4
movzx ecx, byte [r10 + rdi]
mov byte [rax + r14 + 8], cl
cmp qword [rsp + 0x30], r13
je 0x1400472e0
cmp rbx, r13
jle 0x140047290
movzx eax, byte [rsi + r13]
lea rcx, [r15 + 4]
shl eax, 0x10
cmp rbx, rcx
jle 0x1400472b0
movzx edi, byte [rsi + r13 + 1]
add r15, 5
shl edi, 8
or edi, eax
cmp r15, rbx
jl 0x140046d11
mov rbp, qword [rsp + 0xb0]
lea rdx, [rbx - 1]
mov rcx, r15
call fcn.14000bc90
jmp 0x140047185
test rax, rax
jne 0x140047180
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov rcx, rdx
js 0x1400471c0
lea r12, [rsp + 0x50]
mov rcx, r12
call fcn.140009e00
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 0x140047180
test rax, rax
je 0x14004767a
test rbx, rbx
jle 0x140047298
movzx eax, byte [rsi]
shl eax, 0x10
cmp rbx, 1
je 0x1400473fe
movzx edi, byte [rsi + 1]
shl edi, 8
or edi, eax
cmp rbx, 2
je 0x140047408
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 r14, rax
jge 0x1400472c6
mov rcx, qword [rsp + 0x58]
mov r12d, edi
lea rbp, [r14 + 1]
shr r12d, 0x12
test rcx, rcx
je 0x1400471d8
test byte [rcx + 7], 0x40
je 0x1400471d8
mov rcx, qword [rsp + 0x28]
call fcn.14000c8f0
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 rax, rbp
jle 0x140047270
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea r12, [r14 + 2]
shr r11d, 0xc
and r11d, 0x3f
test rcx, rcx
je 0x1400471f0
test byte [rcx + 7], 0x40
je 0x1400471f0
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], r11d
call fcn.14000c8f0
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 0x140047230
mov r11d, edi
mov rcx, qword [rsp + 0x58]
lea rbp, [r14 + 3]
shr r11d, 6
and r11d, 0x3f
test rcx, rcx
je 0x140047200
test byte [rcx + 7], 0x40
je 0x140047200
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], r11d
call fcn.14000c8f0
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 rbp, rax
jge 0x140047270
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400470ed
test byte [rax + 7], 0x40
je 0x1400470ed
mov rcx, qword [rsp + 0x28]
call fcn.14000c8f0
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 0x140047413
cmp r13, rbx
jge 0x140047290
movzx eax, byte [rsi + r13]
lea rcx, [r15 + 4]
shl eax, 0x10
cmp rbx, rcx
jle 0x1400472b0
movzx edi, byte [rsi + r13 + 1]
add r15, 5
shl edi, 8
or edi, eax
cmp rbx, r15
jg 0x140046f99
jmp 0x140046ebc
mov r9d, r12d
movzx r9d, byte [r10 + r9]
mov byte [rcx + rbp + 8], r9b
jmp 0x140046d7d
movzx r11d, byte [r10 + r11]
mov byte [rcx + r14 + 8], r11b
jmp 0x140046ddc
call fcn.140008c20
movdqa 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 0x140046e3b
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.140009260
jmp 0x140047185
mov r9d, r12d
movzx r9d, byte [r10 + r9]
mov byte [rcx + r14 + 8], r9b
jmp 0x140047001
movzx r11d, byte [r10 + r11]
mov byte [rcx + rbp + 8], r11b
jmp 0x14004705f
movzx r11d, byte [r10 + r11]
mov byte [rcx + r12 + 8], r11b
jmp 0x1400470be
lea rdx, [rax - 1]
mov rcx, r14
mov rbp, qword [rsp + 0xb0]
call fcn.14000bc90
jmp 0x140047185
lea rdx, [rax - 1]
mov rcx, r12
mov rbp, qword [rsp + 0xb0]
call fcn.14000bc90
jmp 0x140047185
mov r14, rbp
lea rdx, [rax - 1]
mov rbp, qword [rsp + 0xb0]
mov rcx, r14
call fcn.14000bc90
jmp 0x140047185
mov r8, rbp
lea rdx, [rax - 1]
mov rbp, qword [rsp + 0xb0]
mov rcx, r8
call fcn.14000bc90
jmp 0x140047185
mov rbp, qword [rsp + 0xb0]
lea rdx, [rbx - 1]
mov rcx, r13
call fcn.14000bc90
jmp 0x140047185
mov rbp, qword [rsp + 0xb0]
lea rdx, [rbx - 1]
call fcn.14000bc90
jmp 0x140047185
lea rdx, [rax - 1]
mov rcx, r14
mov rbp, qword [rsp + 0xb0]
call fcn.14000bc90
jmp 0x140047185
mov rdx, qword [rsp + 0x48]
mov r14, rbp
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0xb0]
cmp rdx, 1
je 0x14004750d
cmp rdx, 2
jne 0x1400473ee
mov rax, qword [rsp + 0x30]
cmp rbx, rax
jle 0x1400476d1
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rsi + rax]
add rcx, 4
shl eax, 0x10
cmp rbx, rcx
jle 0x1400472b8
movzx edx, byte [rsi + rcx]
mov rcx, qword [rsp + 0x50]
cmp rcx, r14
jle 0x1400476c0
movzx ebx, dl
mov rcx, r12
lea rdi, [0x1400b6160]
shl ebx, 8
lea rsi, [r14 + 1]
or ebx, eax
call fcn.140046050
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 0x1400476e2
mov rcx, r12
call fcn.140046050
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 0x1400476e2
mov rcx, r12
call fcn.140046050
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 0x1400474fc
mov rcx, r12
add r14, 4
call fcn.140046050
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
mov rdx, r14
mov rcx, r12
call fcn.140009e00
jmp 0x140047185
mov ecx, 1
jmp 0x1400472b8
mov r15d, 2
jmp 0x140046ec4
mov rdx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x28]
cmp rdx, 1
je 0x140047618
cmp rdx, 2
jne 0x1400473ee
cmp r13, rbx
jge 0x140047298
movzx eax, byte [rsi + r13]
lea rcx, [r13 + 1]
shl eax, 0x10
cmp rbx, rcx
jle 0x1400472b8
mov rdx, qword [rsp + 0x50]
movzx ebx, byte [rsi + rcx]
cmp rdx, r14
jle 0x1400476f3
shl ebx, 8
mov rcx, r12
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
or ebx, eax
lea rsi, [r14 + 1]
call fcn.140046050
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 0x1400476e2
mov rcx, r12
call fcn.140046050
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 0x1400476e2
mov rcx, r12
call fcn.140046050
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 rbx, rax
jl 0x1400473d8
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.14000bc90
jmp 0x140047185
mov rax, qword [rsp + 0x30]
add rsi, rax
cmp rbx, rax
jle 0x1400476a1
mov rax, qword [rsp + 0x50]
movzx edx, byte [rsi]
cmp rax, r14
jle 0x140047607
mov rcx, qword [rsp + 0x58]
mov esi, edx
mov ebx, edx
shl esi, 0x10
shr ebx, 2
test rcx, rcx
je 0x1400476a9
test byte [rcx + 7], 0x40
je 0x1400476a9
mov rcx, r12
lea rdi, [0x1400b6160]
call fcn.14000c8f0
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 0x1400474fc
mov rcx, r12
call fcn.140046050
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 0x1400474fc
mov rcx, r12
call fcn.140046050
mov rax, qword [rsp + 0x58]
mov byte [rax + rbx + 8], 0x3d
mov rax, qword [rsp + 0x50]
lea rbx, [r14 + 3]
cmp rax, rbx
jle 0x1400474fc
jmp 0x1400473d8
cmp rdx, 1
je 0x14004751e
cmp rdx, 2
jne 0x140047699
movzx eax, byte [rsi]
xor r14d, r14d
mov ecx, 1
shl eax, 0x10
jmp 0x14004732c
lea rdx, [rax - 1]
mov rcx, r14
call fcn.14000bc90
jmp 0x140047185
cmp r13, rbx
jge 0x140047298
add rsi, r13
mov rax, qword [rsp + 0x50]
movzx edx, byte [rsi]
cmp rax, r14
jle 0x140047607
mov rcx, qword [rsp + 0x58]
mov esi, edx
mov ebx, edx
shl esi, 0x10
shr ebx, 2
test rcx, rcx
je 0x140047704
test byte [rcx + 7], 0x40
je 0x140047704
mov rcx, r12
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
call fcn.14000c8f0
mov rax, qword [rsp + 0x58]
movzx edx, byte [rdi + rbx]
mov byte [rax + r14 + 8], dl
mov rax, qword [rsp + 0x50]
jmp 0x140047575
cmp rdx, 1
je 0x140047624
cmp rdx, 2
jne 0x140047699
movzx eax, byte [rsi]
xor r14d, r14d
mov ecx, 1
shl eax, 0x10
jmp 0x140047453
xor r14d, r14d
jmp 0x1400473ee
mov rcx, rax
jmp 0x1400472b8
lea rdi, [0x1400b6160]
mov edx, ebx
movzx edx, byte [rdi + rdx]
mov byte [rcx + r14 + 8], dl
jmp 0x140047575
lea rdx, [rcx - 1]
mov rcx, r14
call fcn.14000bc90
jmp 0x140047185
lea rdx, [rbx - 1]
mov rcx, rax
call fcn.14000bc90
jmp 0x140047185
lea rdx, [rax - 1]
mov rcx, rsi
call fcn.14000bc90
jmp 0x140047185
sub rdx, 1
mov rcx, r14
call fcn.14000bc90
jmp 0x140047185
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
movzx edx, byte [rdi + rbx]
mov byte [rcx + r14 + 8], dl
jmp 0x140047575