Function at 0x140002665
Capabilities:
Encode data using base64

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
mov qword [rbp + 0x110], r8
mov dword [rbp + 0xd4], 0
lea rax, [rbp - 0x50]
mov r8d, 0x100
mov edx, pe_nt_image_headers64
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rbp + 0xe0], 0
jmp 0x1400026e4
lea rdx, str.0BCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzA__345678921
mov rax, qword [rbp + 0xe0]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp + 0xe0]
cdqe
mov byte [rbp + rax - 0x50], dl
add qword [rbp + 0xe0], 1
cmp qword [rbp + 0xe0], 0x3f
jbe 0x1400026b8
mov byte [rbp - 0x13], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
jmp 0x14000273c
mov rdx, qword [rbp + 0x100]
mov rax, qword [rbp + 0xe0]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
cdqe
movzx eax, byte [rbp + rax - 0x50]
cmp al, 0x80
je 0x140002734
add qword [rbp + 0xd8], 1
add qword [rbp + 0xe0], 1
mov rax, qword [rbp + 0xe0]
cmp rax, qword [rbp + 0x108]
jb 0x14000270a
cmp qword [rbp + 0xd8], 0
jne 0x140002760
mov eax, 0
jmp 0x1400029db
mov rax, qword [rbp + 0xd8]
shr rax, 2
mov rdx, rax
mov rax, rdx
add rax, rax
add rax, rdx
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xc0], 0
jne 0x1400027b6
mov eax, 0
jmp 0x1400029db
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
jmp 0x140002906
mov rdx, qword [rbp + 0x100]
mov rax, qword [rbp + 0xe0]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
cdqe
movzx eax, byte [rbp + rax - 0x50]
mov byte [rbp + 0xbf], al
cmp byte [rbp + 0xbf], 0x80
je 0x1400028fd
mov rdx, qword [rbp + 0x100]
mov rax, qword [rbp + 0xe0]
add rax, rdx
movzx eax, byte [rax]
mov ecx, eax
lea rdx, [rbp - 0x54]
mov rax, qword [rbp + 0xd8]
add rax, rdx
mov byte [rax], cl
lea rdx, [rbp - 0x58]
mov rax, qword [rbp + 0xd8]
add rdx, rax
movzx eax, byte [rbp + 0xbf]
mov byte [rdx], al
add qword [rbp + 0xd8], 1
cmp qword [rbp + 0xd8], 4
jne 0x1400028fe
movzx eax, byte [rbp - 0x58]
lea edx, [rax*4]
movzx eax, byte [rbp - 0x57]
shr al, 4
mov ecx, edx
or ecx, eax
mov rax, qword [rbp + 0xe8]
lea rdx, [rax + 1]
mov qword [rbp + 0xe8], rdx
mov edx, ecx
mov byte [rax], dl
movzx eax, byte [rbp - 0x57]
shl eax, 4
mov edx, eax
movzx eax, byte [rbp - 0x56]
shr al, 2
mov ecx, edx
or ecx, eax
mov rax, qword [rbp + 0xe8]
lea rdx, [rax + 1]
mov qword [rbp + 0xe8], rdx
mov edx, ecx
mov byte [rax], dl
movzx eax, byte [rbp - 0x56]
shl eax, 6
mov edx, eax
movzx eax, byte [rbp - 0x55]
mov ecx, edx
or ecx, eax
mov rax, qword [rbp + 0xe8]
lea rdx, [rax + 1]
mov qword [rbp + 0xe8], rdx
mov edx, ecx
mov byte [rax], dl
mov qword [rbp + 0xd8], 0
movzx eax, byte [rbp - 0x52]
cmp al, 0x3d
jne 0x1400028fe
add dword [rbp + 0xd4], 1
movzx eax, byte [rbp - 0x51]
cmp al, 0x3d
jne 0x14000291c
add dword [rbp + 0xd4], 1
jmp 0x14000291c
nop
add qword [rbp + 0xe0], 1
mov rax, qword [rbp + 0xe0]
cmp rax, qword [rbp + 0x108]
jb 0x1400027d1
jmp 0x14000291d
nop
cmp qword [rbp + 0xd8], 0
je 0x1400029ae
cmp qword [rbp + 0xd8], 1
jne 0x14000294e
mov rax, qword [rbp + 0xc0]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x1400029db
movzx eax, byte [rbp - 0x58]
lea edx, [rax*4]
movzx eax, byte [rbp - 0x57]
shr al, 4
mov ecx, edx
or ecx, eax
mov rax, qword [rbp + 0xe8]
lea rdx, [rax + 1]
mov qword [rbp + 0xe8], rdx
mov edx, ecx
mov byte [rax], dl
cmp qword [rbp + 0xd8], 3
jne 0x1400029ae
movzx eax, byte [rbp - 0x57]
shl eax, 4
mov edx, eax
movzx eax, byte [rbp - 0x56]
shr al, 2
mov ecx, edx
or ecx, eax
mov rax, qword [rbp + 0xe8]
lea rdx, [rax + 1]
mov qword [rbp + 0xe8], rdx
mov edx, ecx
mov byte [rax], dl
mov rax, qword [rbp + 0xe8]
sub rax, qword [rbp + 0xc0]
mov rdx, rax
mov eax, dword [rbp + 0xd4]
cdqe
sub rdx, rax
mov rax, qword [rbp + 0x110]
mov qword [rax], rdx
mov rax, qword [rbp + 0xc0]
add rsp, 0x170
pop rbp
ret