Function at 0x10004eb50
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x40]
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rdx
mov dword [rbp - 0x18], r8d
mov rax, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
movsxd rcx, dword [rbp - 0x18]
movabs rax, 0x5555555555555556
imul rcx
shr rcx, 0x3f
add rdx, rcx
cmp edx, 1
jl 0x10004eca0
mov dword [rbp - 0x20], 0
nop dword [rax + rax]
add dword [rbp - 0x20], 1
mov rcx, qword [rbp - 0x30]
mov eax, dword [rbp - 0x24]
movzx eax, byte [rcx + rax]
shr eax, 2
and eax, eax
mov r9, qword [rbp - 0x38]
movsxd r8, dword [rbp - 0x28]
lea rcx, [0x100057af0]
mov al, byte [rcx + rax]
mov byte [r9 + r8], al
mov rcx, qword [rbp - 0x30]
mov eax, dword [rbp - 0x24]
mov ax, word [rcx + rax]
and ax, 3
movsx eax, ax
shl eax, 4
movsxd rax, eax
mov r8, qword [rbp - 0x30]
movsxd rcx, dword [rbp - 0x24]
movzx ecx, byte [r8 + rcx + 1]
shr ecx, 4
and ecx, ecx
add rax, rcx
mov r8, qword [rbp - 0x38]
movsxd r9, dword [rbp - 0x28]
lea rcx, [0x100057af0]
mov al, byte [rcx + rax]
mov byte [r8 + r9 + 1], al
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rbp - 0x24]
mov ax, word [rax + rcx + 1]
and ax, 0xf
movsx eax, ax
shl eax, 2
movsxd rax, eax
mov rcx, qword [rbp - 0x30]
movsxd r8, dword [rbp - 0x24]
movzx ecx, byte [rcx + r8 + 2]
shr ecx, 6
and ecx, ecx
add rax, rcx
mov r8, qword [rbp - 0x38]
movsxd r9, dword [rbp - 0x28]
lea rcx, [0x100057af0]
mov al, byte [rcx + rax]
mov byte [r8 + r9 + 2], al
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rbp - 0x24]
mov ax, word [rax + rcx + 2]
and eax, 0x3f
mov r9, qword [rbp - 0x38]
movsxd r8, dword [rbp - 0x28]
lea rcx, [0x100057af0]
mov al, byte [rcx + rax]
mov byte [r9 + r8 + 3], al
add dword [rbp - 0x28], 4
add dword [rbp - 0x24], 3
cmp edx, dword [rbp - 0x20]
jg 0x10004ebb0
nop
movsxd rax, dword [rbp - 0x18]
cqo
mov ecx, 3
idiv rcx
cmp rdx, 1
jl 0x10004edec
sub rdx, 1
je 0x10004ecd0
sub rdx, 1
je 0x10004ed44
jmp 0x10004edec
mov rdx, qword [rbp - 0x30]
mov eax, dword [rbp - 0x24]
movzx eax, byte [rdx + rax]
shr eax, 2
and eax, eax
mov r8, qword [rbp - 0x38]
movsxd rcx, dword [rbp - 0x28]
lea rdx, [0x100057af0]
mov al, byte [rdx + rax]
mov byte [r8 + rcx], al
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov ax, word [rax + rdx]
and ax, 3
movsx eax, ax
shl eax, 4
and eax, eax
mov rcx, qword [rbp - 0x38]
movsxd r8, dword [rbp - 0x28]
lea rdx, [0x100057af0]
mov al, byte [rdx + rax]
mov byte [rcx + r8 + 1], al
mov rax, qword [rbp - 0x38]
movsxd rdx, dword [rbp - 0x28]
mov byte [rax + rdx + 2], 0x3d
mov rax, qword [rbp - 0x38]
movsxd rdx, dword [rbp - 0x28]
mov byte [rax + rdx + 3], 0x3d
jmp 0x10004edec
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
movzx eax, byte [rax + rdx]
shr eax, 2
and eax, eax
mov rcx, qword [rbp - 0x38]
movsxd r8, dword [rbp - 0x28]
lea rdx, [0x100057af0]
mov al, byte [rdx + rax]
mov byte [rcx + r8], al
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov ax, word [rax + rdx]
and ax, 3
movsx eax, ax
shl eax, 4
movsxd rax, eax
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rbp - 0x24]
movzx edx, byte [rcx + rdx + 1]
shr edx, 4
and edx, edx
add rdx, rax
mov rcx, qword [rbp - 0x38]
movsxd r8, dword [rbp - 0x28]
lea rax, [0x100057af0]
mov al, byte [rax + rdx]
mov byte [rcx + r8 + 1], al
mov rax, qword [rbp - 0x30]
movsxd rdx, dword [rbp - 0x24]
mov ax, word [rax + rdx + 1]
and ax, 0xf
movsx eax, ax
shl eax, 2
and eax, eax
mov rcx, qword [rbp - 0x38]
movsxd r8, dword [rbp - 0x28]
lea rdx, [0x100057af0]
mov al, byte [rdx + rax]
mov byte [rcx + r8 + 2], al
mov rdx, qword [rbp - 0x38]
movsxd rax, dword [rbp - 0x28]
mov byte [rdx + rax + 3], 0x3d
nop
movsxd rax, dword [rbp - 0x18]
lea rcx, [rax + 2]
movabs rax, 0x5555555555555556
imul rcx
shr rcx, 0x3f
add rdx, rcx
shl rdx, 2
mov dword [rbp - 0x1c], edx
mov eax, edx
lea rsp, [rbp]
pop rbp
ret