Function at 0x10001b50
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov eax, dword [0x10050980]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
test al, 1
mov qword [r11 - 0x20], rdi
mov esi, r9d
mov rbp, r8
mov rdi, rdx
jne 0x10001ba9
or eax, 1
lea r8, [r11 + 0x20]
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [0x10050980], eax
xor eax, eax
lea rcx, [0x10050960]
mov byte [r11 + 0x20], al
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
lea rcx, [0x1003bf60]
call fcn.1003ad10
xor eax, eax
lea rdx, [rsp + 0x88]
mov rcx, rdi
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x88], al
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
xor ebx, ebx
xor ecx, ecx
test esi, esi
je 0x10001dc5
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
movzx eax, byte [rbp]
inc rcx
add esi, 0xffffffff
mov byte [rsp + rcx + 0x87], al
movzx r15d, byte [rsp + 0x8a]
movzx r13d, byte [rsp + 0x89]
movzx r14d, byte [rsp + 0x88]
inc ebx
inc rbp
cmp rcx, 3
jne 0x10001c99
movzx eax, r14b
movzx ecx, r14b
shr al, 2
and cl, 3
mov byte [rsp + 0x78], al
shl cl, 4
movzx eax, r13b
shr al, 4
add cl, al
movzx eax, r15b
mov byte [rsp + 0x79], cl
shr al, 6
movzx ecx, r13b
and cl, 0xf
shl cl, 2
add cl, al
movzx eax, r15b
and al, 0x3f
mov byte [rsp + 0x7a], cl
xor ebx, ebx
mov byte [rsp + 0x7b], al
mov rcx, qword [0x10050968]
test rcx, rcx
jne 0x10001c78
mov rax, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x10001c80
movzx eax, byte [rsp + rbx + 0x78]
add rax, rcx
movzx edx, byte [rax]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char____ptr64]
inc rbx
cmp rbx, 4
jl 0x10001c63
xor ebx, ebx
xor ecx, ecx
test esi, esi
jne 0x10001be3
test ebx, ebx
je 0x10001dc0
mov qword [rsp + 0x40], r12
movsxd rax, ebx
mov r12d, 3
cmp rax, r12
jge 0x10001ce9
mov r8, r12
lea rcx, [rsp + rax + 0x88]
xor edx, edx
sub r8, rax
call sub.msvcrt.dll_memset
mov r15b, byte [rsp + 0x8a]
mov r13b, byte [rsp + 0x89]
mov r14b, byte [rsp + 0x88]
movzx eax, r14b
and r14b, r12b
shr al, 2
shl r14b, 4
mov byte [rsp + 0x78], al
movzx eax, r13b
and r13b, 0xf
shr al, 4
shl r13b, 2
add r14b, al
movzx eax, r15b
and r15b, 0x3f
shr al, 6
mov byte [rsp + 0x79], r14b
mov byte [rsp + 0x7b], r15b
add r13b, al
lea eax, [rbx + 1]
test eax, eax
mov byte [rsp + 0x7a], r13b
jle 0x10001d6f
lea rsi, [rsp + 0x78]
mov ebp, eax
nop
nop
mov rcx, qword [0x10050968]
test rcx, rcx
jne 0x10001d55
mov rax, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x10001d5b
movzx eax, byte [rsi]
add rax, rcx
movzx edx, byte [rax]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char____ptr64]
inc rsi
dec rbp
jne 0x10001d40
cmp ebx, r12d
jge 0x10001d90
sub r12d, ebx
mov ebx, r12d
nop
nop
mov dl, 0x3d
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char____ptr64]
dec rbx
jne 0x10001d80
mov r12, qword [rsp + 0x40]
mov rax, rdi
mov r13, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rax, rdi
jmp 0x10001d98
mov rax, rdi
jmp 0x10001da7