Function at 0x14003a540
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 0x14003a808
imul rcx, r8, 4
jo 0x14003a7c0
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov r9, rdx
js 0x14003a7d0
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140009c60
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 0x14003a7c0
xor ebx, ebx
lea r13, [0x14006a140]
cmp qword [rsp + 0x20], r15
je 0x14003aab0
cmp rbp, r15
jle 0x14003aa88
movzx eax, byte [rsi + r15]
mov r9, r15
shl eax, 0x10
mov ecx, eax
add r9, 1
js 0x14003a7c0
cmp r9, r15
jb 0x14003a7c0
test r9, r9
js 0x14003ac20
cmp r9, rbp
jge 0x14003ac20
movzx eax, byte [rsi + r9]
shl eax, 8
or eax, ecx
mov rcx, r9
add rcx, 1
jo 0x14003a7c0
test rcx, rcx
js 0x14003aaa0
cmp rcx, rbp
jge 0x14003aaa0
movzx ecx, byte [rsi + rcx]
lea r15, [r9 + 2]
mov edi, ecx
mov rcx, qword [rsp + 0x30]
or edi, eax
test rbx, rbx
js 0x14003aa70
cmp rcx, rbx
jle 0x14003aa70
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a6a2
test byte [rcx + 7], 0x40
je 0x14003a6a2
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, edi
shr r8d, 0x12
movzx r8d, byte [r13 + r8]
mov byte [rcx + rbx + 8], r8b
add rbx, 1
mov r8, rbx
jo 0x14003a7c0
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x14003aa50
cmp rbx, rcx
jge 0x14003aa5a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a6f5
test byte [rcx + 7], 0x40
je 0x14003a6f5
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, edi
shr r8d, 0xc
and r8d, 0x3f
movzx r8d, byte [r13 + r8]
mov byte [rcx + rbx + 8], r8b
add rbx, 1
mov r8, rbx
jo 0x14003a7c0
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x14003aa50
cmp rbx, rcx
jge 0x14003aa5a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a74c
test byte [rcx + 7], 0x40
je 0x14003a74c
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, edi
shr r8d, 6
and r8d, 0x3f
movzx r8d, byte [r13 + r8]
mov byte [rcx + rbx + 8], r8b
add rbx, 1
mov r8, rbx
jo 0x14003a7c0
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x14003aa50
cmp rbx, rcx
jge 0x14003aa5a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a79f
test byte [rcx + 7], 0x40
je 0x14003a79f
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov eax, edi
and eax, 0x3f
movzx eax, byte [r13 + rax]
mov byte [rcx + rbx + 8], al
add rbx, 1
jno 0x14003a5f3
nop dword [rax + rax]
call fcn.140008300
jmp 0x14003a7e4
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r9
call fcn.140008a10
movdqu 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 0x14003a7c0
movabs rdi, 0x5555555555555556
mov rax, rcx
sar rcx, 0x3f
imul rdi
sub rdx, rcx
add rdx, 6
mov r9, rdx
js 0x14003a7d0
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.140009c60
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 0x14003a7c0
xor ebx, ebx
lea r13, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
cmp qword [rsp + 0x20], r15
je 0x14003ac31
cmp rbp, r15
jle 0x14003aa88
movzx edx, byte [rsi + r15]
mov rcx, r15
shl edx, 0x10
mov r8d, edx
add rcx, 1
js 0x14003a7c0
cmp rcx, r15
jb 0x14003a7c0
test rcx, rcx
js 0x14003aaa0
cmp rcx, rbp
jge 0x14003aaa0
movzx edx, byte [rsi + rcx]
shl edx, 8
or edx, r8d
mov r8, rcx
add r8, 1
jo 0x14003a7c0
test r8, r8
js 0x14003ae80
cmp r8, rbp
jge 0x14003ae80
movzx r8d, byte [rsi + r8]
lea r15, [rcx + 2]
mov rcx, qword [rsp + 0x30]
mov edi, r8d
or edi, edx
test rbx, rbx
js 0x14003aa70
cmp rcx, rbx
jle 0x14003aa70
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a931
test byte [rcx + 7], 0x40
je 0x14003a931
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, edi
shr r8d, 0x12
movzx r8d, byte [r13 + r8]
mov byte [rcx + rbx + 8], r8b
add rbx, 1
mov r8, rbx
jo 0x14003a7c0
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x14003aa50
cmp rcx, rbx
jle 0x14003aa5a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a984
test byte [rcx + 7], 0x40
je 0x14003a984
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, edi
shr r8d, 0xc
and r8d, 0x3f
movzx r8d, byte [r13 + r8]
mov byte [rcx + rbx + 8], r8b
add rbx, 1
mov r8, rbx
jo 0x14003a7c0
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x14003aa50
cmp rcx, rbx
jle 0x14003aa5a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a9db
test byte [rcx + 7], 0x40
je 0x14003a9db
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov r8d, edi
shr r8d, 6
and r8d, 0x3f
movzx r8d, byte [r13 + r8]
mov byte [rcx + rbx + 8], r8b
add rbx, 1
mov r8, rbx
jo 0x14003a7c0
mov rcx, qword [rsp + 0x30]
test rbx, rbx
js 0x14003aa50
cmp rcx, rbx
jle 0x14003aa5a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003aa2a
test byte [rcx + 7], 0x40
je 0x14003aa2a
mov rcx, r14
call fcn.14000c030
mov rcx, qword [rsp + 0x38]
mov edx, edi
and edx, 0x3f
movzx edx, byte [r13 + rdx]
mov byte [rcx + rbx + 8], dl
add rbx, 1
jno 0x14003a87f
jmp 0x14003a7c0
movabs r8, 0x8000000000000000
lea rdx, [rcx - 1]
mov rcx, r8
call fcn.14000b210
jmp 0x14003a7e4
lea rdx, [rcx - 1]
mov rcx, rbx
call fcn.14000b210
jmp 0x14003a7e4
lea rdx, [rbp - 1]
mov rcx, r15
call fcn.14000b210
jmp 0x14003a7e4
lea rdx, [rbp - 1]
call fcn.14000b210
jmp 0x14003a7e4
cmp qword [rsp + 0x28], 1
je 0x14003ad5f
cmp qword [rsp + 0x28], 2
jne 0x14003abfd
cmp rbp, qword [rsp + 0x20]
jle 0x14003afa0
mov rcx, r15
add rcx, 1
js 0x14003a7c0
cmp rcx, r15
jb 0x14003a7c0
test rcx, rcx
js 0x14003aaa0
cmp rcx, rbp
jge 0x14003aaa0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rax, rbx
jle 0x14003ae91
movzx eax, byte [rsi + r15]
movzx esi, byte [rsi + rcx]
mov rcx, r14
lea rdi, [0x14006a140]
shl eax, 0x10
shl esi, 8
or esi, eax
call fcn.140039a70
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ad4e
cmp rbx, rax
jge 0x14003ad4e
mov rcx, r14
call fcn.140039a70
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x14003ad4e
cmp rax, r13
jle 0x14003ad4e
mov rcx, r14
call fcn.140039a70
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x14003ad4e
cmp rax, r13
jle 0x14003ad4e
mov rcx, r14
mov rbx, r13
call fcn.140039a70
mov rax, qword [rsp + 0x38]
add rbx, 1
mov byte [rax + r13 + 8], 0x3d
jo 0x14003a7c0
test rbx, rbx
js 0x14003afb3
mov rdx, rbx
mov rcx, r14
call fcn.140009c60
jmp 0x14003a7e4
lea rdx, [rbp - 1]
mov rcx, r9
call fcn.14000b210
jmp 0x14003a7e4
cmp qword [rsp + 0x28], 1
je 0x14003aea2
cmp qword [rsp + 0x28], 2
jne 0x14003abfd
cmp rbp, qword [rsp + 0x20]
jle 0x14003afa0
mov rcx, r15
add rcx, 1
js 0x14003a7c0
cmp rcx, r15
jb 0x14003a7c0
test rcx, rcx
js 0x14003aaa0
cmp rbp, rcx
jle 0x14003aaa0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rbx, rax
jge 0x14003ae91
movzx eax, byte [rsi + r15]
movzx esi, byte [rsi + rcx]
mov rcx, r14
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
shl eax, 0x10
shl esi, 8
or esi, eax
call fcn.140039a70
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ad4e
cmp rbx, rax
jge 0x14003ad4e
mov rcx, r14
call fcn.140039a70
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x14003ad4e
cmp r13, rax
jge 0x14003ad4e
mov rcx, r14
call fcn.140039a70
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x14003ad4e
cmp r13, rax
jl 0x14003abdd
lea rdx, [rax - 1]
mov rcx, r13
call fcn.14000b210
jmp 0x14003a7e4
cmp rbp, qword [rsp + 0x20]
jle 0x14003afa0
mov rdx, qword [rsp + 0x20]
mov rax, rdx
add rax, 1
js 0x14003a7c0
cmp rax, rdx
jb 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rbx, rax
jge 0x14003ae91
movzx esi, byte [rsi + rdx]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14003adbd
test byte [rdx + 7], 0x40
je 0x14003adbd
mov rcx, r14
call fcn.14000c030
mov rdx, qword [rsp + 0x38]
movzx eax, sil
lea rdi, [0x14006a140]
mov esi, eax
shr eax, 2
movzx eax, byte [rdi + rax]
shl esi, 0x10
mov byte [rdx + rbx + 8], al
add rbx, 1
jo 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rbx, rax
jge 0x14003ae91
mov rcx, r14
call fcn.140039a70
mov eax, esi
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 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rbx, rax
jge 0x14003ae91
mov rcx, r14
call fcn.140039a70
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], 0x3d
add rbx, 1
jo 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rbx, rax
jge 0x14003ae91
mov rcx, r14
call fcn.140039a70
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], 0x3d
add rbx, 1
jno 0x14003abfd
jmp 0x14003a7c0
lea rdx, [rbp - 1]
mov rcx, r8
call fcn.14000b210
jmp 0x14003a7e4
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.14000b210
jmp 0x14003a7e4
cmp rbp, qword [rsp + 0x20]
jle 0x14003afa0
mov rdx, qword [rsp + 0x20]
mov rax, rdx
add rax, 1
js 0x14003a7c0
cmp rax, rdx
jb 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ae91
cmp rax, rbx
jle 0x14003ae91
movzx esi, byte [rsi + rdx]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14003aef8
test byte [rdx + 7], 0x40
je 0x14003aef8
mov rcx, r14
call fcn.14000c030
mov rdx, qword [rsp + 0x38]
movzx eax, sil
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov esi, eax
shr eax, 2
movzx eax, byte [rdi + rax]
shl esi, 0x10
mov byte [rdx + rbx + 8], al
add rbx, 1
mov r13, rbx
jo 0x14003a7c0
mov rax, qword [rsp + 0x30]
test rbx, rbx
js 0x14003ad4e
cmp rax, rbx
jle 0x14003ad4e
mov rcx, r14
call fcn.140039a70
mov eax, esi
shr eax, 0xc
and eax, 0x30
add r13, 1
movzx edx, byte [rdi + rax]
mov rax, qword [rsp + 0x38]
mov byte [rax + rbx + 8], dl
jo 0x14003a7c0
mov rax, qword [rsp + 0x30]
test r13, r13
js 0x14003ad4e
cmp r13, rax
jge 0x14003ad4e
mov rcx, r14
call fcn.140039a70
mov rax, qword [rsp + 0x38]
mov byte [rax + r13 + 8], 0x3d
add r13, 1
jno 0x14003abc6
jmp 0x14003a7c0
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 1]
call fcn.14000b210
jmp 0x14003a7e4
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.140008a10
jmp 0x14003a7e4