Function at 0x14011c7dc
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov edi, dword [rbp + 0x68]
xor r14d, r14d
test r8, r8
mov dword [rbp + 0x50], r14d
mov r11, rcx
mov dword [rbp + 0x58], r14d
mov r15d, r14d
mov dword [rbp + 0x60], r14d
sete r15b
lea ecx, [rdx + 2]
mov eax, 0xaaaaaaab
mov esi, edx
mul ecx
mov rbx, r9
mov r10d, r14d
mov r13d, edx
mov r9d, r14d
shr r13d, 1
shl r13d, 2
lea eax, [r13 + 0x3f]
shr eax, 6
cmp edi, 1
jne 0x14011c843
lea eax, [rax + rax*2]
jmp 0x14011c84a
cmp edi, 2
cmove eax, r14d
add r13d, eax
test rbx, rbx
je 0x14011c864
cmp r13d, dword [rbx]
jbe 0x14011c9ac
test r8, r8
je 0x14011c9ac
mov eax, 0xffffff53
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, r9d
inc r9d
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], 0
mov r14b, byte [r9 + r11]
inc r9d
mov r12b, byte [rax + r11]
mov eax, dword [rbx]
mov dl, r12b
shr dl, 2
mov cl, byte [r9 + r11]
inc r9d
mov dword [rbp + 0x58], r9d
lea r9, [rbp + 0x50]
mov byte [rbp + 0x68], cl
mov ecx, edi
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
test eax, eax
jne 0x14011c9df
mov dl, r14b
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], eax
lea r9, [rbp + 0x50]
mov eax, dword [rbx]
and r12b, 3
shr dl, 4
mov ecx, edi
shl r12b, 4
or dl, r12b
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
test eax, eax
jne 0x14011c9df
mov r12b, byte [rbp + 0x68]
lea r9, [rbp + 0x50]
mov dl, r12b
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], eax
and r14b, 0xf
mov eax, dword [rbx]
mov ecx, edi
shr dl, 6
shl r14b, 2
or dl, r14b
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
xor r14d, r14d
mov r10d, eax
test eax, eax
jne 0x14011c9bd
mov eax, dword [rbx]
lea r9, [rbp + 0x50]
mov dword [rsp + 0x30], r15d
and r12b, 0x3f
mov dl, r12b
mov dword [rsp + 0x28], r14d
mov ecx, edi
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
test eax, eax
jne 0x14011c9bd
add esi, 0xfffffffd
cmp edi, 2
je 0x14011c9a4
mov eax, dword [rbp + 0x60]
inc eax
mov dword [rbp + 0x60], eax
test al, 0xf
jne 0x14011c9a4
test esi, esi
je 0x14011caaf
mov eax, dword [rbx]
lea r9, [rbp + 0x50]
mov dword [rsp + 0x30], r15d
mov dl, 0xa
mov dword [rsp + 0x28], 1
mov ecx, edi
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
test eax, eax
jne 0x14011c9bd
mov r9d, dword [rbp + 0x58]
mov r11, qword [rbp + 0x48]
cmp esi, 2
ja 0x14011c87a
test esi, esi
je 0x14011caaf
test r10d, r10d
jne 0x14011cadc
mov ecx, dword [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
mov r14b, byte [rcx + rdx]
cmp esi, 2
jne 0x14011c9e4
lea eax, [rcx + 1]
mov r12b, byte [rax + rdx]
jmp 0x14011c9e7
xor r14d, r14d
jmp 0x14011c9bd
xor r12b, r12b
mov al, r12b
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x50]
and al, 0xf
mov dl, r14b
shl al, 2
mov ecx, edi
mov byte [rbp + 0x68], al
mov eax, dword [rbx]
shr dl, 2
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
test eax, eax
jne 0x14011caf6
and r14b, 3
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], eax
lea r9, [rbp + 0x50]
mov eax, dword [rbx]
mov ecx, edi
shl r14b, 4
shr r12b, 4
or r14b, r12b
mov dword [rsp + 0x20], eax
mov dl, r14b
call fcn.14011c6dc
xor r14d, r14d
mov r10d, eax
test eax, eax
jne 0x14011cadc
mov ecx, dword [rbx]
lea edx, [rax + 0x3d]
movzx eax, byte [rbp + 0x68]
lea r9, [rbp + 0x50]
cmp esi, 2
mov dword [rsp + 0x30], r15d
cmove edx, eax
mov eax, r14d
setne al
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov ecx, edi
call fcn.14011c6dc
mov r10d, eax
test eax, eax
jne 0x14011cadc
mov eax, dword [rbx]
lea r9, [rbp + 0x50]
mov dword [rsp + 0x30], r15d
mov dl, 0x3d
mov dword [rsp + 0x28], 1
mov ecx, edi
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
test r10d, r10d
jne 0x14011cadc
cmp edi, 2
je 0x14011cadc
mov eax, dword [rbx]
lea r9, [rbp + 0x50]
mov dword [rsp + 0x30], r15d
mov dl, 0xa
mov dword [rsp + 0x28], 1
mov ecx, edi
mov dword [rsp + 0x20], eax
call fcn.14011c6dc
mov r10d, eax
cmp dword [rbp + 0x50], r13d
je 0x14011cafb
cmp edi, 1
je 0x14011cafb
test r10d, r10d
jne 0x14011cafb
mov eax, 0xffffff66
jmp 0x14011c869
xor r14d, r14d
jmp 0x14011cadc
test r8, r8
je 0x14011cb0b
mov eax, dword [rbp + 0x50]
cmp dword [rbx], eax
jbe 0x14011cb0b
mov byte [rax + r8], r14b
mov eax, dword [rbp + 0x50]
mov dword [rbx], eax
test r10d, r10d
jne 0x14011cb26
neg r8
sbb eax, eax
not eax
and eax, 0xffffff36
jmp 0x14011c869
mov eax, r10d
jmp 0x14011c869