Function at 0x140003164
Capabilities:
Delete file
Encode data using xor
Open clipboard
Read clipboard data
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov rax, qword [0x140052080]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov r13d, edx
mov r14, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
xor r15d, r15d
test eax, eax
je 0x1400034ec
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea ebx, [r15 + 2]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400034e6
mov ecx, ebx
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140003403
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r12, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r15, rax
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetObjectA]
mov eax, 0x4d42
mov word [rbp + 0x80], ax
mov r8d, dword [rsp + 0x50]
mov ecx, r8d
mov edx, dword [rsp + 0x4c]
imul ecx, edx
lea ecx, [rcx*4 + 0x36]
mov dword [rbp + 0x82], ecx
xor ecx, ecx
mov dword [rbp + 0x86], ecx
mov dword [rbp + 0x8a], 0x36
mov dword [rbp + 0x90], 0x28
mov dword [rbp + 0x94], edx
mov dword [rbp + 0x98], r8d
lea esi, [rcx + 1]
mov word [rbp + 0x9c], si
movzx eax, word [rsp + 0x5a]
mov word [rbp + 0x9e], ax
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rcx
mov qword [rbp + 0xb0], rcx
mov eax, dword [rsp + 0x54]
imul eax, r8d
movsxd rcx, eax
call fcn.140014364
mov rsi, rax
and dword [rsp + 0x30], 0
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, dword [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDIBits]
xor ebx, ebx
mov rcx, rdi
test r13d, r13d
je 0x14000338e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14000ec1c
nop
lea r8d, [rbx + 0xe]
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.14000ee38
lea r8d, [rbx + 0x28]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.14000ee38
mov eax, dword [rsp + 0x54]
imul eax, dword [rsp + 0x50]
movsxd r8, eax
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000ee38
lea rcx, [rsp + 0x70]
call fcn.14000eb00
nop
lea rcx, [rbp + 0x18]
call fcn.14000eb9c
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.14001397c
nop
jmp 0x1400033e2
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 0xe]
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 0x28]
lea rdx, [rbp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x54]
imul r8d, dword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rsi
call fcn.140014320
jmp 0x1400034dd
mov esi, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140003433
mov ecx, esi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r8, rax
mov rdx, rbx
jmp 0x1400034cc
mov ebx, 0xd
mov ecx, ebx
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140003448
mov ecx, ebx
jmp 0x140003416
mov dword [rsp + 0x40], 0xddc7ac0b
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov ecx, 0x8f0
mov eax, dword [rcx + r14]
mov ebx, 0x944
test sil, al
jne 0x140003492
or eax, esi
mov dword [rcx + r14], eax
mov word [r14 + rbx + 4], 0x145
mov eax, dword [rsp + 0x40]
mov dword [r14 + rbx], eax
lea rcx, [0x14003cbdc]
call fcn.140014440
nop
lea rdx, [r14 + rbx]
cmp byte [rdx + 5], r15b
je 0x1400034c6
mov r9, r15
mov cl, r9b
and cl, 7
shl cl, 3
movabs r8, 0x79c3b345918bf945
shr r8, cl
xor byte [rdx + r9], r8b
add r9, rsi
cmp r9, 5
jb 0x14000349f
mov byte [rdx + 5], r15b
mov r8d, 4
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.USER32.dll_CloseClipboard]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.140014300
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret