Function at 0x402e30
Capabilities:
Encode data using base64 via winapi

Disassembly:
sub rsp, 0x108
mov rax, rcx
mov r8, rcx
mov qword [rsp + 0x100], r8
mov qword [rsp + 0xf8], rdx
mov dword [rsp + 0xf4], 0
mov rdx, qword [rsp + 0xf8]
mov qword [rsp + 0x78], rcx
mov rcx, rdx
mov qword [rsp + 0x70], rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xf8]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.size___const
xor r9d, r9d
shl rax, 1
mov dword [rsp + 0xe4], eax
mov rcx, qword [rsp + 0xe8]
mov edx, dword [rsp + 0xe4]
mov r8d, 0x40000001
lea r10, [rsp + 0xf4]
mov qword [rsp + 0x20], r10
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp eax, 0
jne 0x402f29
lea rax, [rsp + 0xe0]
mov rcx, rax
mov qword [rsp + 0x68], rax
call fcn.0046b610
lea rdx, [0x004c6142]
mov rcx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x68]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x402ef6
lea rcx, [rsp + 0xe0]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x403165
mov eax, dword [rsp + 0xf4]
mov ecx, 2
mul rcx
seto r8b
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov byte [rsp + 0x67], r8b
call sym.operator_new___unsigned_long_long_
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0xe4]
mov rax, qword [rsp + 0xc8]
mov edx, r9d
mov r8d, 0x40000001
mov r9, rax
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
cmp eax, 0
jne 0x403023
mov rax, qword [rsp + 0xc8]
cmp rax, 0
mov qword [rsp + 0x58], rax
je 0x402fc0
mov rax, qword [rsp + 0x58]
mov rcx, rax
call sym.operator_delete___void_
lea rax, [rsp + 0xc0]
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.0046b610
lea rdx, [0x004c6142]
mov rcx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x50]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x402ff0
lea rcx, [rsp + 0xc0]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x403165
mov rdx, qword [rsp + 0xc8]
lea rax, [rsp + 0x98]
mov rcx, rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
call fcn.0046b610
lea rcx, [rsp + 0xa0]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x403061
lea rcx, [rsp + 0x98]
call sym.std::allocator_wchar_t_::allocator__
mov rax, qword [rsp + 0xc8]
cmp rax, 0
mov qword [rsp + 0x38], rax
je 0x403092
mov rax, qword [rsp + 0x38]
mov rcx, rax
call sym.operator_delete___void_
lea rax, [rsp + 0xa0]
mov rcx, rax
mov qword [rsp + 0x30], rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.begin__
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x30]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.end__
mov qword [rsp + 0x88], rax
mov word [rsp + 0x86], 0x3d
mov word [rsp + 0x84], 0x2d
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x86]
lea r9, [rsp + 0x84]
call method.void_std::replace___gnu_cxx::__normal_iterator_wchar_t__std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std.allocator_wchar_t_______wchar_t____gnu_cxx::__normal_iterator_wchar_t__std::__cxx11::basic_string_wchar_t__std::char_traits
jmp 0x4030ff
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0xa0]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____
lea rcx, [rsp + 0xa0]
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x403165
mov rax, qword [rsp + 0x70]
add rsp, 0x108
ret