Function at 0x1400222f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rsi, rdx
xor r13d, r13d
mov dword [rbp - 0x30], r13d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov r14d, r13d
mov qword [rbp - 0x10], r13
lea ecx, [r13 + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14002235a
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r13
jmp 0x1400224ec
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140022376
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
jmp 0x1400224e0
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
mov qword [rbp + 0x58], rax
test rax, rax
je 0x1400224c7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test r12, r12
je 0x1400224c7
lea rcx, str.Notepad_Binary_Text_Length
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140022446
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r13, rax
test rax, rax
je 0x1400224aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
test rax, rax
je 0x1400224aa
xor edi, edi
mov rbx, qword [rbp - 0x18]
cmp dword [rax], edi
jbe 0x14002243b
movzx ecx, byte [rdi + r12]
mov byte [rbp + 0x50], cl
cmp r14, rbx
je 0x140022418
mov byte [rbx], cl
inc rbx
mov qword [rbp - 0x18], rbx
jmp 0x140022430
lea r8, [rbp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140021870
mov r14, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
inc rdi
mov eax, dword [r15]
cmp rdi, rax
jb 0x140022400
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400224ae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
movsxd r15, eax
test eax, eax
jle 0x1400224aa
mov rdi, r13
mov rbx, qword [rbp - 0x18]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + r12]
mov byte [rbp + 0x50], al
cmp r14, rbx
je 0x140022488
mov byte [rbx], al
inc rbx
mov qword [rbp - 0x18], rbx
jmp 0x1400224a0
lea r8, [rbp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140021870
mov r14, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
inc rdi
cmp rdi, r15
jl 0x140022470
jmp 0x1400224ae
mov rbx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r13d, r13d
jmp 0x1400224cb
mov rbx, qword [rbp - 0x18]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [rbp - 0x20]
mov qword [rsi], rax
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
xorps xmm0, xmm0
mov qword [rbp - 0x10], r13
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x30], 1
mov rax, rsi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret