Function at 0x140001270
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r15, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rcx, [r8 + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
mov r14, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
mov dword [rsp + 0x20], 1
mov rcx, rbx
call fcn.140001520
test rbp, rbp
je 0x1400014ff
lea esi, [rdi + 2]
movzx eax, byte [rdi + r15]
shr rax, 2
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000131b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001310
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001323
mov rcx, rbx
call fcn.140001af0
lea ecx, [rsi - 1]
movzx eax, byte [rdi + r15]
mov rdx, qword [rbx + 0x18]
cmp rcx, rbp
jae 0x14000144d
lea rdi, [rcx + r15]
mov ecx, eax
and ecx, 3
shl ecx, 4
movzx eax, byte [rdi]
shr eax, 4
add ecx, eax
movzx r9d, byte [rcx + r14]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x140001379
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000136e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001381
mov rcx, rbx
call fcn.140001af0
mov eax, esi
movzx ecx, byte [rdi]
mov rdx, qword [rbx + 0x18]
cmp rax, rbp
jae 0x140001416
lea rdi, [rax + r15]
and ecx, 0xf
movzx eax, byte [rdi]
shr eax, 6
lea eax, [rax + rcx*4]
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x1400013d0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400013c5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400013d8
mov rcx, rbx
call fcn.140001af0
movzx eax, byte [rdi]
and eax, 0x3f
movzx r9d, byte [rax + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400014e8
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001408
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400014f0
mov rax, rcx
and eax, 0xf
movzx r9d, byte [r14 + rax*4]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x1400014b4
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001442
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400014bc
and eax, 3
add rax, rax
movzx r9d, byte [r14 + rax*8]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x140001480
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140001475
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001488
mov rcx, rbx
call fcn.140001af0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400014b1
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400014a9
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400014bc
mov r9b, 0x3d
mov rcx, rbx
call fcn.140001af0
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x1400014e5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
cmp rdx, 0x10
mov rax, rbx
jb 0x1400014dd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400014f0
mov r9b, 0x3d
mov rcx, rbx
call fcn.140001af0
add esi, 3
lea edi, [rsi - 2]
cmp rdi, rbp
jb 0x1400012e1
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret