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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x428
mov rax, qword [0x18007f080]
xor rax, rsp
mov qword [rsp + 0x418], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180056e36
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x180056e30
mov ecx, 2
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x180056c5d
mov ecx, 2
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SelectObject]
lea r8, [rsp + 0x70]
mov edx, 0x20
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_GetObjectA]
mov eax, 0x4d42
mov word [rsp + 0x3e0], ax
mov eax, dword [rsp + 0x74]
imul eax, dword [rsp + 0x78]
shl eax, 2
cdqe
add rax, 0x36
mov dword [rsp + 0x3e2], eax
xor eax, eax
mov word [rsp + 0x3e6], ax
xor eax, eax
mov word [rsp + 0x3e8], ax
mov dword [rsp + 0x3ea], 0x36
mov dword [rsp + 0x3f0], 0x28
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x3f4], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x3f8], eax
mov eax, 1
mov word [rsp + 0x3fc], ax
movzx eax, word [rsp + 0x82]
mov word [rsp + 0x3fe], ax
mov dword [rsp + 0x400], 0
mov dword [rsp + 0x404], 0
mov dword [rsp + 0x408], 0
mov dword [rsp + 0x40c], 0
mov dword [rsp + 0x410], 0
mov dword [rsp + 0x414], 0
mov eax, dword [rsp + 0x7c]
imul eax, dword [rsp + 0x78]
cdqe
mov rcx, rax
call fcn.180015a84
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x3f0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [rsp + 0x438], 0
je 0x180056ba6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0xb0]
call fcn.180008070
nop
mov r8d, 0xe
lea rdx, [rsp + 0x3e0]
lea rcx, [rsp + 0xb0]
call fcn.180008450
mov r8d, 0x28
lea rdx, [rsp + 0x3f0]
lea rcx, [rsp + 0xb0]
call fcn.180008450
mov eax, dword [rsp + 0x7c]
imul eax, dword [rsp + 0x78]
cdqe
mov r8, rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.180008450
lea rcx, [rsp + 0xb0]
call fcn.180007f90
nop
lea rcx, [rsp + 0xb0]
call fcn.1800038c0
jmp 0x180056c23
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xe
lea rdx, [rsp + 0x3e0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x28
lea rdx, [rsp + 0x3f0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x7c]
imul eax, dword [rsp + 0x78]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.180015a40
jmp 0x180056e30
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x180056d36
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x438], 0
je 0x180056cc1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180056d31
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x1c0]
call fcn.180008070
nop
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x1c0]
call fcn.1800114a0
lea rcx, [rsp + 0x1c0]
call fcn.180007f90
nop
lea rcx, [rsp + 0x1c0]
call fcn.1800038c0
jmp 0x180056e30
mov ecx, 0xd
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x180056e0c
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0x438], 0
je 0x180056d9a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180056e0a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x2d0]
call fcn.180008070
nop
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x2d0]
call fcn.1800114a0
lea rcx, [rsp + 0x2d0]
call fcn.180007f90
nop
lea rcx, [rsp + 0x2d0]
call fcn.1800038c0
jmp 0x180056e30
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.USER32.dll_CloseClipboard]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x418]
xor rcx, rsp
call fcn.180015a20
add rsp, 0x428
ret