Function at 0x1400b8410
Capabilities:
Encode data using base64

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x14041fc80]
mov rbx, qword [rdx + 8]
mov rdi, qword [rdx]
lea r12, [rbx + rbx]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
lea rcx, [rcx + 0x10]
mov qword [rsi], rcx
cmp r12, 0xf
ja 0x1400b8390
test r12, r12
jne 0x1400b83ad
mov qword [rsi + 8], r12
mov byte [rcx + rbx*2], 0
mov rcx, qword [rsi]
test rbx, rbx
je 0x1400b83ce
xor eax, eax
lea r9, str.000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff
nop dword [rax]
movzx edx, byte [rdi + rax]
movzx edx, word [r9 + rdx*2]
mov word [rcx + rax*2], dx
add rax, 1
cmp rbx, rax
jne 0x1400b8338
mov rax, qword [rsi]
add rcx, r12
add rax, qword [rsi + 8]
cmp rcx, rax
je 0x1400b8377
mov r8d, 0x1ef
lea rdx, str.util_strencodings.cpp
lea rcx, str.it__rv.data____rv.size__
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x1400b83db
mov rax, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test r12, r12
js 0x1400b83e0
mov rcx, r12
add rcx, 1
js 0x1400b83d6
call fcn.1402aa8b0
mov qword [rsi + 0x10], r12
mov qword [rsi], rax
mov rcx, rax
mov r8, r12
xor edx, edx
call fcn.140197fc0
mov rcx, qword [rsi]
mov qword [rsi + 8], r12
mov byte [rcx + rbx*2], 0
mov rcx, qword [rsi]
test rbx, rbx
jne 0x1400b832c
mov rax, rcx
jmp 0x1400b8354
call fcn.1402af390
call fcn.14018c640
lea rcx, [0x1402c4dfa]
call fcn.1402af580
endbr64
mov rbx, rax
mov rcx, rsi
call fcn.140271720
mov rcx, rbx
call fcn.14018db80
nop
nop word cs:[rax + rax]
nop
endbr64
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, qword [rdx]
mov r12, qword [rdx + 8]
mov rdx, qword [0x14041fc80]
mov r13, rbp
mov rax, qword [rdx]
mov qword [rsp + 0x48], rax
xor eax, eax
lea rdx, [r12 + 2]
lea r14, [rcx + 0x10]
mov byte [rcx + 0x10], 0
movabs rax, 0xaaaaaaaaaaaaaaab
mov qword [rcx], r14
mov rbx, rcx
mul rdx
mov qword [rcx + 8], 0
shr rdx, 1
lea rsi, [rdx*4]
cmp rsi, 0xf
ja 0x1400b8780
lea rax, [rbp + r12]
xor edi, edi
mov qword [rsp + 0x30], rax
cmp rbp, rax
je 0x1400b8750
xor esi, esi
xor r12d, r12d
nop word cs:[rax + rax]
movzx eax, byte [r13]
shl r12, 8
add rsi, 8
or r12, rax
and r12d, 0x1fff
sub rsi, 6
mov rax, r12
mov r9, qword [rbx]
lea rbp, [rdi + 1]
mov ecx, esi
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [rsp + 0x20], esi
shr rax, cl
and eax, 0x3f
movzx r15d, byte [rdx + rax]
cmp r14, r9
je 0x1400b85a0
mov rax, qword [rbx + 0x10]
cmp rax, rbp
jb 0x1400b8530
mov byte [r9 + rdi], r15b
mov rax, qword [rbx]
mov qword [rbx + 8], rbp
mov byte [rax + rbp], 0
cmp rsi, 5
jbe 0x1400b8510
mov rdi, qword [rbx + 8]
jmp 0x1400b84b7
mov rax, qword [rsp + 0x30]
add r13, 1
cmp r13, rax
je 0x1400b8600
mov rdi, qword [rbx + 8]
jmp 0x1400b84a0
test rbp, rbp
js 0x1400b8859
add rax, rax
mov qword [rsp + 0x28], rax
cmp rbp, rax
jb 0x1400b86f8
mov qword [rsp + 0x28], rbp
mov rcx, qword [rsp + 0x28]
add rcx, 1
js 0x1400b8701
call fcn.1402aa8b0
mov r10, qword [rbx]
mov r9, rax
test rdi, rdi
jne 0x1400b85d2
cmp r14, r10
je 0x1400b858d
mov rax, qword [rbx + 0x10]
mov rcx, r10
mov qword [rsp + 0x38], r9
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov qword [rbx], r9
mov qword [rbx + 0x10], rax
jmp 0x1400b84ef
cmp rbp, 0xf
jbe 0x1400b84ef
test rbp, rbp
js 0x1400b8859
cmp rbp, 0x1d
ja 0x1400b854a
mov ecx, 0x1f
call fcn.1402aa8b0
mov qword [rsp + 0x28], 0x1e
mov r10, qword [rbx]
mov r9, rax
cmp rdi, 1
je 0x1400b8800
mov rdx, r10
mov rcx, r9
mov r8, rdi
mov qword [rsp + 0x38], r10
call sub.msvcrt.dll_memcpy
mov r10, qword [rsp + 0x38]
mov r9, rax
jmp 0x1400b856e
test rsi, rsi
jne 0x1400b8710
mov rdi, qword [rbx + 8]
test dil, 3
jne 0x1400b863e
jmp 0x1400b8750
mov byte [rbp + rdi], 0x3d
mov rax, qword [rbx]
mov qword [rbx + 8], rsi
mov byte [rax + rsi], 0
mov rdi, qword [rbx + 8]
test dil, 3
je 0x1400b8750
mov rbp, qword [rbx]
lea rsi, [rdi + 1]
cmp r14, rbp
je 0x1400b86c0
mov rax, qword [rbx + 0x10]
cmp rax, rsi
jae 0x1400b8620
test rsi, rsi
js 0x1400b8865
lea r12, [rax + rax]
cmp rsi, r12
jb 0x1400b8740
mov r12, rsi
mov rcx, r12
add rcx, 1
js 0x1400b8749
call fcn.1402aa8b0
mov r13, qword [rbx]
mov rbp, rax
cmp rdi, 1
je 0x1400b8810
mov r8, rdi
mov rdx, r13
mov rcx, rbp
call sub.msvcrt.dll_memcpy
cmp r14, r13
je 0x1400b86b1
mov rax, qword [rbx + 0x10]
mov rcx, r13
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov qword [rbx], rbp
mov qword [rbx + 0x10], r12
jmp 0x1400b8620
cmp rsi, 0xf
jbe 0x1400b8620
test rsi, rsi
js 0x1400b8865
cmp rsi, 0x1d
ja 0x1400b8669
mov ecx, 0x1f
call fcn.1402aa8b0
mov r13, qword [rbx]
mov rbp, rax
mov r12d, 0x1e
jmp 0x1400b868e
test rax, rax
jns 0x1400b854f
call fcn.1402af390
nop word cs:[rax + rax]
mov eax, dword [rsp + 0x20]
mov ecx, 6
sub ecx, eax
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shl r12, cl
mov rcx, rbx
and r12d, 0x3f
movsx edx, byte [rax + r12]
call fcn.140274b60
jmp 0x1400b8609
test r12, r12
jns 0x1400b866c
call fcn.1402af390
nop
mov rdx, qword [0x14041fc80]
mov rax, qword [rsp + 0x48]
sub rax, qword [rdx]
jne 0x1400b8871
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rsi, rsi
js 0x1400b8876
cmp rsi, 0x1d
jbe 0x1400b8834
mov rcx, rsi
add rcx, 1
js 0x1400b8854
call fcn.1402aa8b0
mov rdi, qword [rbx + 8]
mov r9, qword [rbx]
mov r15, rax
lea r8, [rdi + 1]
test rdi, rdi
je 0x1400b8848
test r8, r8
jne 0x1400b881d
cmp r14, r9
je 0x1400b87da
mov rax, qword [rbx + 0x10]
mov rcx, r9
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov rdi, qword [rbx + 8]
lea rax, [rbp + r12]
mov qword [rbx], r15
mov qword [rbx + 0x10], rsi
mov qword [rsp + 0x30], rax
cmp rbp, rax
jne 0x1400b8491
jmp 0x1400b860d
movzx eax, byte [r10]
mov byte [r9], al
jmp 0x1400b856e
movzx eax, byte [r13]
mov byte [rbp], al
jmp 0x1400b869c
mov rdx, r9
mov rcx, rax
mov qword [rsp + 0x20], r9
call sub.msvcrt.dll_memcpy
mov r9, qword [rsp + 0x20]
jmp 0x1400b87c1
mov esi, 0x1e
mov ecx, 0x1f
jmp 0x1400b87a0
movzx eax, byte [r9]
mov byte [r15], al
jmp 0x1400b87c1
call fcn.1402af390
lea rcx, [0x1402c4dfa]
call fcn.1402af580
lea rcx, [0x1402c4dfa]
call fcn.1402af580
call fcn.14018c640
lea rcx, [0x1402c4dfa]
call fcn.1402af580
endbr64
mov rsi, rax
mov rcx, rbx
call fcn.140271720
mov rcx, rsi
call fcn.14018db80
nop
nop word [rax + rax]
endbr64
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [rdx]
mov rbp, qword [rdx + 8]
mov rdx, qword [0x14041fc80]
mov r13, rdi
mov rax, qword [rdx]
mov qword [rsp + 0x48], rax
xor eax, eax
lea rdx, [rbp + 4]
lea r15, [rcx + 0x10]
mov dword [rsp + 0x3c], r8d
movabs rax, 0xcccccccccccccccd
mov qword [rcx], r15
mov rbx, rcx
mul rdx
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
shr rdx, 2
lea rsi, [rdx*8]
cmp rsi, 0xf
ja 0x1400b8b98
lea rax, [rdi + rbp]
mov qword [rsp + 0x28], rax
cmp rdi, rax
je 0x1400b89b0
xor esi, esi
xor ebp, ebp
nop word [rax + rax]
movzx eax, byte [r13]
shl rbp, 8
add rsi, 8
or rbp, rax
and ebp, 0xfff
sub rsi, 5
mov rax, rbp
mov rdi, qword [rbx + 8]
mov r9, qword [rbx]
mov ecx, esi
lea rdx, str.abcdefghijklmnopqrstuvwxyz234567
mov dword [rsp + 0x38], esi
shr rax, cl
lea r12, [rdi + 1]
and eax, 0x1f
movzx r14d, byte [rdx + rax]
cmp r15, r9
je 0x1400b8af0
mov rax, qword [rbx + 0x10]
cmp rax, r12
jb 0x1400b8a80
mov byte [r9 + rdi], r14b
mov rax, qword [rbx]
mov qword [rbx + 8], r12
mov byte [rax + rdi + 1], 0
cmp rsi, 4
ja 0x1400b8946
add r13, 1
cmp qword [rsp + 0x28], r13
jne 0x1400b8930
test rsi, rsi
jne 0x1400b8b60
cmp byte [rsp + 0x3c], 0
je 0x1400b8a50
mov rdi, qword [rbx + 8]
test dil, 7
jne 0x1400b89e9
jmp 0x1400b8a50
mov byte [rsi + rdi], 0x3d
mov rax, qword [rbx]
mov qword [rbx + 8], rbp
mov byte [rax + rbp], 0
mov rdi, qword [rbx + 8]
test dil, 7
je 0x1400b8a50
mov rsi, qword [rbx]
lea rbp, [rdi + 1]
cmp r15, rsi
je 0x1400b8c10
mov rax, qword [rbx + 0x10]
cmp rax, rbp
jae 0x1400b89d0
test rbp, rbp
js 0x1400b8cd7
lea r12, [rax + rax]
cmp rbp, r12
jb 0x1400b8c96
mov r12, rbp
mov rcx, r12
add rcx, 1
js 0x1400b8c9f
call fcn.1402aa8b0
mov r13, qword [rbx]
mov rsi, rax
cmp rdi, 1
jne 0x1400b8c48
movzx eax, byte [r13]
mov byte [rsi], al
jmp 0x1400b8c56
mov rdx, qword [0x14041fc80]
mov rax, qword [rsp + 0x48]
sub rax, qword [rdx]
jne 0x1400b8cd2
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r12, r12
js 0x1400b8cba
add rax, rax
mov qword [rsp + 0x20], rax
cmp r12, rax
jb 0x1400b8b50
mov qword [rsp + 0x20], r12
mov rcx, qword [rsp + 0x20]
add rcx, 1
js 0x1400b8b59
call fcn.1402aa8b0
mov r10, qword [rbx]
mov r9, rax
test rdi, rdi
jne 0x1400b8b22
cmp r15, r10
je 0x1400b8add
mov rax, qword [rbx + 0x10]
mov rcx, r10
mov qword [rsp + 0x30], r9
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov qword [rbx], r9
mov qword [rbx + 0x10], rax
jmp 0x1400b8986
cmp r12, 0xf
jbe 0x1400b8986
test r12, r12
js 0x1400b8cba
cmp r12, 0x1d
ja 0x1400b8a9a
mov ecx, 0x1f
call fcn.1402aa8b0
mov qword [rsp + 0x20], 0x1e
mov r10, qword [rbx]
mov r9, rax
cmp rdi, 1
je 0x1400b8c00
mov rdx, r10
mov rcx, r9
mov r8, rdi
mov qword [rsp + 0x30], r10
call sub.msvcrt.dll_memcpy
mov r10, qword [rsp + 0x30]
mov r9, rax
jmp 0x1400b8abe
test rax, rax
jns 0x1400b8a9f
call fcn.1402af390
nop
mov eax, dword [rsp + 0x38]
mov ecx, 5
sub ecx, eax
lea rax, str.abcdefghijklmnopqrstuvwxyz234567
shl rbp, cl
mov rcx, rbx
and ebp, 0x1f
movsx edx, byte [rax + rbp]
call fcn.140274b60
cmp byte [rsp + 0x3c], 0
je 0x1400b8a50
jmp 0x1400b89bb
test rsi, rsi
js 0x1400b8cc6
cmp rsi, 0x1d
jbe 0x1400b8c87
mov rcx, rsi
add rcx, 1
js 0x1400b8cb5
call fcn.1402aa8b0
mov r12, rax
mov rax, qword [rbx + 8]
mov r14, qword [rbx]
lea r8, [rax + 1]
test rax, rax
je 0x1400b8ca8
test r8, r8
jne 0x1400b8c77
cmp r15, r14
je 0x1400b8bf2
mov rax, qword [rbx + 0x10]
mov rcx, r14
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov qword [rbx], r12
mov qword [rbx + 0x10], rsi
jmp 0x1400b8911
movzx eax, byte [r10]
mov byte [r9], al
jmp 0x1400b8abe
cmp rbp, 0xf
jbe 0x1400b89d0
test rbp, rbp
js 0x1400b8cd7
cmp rbp, 0x1d
ja 0x1400b8a18
mov ecx, 0x1f
call fcn.1402aa8b0
mov r13, qword [rbx]
mov rsi, rax
mov r12d, 0x1e
nop dword [rax + rax]
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_memcpy
cmp r15, r13
je 0x1400b8c6b
mov rax, qword [rbx + 0x10]
mov rcx, r13
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov qword [rbx], rsi
mov qword [rbx + 0x10], r12
jmp 0x1400b89d0
mov rdx, r14
mov rcx, r12
call sub.msvcrt.dll_memcpy
jmp 0x1400b8bdd
mov esi, 0x1e
mov ecx, 0x1f
jmp 0x1400b8bb8
test r12, r12
jns 0x1400b8a1b
call fcn.1402af390
nop dword [rax]
movzx eax, byte [r14]
mov byte [r12], al
jmp 0x1400b8bdd
call fcn.1402af390
lea rcx, [0x1402c4dfa]
call fcn.1402af580
lea rcx, [0x1402c4dfa]
call fcn.1402af580
call fcn.14018c640
lea rcx, [0x1402c4dfa]
call fcn.1402af580
endbr64
mov rsi, rax
mov rcx, rbx
call fcn.140271720
mov rcx, rsi
call fcn.14018db80
nop
nop dword [rax + rax]
endbr64
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [0x14041fc80]
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov rbx, rcx
movzx r8d, r8b
mov rcx, qword [rsi]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rdx
mov rcx, rbx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call 0x1400b88a0
mov rax, qword [rsp + 0x38]
sub rax, qword [rsi]
jne 0x1400b8d54
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
ret
call fcn.14018c640
nop
nop word [rax + rax]