Function at 0x14012c7f0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140424b58]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0
cmp byte [rcx + 0x40], 0
jne 0x14012cafd
mov byte [rcx + 0x40], 1
lea r15, [0x140000000]
lea rax, [r15 + 0x356568]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 4
xor r8b, r8b
xor edx, edx
mov r14, qword [rsi + 0x10]
sub r14, qword [rsi + 8]
mov edi, edx
je 0x14012c9f5
nop word [rax + rax]
mov rax, qword [rsi + 8]
movzx ebx, byte [rdi + rax]
mov ecx, edx
test edx, edx
je 0x14012c96c
sub ecx, 1
je 0x14012c93d
cmp ecx, 1
jne 0x14012c98b
movzx ecx, r8b
and ecx, 0xf
shl rcx, 2
mov eax, ebx
shr rax, 6
or rcx, rax
movzx edx, byte [rcx + r15 + 0x364bb0]
lea rcx, [rsp + 0x30]
call fcn.140077460
mov ecx, ebx
and ecx, 0x3f
movzx edx, byte [rcx + r15 + 0x364bb0]
mov rcx, rax
call fcn.140077460
xor edx, edx
jmp 0x14012c98b
movzx ecx, r8b
and ecx, 3
shl rcx, 4
mov rax, rbx
shr rax, 4
or rcx, rax
movzx edx, byte [rcx + r15 + 0x364bb0]
lea rcx, [rsp + 0x30]
call fcn.140077460
mov edx, 2
jmp 0x14012c98b
mov rax, rbx
shr rax, 2
movzx edx, byte [rax + r15 + 0x364bb0]
lea rcx, [rsp + 0x30]
call fcn.140077460
mov edx, 1
mov r8, rbx
inc rdi
cmp rdi, r14
jb 0x14012c8e0
sub edx, 1
je 0x14012c9c9
cmp edx, 1
jne 0x14012c9f5
mov rax, rbx
and eax, 0xf
movzx edx, byte [r15 + rax*4 + 0x364bb0]
lea rcx, [rsp + 0x30]
call fcn.140077460
mov rcx, rax
mov dl, 0x3d
call fcn.140077460
jmp 0x14012c9f5
mov rax, rbx
and eax, 3
add rax, rax
movzx edx, byte [r15 + rax*8 + 0x364bb0]
lea rcx, [rsp + 0x30]
call fcn.140077460
mov rcx, rax
lea rdx, [0x140364ff8]
call fcn.140073ad0
nop
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
mov dword [rsp + 0x20], 5
test byte [rbp - 0x58], 2
jne 0x14012ca3a
mov rax, qword [rsp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x14012ca3a
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x60]
cmovb r8, qword [rbp - 0x60]
sub r8, rdx
jmp 0x14012ca62
test byte [rbp - 0x58], 4
jne 0x14012ca6c
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x14012ca6c
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x78]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rbp + 0x20]
call fcn.140028740
nop
add rsi, 0x20
lea rdx, [rbp + 0x20]
mov rcx, rsi
call fcn.140023640
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x14012cabb
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012cab5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012cab5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401a68e0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.14004cb90
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14012cb01
add rsi, 0x20
mov rax, rsi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14032b620
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret