Function at 0x140005440
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140285040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
mov rsi, qword [rdx + 0x10]
lea rcx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rdi
call fcn.14000bcd0
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400054a2
mov r8, qword [rdi]
xor edx, edx
lea r10, [rsi - 2]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
test r10, r10
je 0x14000557e
nop dword [rax + rax]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400054cd
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [r8], al
cmp qword [rbx + 0x18], 0xf
jbe 0x1400054ed
mov rax, qword [rbx]
lea r9, [rdx + rax]
jmp 0x1400054f4
lea r9, [rbx + rdx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140005524
mov rax, qword [rbx]
lea r9, [rax + 1]
jmp 0x14000552b
lea r9, [rbx + 1]
mov rax, rbx
add r9, rdx
movzx ecx, byte [rax + rdx + 2]
shr rcx, 6
movsx rax, byte [r9]
and eax, 0xf
shl rax, 2
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000555b
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r8 + 3], al
add r8, 4
add rdx, 3
cmp rdx, r10
jb 0x1400054c0
cmp rdx, rsi
jae 0x140005634
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140005594
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [r8], al
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x1400055d6
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400055ba
mov rax, qword [rbx]
movsx rax, byte [rax + rdx]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x14000562c
cmp qword [rbx + 0x18], 0xf
jbe 0x1400055e6
mov rax, qword [rbx]
lea r9, [rdx + rax]
jmp 0x1400055ed
lea r9, [rdx + rbx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000561e
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000566a
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140005665
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000569d
mov rcx, r8
call fcn.14007d254
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007cfb0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3