Function at 0x140006fa0
Capabilities:
Encode data using base64

Disassembly:
jmp 0x140189200
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r13
push r14
sub rsp, 0x20
xor esi, esi
mov r13d, r9d
mov ebx, esi
mov r14, r8
mov rdi, rcx
call fcn.140012db9
test al, al
je 0x140189465
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r15
nop dword [rax]
cmp byte [rdi + 8], 0
mov r15d, esi
jne 0x140189268
mov rcx, qword [rdi]
test rcx, rcx
je 0x140189261
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140189261
mov byte [rdi + 9], al
jmp 0x140189264
mov qword [rdi], rsi
mov byte [rdi + 8], 1
mov rcx, qword [rdi]
movzx ebp, byte [rdi + 9]
test rcx, rcx
je 0x140189283
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140189283
xor al, al
jmp 0x140189288
mov qword [rdi], rsi
mov al, 1
mov byte [rdi + 8], al
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
xor sil, sil
xor r12b, r12b
call fcn.140015b18
test al, al
je 0x1401892ad
mov r15d, 2
jmp 0x140189367
cmp byte [rdi + 8], sil
jne 0x1401892d6
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401892cb
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1401892cb
mov byte [rdi + 9], al
jmp 0x1401892d2
mov qword [rdi], 0
mov byte [rdi + 8], 1
mov rcx, qword [rdi]
movzx esi, byte [rdi + 9]
test rcx, rcx
je 0x1401892f1
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x1401892f1
xor al, al
jmp 0x1401892fa
mov qword [rdi], 0
mov al, 1
mov byte [rdi + 8], al
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
call fcn.140015b18
test al, al
je 0x140189316
mov r15d, 1
jmp 0x140189367
cmp byte [rdi + 8], r12b
jne 0x14018933f
mov rcx, qword [rdi]
test rcx, rcx
je 0x140189334
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140189334
mov byte [rdi + 9], al
jmp 0x14018933b
mov qword [rdi], 0
mov byte [rdi + 8], 1
mov rcx, qword [rdi]
movzx r12d, byte [rdi + 9]
test rcx, rcx
je 0x14018935b
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x14018935b
xor al, al
jmp 0x140189364
mov qword [rdi], 0
mov al, 1
mov byte [rdi + 8], al
shl ebp, 8
movzx eax, sil
mov rsi, qword [r14 + 8]
or ebp, eax
movzx eax, r12b
mov r12d, 3
shl ebp, 8
sub r12d, r15d
or ebp, eax
inc r12d
nop dword [rax]
test r13d, r13d
jle 0x1401893b9
inc ebx
cmp ebx, r13d
jle 0x1401893b9
mov ebx, 1
test rsi, rsi
je 0x1401893b6
mov dl, 0xa
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
cmp eax, 0xffffffff
jne 0x1401893b9
mov byte [r14], bl
mov rax, qword [str._cq_]
mov ecx, ebp
shr rcx, 0x12
and ecx, 0x3f
test rsi, rsi
je 0x1401893e0
movzx edx, byte [rcx + rax]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
cmp eax, 0xffffffff
jne 0x1401893e4
mov byte [r14], 1
shl ebp, 6
sub r12, 1
jne 0x140189390
test r15d, r15d
je 0x14018943c
dec r15d
test r13d, r13d
jle 0x14018941e
inc ebx
cmp ebx, r13d
jle 0x14018941e
mov ebx, 1
test rsi, rsi
je 0x14018941b
mov dl, 0xa
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
cmp eax, 0xffffffff
jne 0x140189423
mov byte [r14], bl
test rsi, rsi
je 0x140189433
mov dl, 0x3d
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
cmp eax, 0xffffffff
jne 0x140189437
mov byte [r14], 1
test r15d, r15d
jne 0x1401893f2
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140012db9
mov esi, 0
test al, al
jne 0x140189240
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret