Function at 0x18004a640
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r9, qword [rcx + 0x10]
mov rdi, rdx
movabs r10, 0xaaaaaaaaaaaaaaab
lea r13, [rdi + 0x10]
xor r14d, r14d
mov rax, r10
mov rbx, rcx
mov ebp, r14d
lea r8, [r9 + 2]
mov esi, r14d
mul r8
mov rax, r10
shr rdx, 1
lea rcx, [rdx + rdx*2]
sub r8, rcx
sub r9, r8
add r9, 2
mul r9
mov rax, qword [r13]
shr rdx, 1
shl edx, 2
movsxd rdx, edx
cmp rdx, rax
ja 0x18004a6ba
cmp qword [rdi + 0x18], 0x10
mov rax, rdi
jb 0x18004a6b0
mov rax, qword [rdi]
mov qword [r13], rdx
mov byte [rax + rdx], sil
jmp 0x18004a6c8
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.180063e20
cmp qword [rbx + 0x18], 0x10
mov r8d, dword [rbx + 0x10]
jb 0x18004a6d6
mov rbx, qword [rbx]
mov qword [rsp + 0x70], r15
test r8d, r8d
je 0x18004a8bb
mov rdx, r14
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rsp + rdx + 0x60], cl
dec r8d
movzx r15d, byte [rsp + 0x62]
inc rdx
movzx r9d, byte [rsp + 0x61]
inc ebp
movzx r10d, byte [rsp + 0x60]
cmp rdx, 3
jne 0x18004a7e1
movzx eax, r10b
movzx edx, r10b
shr al, 2
and dl, 3
movzx ecx, al
movzx r11d, r9b
and r11b, 0xf
shl dl, 4
movzx eax, r9b
shl r11b, 2
shr al, 4
movzx ebp, r15b
add dl, al
mov byte [rsp + 0x68], cl
movzx eax, r15b
mov byte [rsp + 0x69], dl
shr al, 6
and bpl, 0x3f
add r11b, al
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp qword [rdi + 0x18], 0x10
movzx ecx, byte [rcx + rax]
mov rax, rdi
jb 0x18004a77a
mov rax, qword [rdi]
mov byte [rax + rsi], cl
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp qword [rdi + 0x18], 0x10
movzx eax, dl
movzx ecx, byte [rax + rcx]
mov rax, rdi
jb 0x18004a798
mov rax, qword [rdi]
mov byte [rsi + rax + 1], cl
cmp qword [rdi + 0x18], 0x10
movzx eax, r11b
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ecx, byte [rax + r11]
mov rax, rdi
jb 0x18004a7b9
mov rax, qword [rdi]
mov byte [rsi + rax + 2], cl
cmp qword [rdi + 0x18], 0x10
movzx eax, bpl
movzx ecx, byte [rax + r11]
mov rax, rdi
jb 0x18004a7d3
mov rax, qword [rdi]
mov byte [rsi + rax + 3], cl
mov ebp, r14d
add rsi, 4
mov rdx, r14
test r8d, r8d
jne 0x18004a6f0
test ebp, ebp
je 0x18004a8bb
movsxd rax, ebp
cmp rax, 3
jge 0x18004a821
jae 0x18004a96e
mov byte [rsp + rax + 0x60], r14b
inc rax
cmp rax, 3
jl 0x18004a7fb
movzx r15d, byte [rsp + 0x62]
movzx r9d, byte [rsp + 0x61]
movzx r10d, byte [rsp + 0x60]
movzx eax, r10b
and r10b, 3
shr al, 2
mov byte [rsp + 0x68], al
movzx eax, r9b
shr al, 4
and r9b, 0xf
shl r10b, 4
add r10b, al
shl r9b, 2
movzx eax, r15b
mov byte [rsp + 0x69], r10b
shr al, 6
and r15b, 0x3f
add r9b, al
mov byte [rsp + 0x6b], r15b
lea eax, [rbp + 1]
mov byte [rsp + 0x6a], r9b
movsxd r8, eax
test eax, eax
jle 0x18004a895
mov rcx, r14
cmp qword [rdi + 0x18], 0x10
movzx eax, byte [rsp + rcx + 0x68]
movzx edx, byte [rax + r11]
mov rax, rdi
jb 0x18004a887
mov rax, qword [rdi]
mov byte [rax + rsi], dl
inc rcx
inc rsi
cmp rcx, r8
jl 0x18004a870
cmp ebp, 3
jge 0x18004a8bb
mov ecx, 3
sub ecx, ebp
cmp qword [rdi + 0x18], 0x10
mov rax, rdi
jb 0x18004a8ae
mov rax, qword [rdi]
mov byte [rax + rsi], 0x3d
inc rsi
sub rcx, 1
jne 0x18004a8a1
cmp qword [rdi + 0x18], 0x10
jb 0x18004a8cd
mov rax, qword [rdi]
mov rdx, rax
mov rdi, rax
jmp 0x18004a8d3
mov rax, rdi
mov rdx, rdi
add rdx, qword [r13]
mov rcx, rdx
sub rcx, rdi
cmp rdi, rdx
cmova rcx, r14
test rcx, rcx
je 0x18004a943
cmp rcx, 0x40
jb 0x18004a943
movdqa xmm1, xmmword [0x18024dc90]
and rcx, 0xffffffffffffffc0
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add r14, 0x40
paddb xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
paddb xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
paddb xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
paddb xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r14, rcx
jne 0x18004a900
cmp rax, rdx
je 0x18004a95a
nop dword [rax + rax]
inc byte [rax]
inc rax
cmp rax, rdx
jne 0x18004a950
mov r15, qword [rsp + 0x70]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18015ce58
int3