Function at 0x140001480
Capabilities:
Encode data using xor
Open clipboard
Read clipboard data
Terminate process
Write clipboard data
Write file on windows

Disassembly:
push rbx
push rsi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov rbx, rcx
mov esi, r13d
mov r14d, r13d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400014ef
mov rdx, rbx
lea rcx, str.Error_opening_output_file__s_n
call fcn.140001020
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0xb8], r12
lea r12, [0x1400036d0]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rdi
nop
call qword [sym.imp.USER32.dll_GetClipboardSequenceNumber]
cmp r14d, eax
je 0x140001510
mov r14d, eax
nop
mov rcx, qword [0x140005618]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140001520
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
test rax, rax
je 0x140001510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
test rax, rax
je 0x1400016f4
mov r8d, 0xa
lea rdx, str.CLIPPY_SET
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400016d6
lea rax, [rsp + 0x58]
mov rcx, rbx
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, str.CLIPPY_SET__llX__X__X
call fcn.1400010e0
mov edx, dword [rsp + 0x48]
lea rcx, [rbx + 0x2e]
lea r8, [rsp + 0x40]
call fcn.1400012b0
mov rbx, qword [rsp + 0x40]
mov rbp, rax
mov r9, rbx
mov ecx, r13d
mov r10, rax
test rbx, rbx
je 0x1400015df
nop
movzx edx, byte [r10]
lea r10, [r10 + 1]
mov r8d, ecx
shr ecx, 8
xor r8, rdx
movzx edx, r8b
xor ecx, dword [r12 + rdx*4]
sub r9, 1
jne 0x1400015c0
mov rdx, qword [rsp + 0x50]
cmp ecx, dword [rsp + 0x58]
jne 0x140001714
mov r8d, dword [rsp + 0x48]
mov r9, rbx
mov dword [rsp + 0x20], ecx
lea rcx, str.RECEIVING__016llX__08X___08X__CRC:_08X_r
call fcn.140001020
mov rcx, qword [rsp + 0x50]
cmp rsi, rcx
je 0x140001627
mov r8, rcx
mov rdx, rsi
lea rcx, str._nWARNING:_Hole_in_file_stream__expected_offset__016llX_but_got__016llX_n
call fcn.140001020
mov rcx, qword [rsp + 0x50]
mov rax, rcx
lea r8, [rsp + 0x5c]
shr rax, 0x20
mov edx, ecx
xor r9d, r9d
mov dword [rsp + 0x5c], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r13
mov r8d, ebx
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400016ff
mov esi, dword [rsp + 0x60]
mov edx, 0xb
add rsi, qword [rsp + 0x50]
lea ecx, [rdx - 9]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140001786
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movsd xmm0, qword [str.CLIPPY_GET]
mov rbx, rax
movsd qword [rax], xmm0
movzx ecx, word [0x140003478]
mov word [rax + 8], cx
mov rcx, rdi
mov byte [rax + 0xa], r13b
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov r8d, 0xa
lea rdx, str.CLIPPY_DIE
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000179b
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140001510
lea rcx, str.ERROR_writing_to_file_n
call fcn.140001020
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str._nERROR:_bad_crc_for__016llX_n
call fcn.140001020
mov edx, 0xb
lea ecx, [rdx - 9]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140001786
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movsd xmm0, qword [str.CLIPPY_DIE]
mov rcx, rbx
movsd qword [rax], xmm0
movzx edx, word [0x1400033e0]
mov word [rax + 8], dx
mov byte [rax + 0xa], r13b
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ERROR_allocating_clipboard_handle_n
call fcn.140001020
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str._nreceived_quit_signal_n
call fcn.140001020
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3