Function at 0x140022290
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 0x1400222fa
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 0x14002248c
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140022316
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
jmp 0x140022480
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
mov qword [rbp + 0x58], rax
test rax, rax
je 0x140022467
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 0x140022467
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 0x1400223e6
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r13, rax
test rax, rax
je 0x14002244a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
test rax, rax
je 0x14002244a
xor edi, edi
mov rbx, qword [rbp - 0x18]
cmp dword [rax], edi
jbe 0x1400223db
movzx ecx, byte [rdi + r12]
mov byte [rbp + 0x50], cl
cmp r14, rbx
je 0x1400223b8
mov byte [rbx], cl
inc rbx
mov qword [rbp - 0x18], rbx
jmp 0x1400223d0
lea r8, [rbp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140021810
mov r14, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
inc rdi
mov eax, dword [r15]
cmp rdi, rax
jb 0x1400223a0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x14002244e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
movsxd r15, eax
test eax, eax
jle 0x14002244a
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 0x140022428
mov byte [rbx], al
inc rbx
mov qword [rbp - 0x18], rbx
jmp 0x140022440
lea r8, [rbp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140021810
mov r14, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
inc rdi
cmp rdi, r15
jl 0x140022410
jmp 0x14002244e
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 0x14002246b
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