Function at 0x231944f7d
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 0x231945580
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 0x231945577
mov ecx, 2
mov rax, qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call rax
test eax, eax
setne al
test al, al
je 0x231945344
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 + 0x1fa], 0x4d42
mov edx, dword [rbp - 0x3c]
mov eax, dword [rbp - 0x38]
imul eax, edx
shl eax, 2
add eax, 0x36
mov dword [rbp + 0x1fc], eax
mov word [rbp + 0x200], 0
mov word [rbp + 0x202], 0
mov dword [rbp + 0x204], 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 0x231945252
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 + 0x1fa]
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 0x2319452f7
lea rdx, [rbp + 0x1fa]
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 0x231945577
mov rax, qword [rbp + 0x208]
mov rcx, rax
call sym.operator_delete___void_
jmp 0x231945577
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call rax
test eax, eax
setne al
test al, al
je 0x231945445
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp + 0x228], rax
cmp dword [rbp + 0x268], 0
je 0x2319453d6
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 0x231945577
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 0x231945577
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call rax
test eax, eax
setne al
test al, al
je 0x231945543
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp + 0x230], rax
cmp dword [rbp + 0x268], 0
je 0x2319454d7
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 0x231945577
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 0x231945577
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 ecx, 0x103
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x2319455d9
add rsp, 0x2c8
pop rbx
pop rbp
ret