Function at 0x1daba3ada
Capabilities:
Delete file
Open clipboard
Read clipboard data
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x2c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], rcx
mov dword [rbp + 0x268], edx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
setne al
test al, al
je 0x1daba40fe
mov rax, qword [rbp + 0x260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov rax, qword [rbp + 0x260]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x238], 0xffffffffffffffff
je 0x1daba40f5
mov ecx, 2
mov rax, qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call rax
test eax, eax
setne al
test al, al
je 0x1daba3ea1
mov ecx, 2
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp + 0x220], rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetDC]
call rax
mov qword [rbp + 0x218], rax
mov rax, qword [rbp + 0x218]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_CreateCompatibleDC]
call rax
mov qword [rbp + 0x210], rax
mov rdx, qword [rbp + 0x220]
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SelectObject]
call rax
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x220]
mov r8, rdx
mov edx, 0x20
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_GetObjectA]
call rax
mov word [rbp + 0x1f8], 0x4d42
mov edx, dword [rbp - 0x3c]
mov eax, dword [rbp - 0x38]
imul eax, edx
shl eax, 2
add eax, 0x36
mov dword [rbp + 0x1fa], eax
mov word [rbp + 0x1fe], 0
mov word [rbp + 0x200], 0
mov dword [rbp + 0x202], 0x36
mov dword [rbp - 0x20], 0x28
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x18], eax
mov word [rbp - 0x14], 1
movzx eax, word [rbp - 0x2e]
mov word [rbp - 0x12], ax
mov dword [rbp - 0x10], 0
mov dword [rbp - 0xc], 0
mov dword [rbp - 8], 0
mov dword [rbp - 4], 0
mov dword [rbp], 0
mov dword [rbp + 4], 0
mov edx, dword [rbp - 0x34]
mov eax, dword [rbp - 0x38]
imul eax, edx
cdqe
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp + 0x208], rax
mov eax, dword [rbp - 0x38]
mov r8d, eax
mov rdx, qword [rbp + 0x220]
mov rax, qword [rbp + 0x210]
mov dword [rsp + 0x30], 0
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x208]
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_GetDIBits]
call rax
cmp dword [rbp + 0x268], 0
je 0x1daba3daf
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov rdx, qword [rbp + 0x260]
lea rax, [rbp + 0x10]
mov r8d, 0x10
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream_char_const__std::_Ios_Openmode_
lea rdx, [rbp + 0x1f8]
lea rax, [rbp + 0x10]
mov r8d, 0xe
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
lea rdx, [rbp - 0x20]
lea rax, [rbp + 0x10]
mov r8d, 0x28
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov edx, dword [rbp - 0x34]
mov eax, dword [rbp - 0x38]
imul eax, edx
movsxd rcx, eax
mov rdx, qword [rbp + 0x208]
lea rax, [rbp + 0x10]
mov r8, rcx
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
jmp 0x1daba3e54
lea rdx, [rbp + 0x1f8]
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0xe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x28
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov edx, dword [rbp - 0x34]
mov eax, dword [rbp - 0x38]
imul eax, edx
mov ecx, eax
mov rdx, qword [rbp + 0x208]
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x218]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_ReleaseDC]
call rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_DeleteDC]
call rax
cmp qword [rbp + 0x208], 0
je 0x1daba40f5
mov rax, qword [rbp + 0x208]
mov rcx, rax
call sym.operator_delete___void_
jmp 0x1daba40f5
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call rax
test eax, eax
setne al
test al, al
je 0x1daba3fa2
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp + 0x228], rax
cmp dword [rbp + 0x268], 0
je 0x1daba3f33
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalSize]
call rax
mov ecx, eax
mov rdx, qword [rbp + 0x228]
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1daba40f5
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov rdx, qword [rbp + 0x260]
lea rax, [rbp + 0x10]
mov r8d, 0x10
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream_char_const__std::_Ios_Openmode_
mov rdx, qword [rbp + 0x228]
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
jmp 0x1daba40f5
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call rax
test eax, eax
setne al
test al, al
je 0x1daba40a0
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp + 0x230], rax
cmp dword [rbp + 0x268], 0
je 0x1daba4034
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalSize]
call rax
mov ecx, eax
mov rdx, qword [rbp + 0x230]
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1daba40f5
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x260]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov rdx, qword [rbp + 0x260]
lea rax, [rbp + 0x10]
mov r8d, 0x10
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream_char_const__std::_Ios_Openmode_
mov rdx, qword [rbp + 0x230]
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
jmp 0x1daba40f5
lea rax, [rbp + 0x207]
mov rcx, rax
call sym.f_dc_char_const__int_::lambda__1::operator_____const
mov rcx, rax
call method.ay::obfuscated_data_5ull__5756549843169046811ull__char_.operator_char__
mov rdx, rax
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x1daba4157
add rsp, 0x2c8
pop rbx
pop rbp
ret