Function at 0x140022a40
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, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov r12, rdx
xor r15d, r15d
mov dword [rbp - 0x40], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov esi, r15d
mov qword [rbp - 0x10], r15
lea ecx, [r15 + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x140022aad
mov qword [r12], r15
mov qword [r12 + 8], r15
mov qword [r12 + 0x10], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
jmp 0x140022e5b
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140022acc
mov qword [r12], r15
mov qword [r12 + 8], r15
mov qword [r12 + 0x10], r15
jmp 0x140022e4f
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140022e33
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
mov qword [rbp + 0x58], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test r14, r14
je 0x140022e33
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 0x140022cb5
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x140022e12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r13, rax
test rax, rax
je 0x140022e12
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
cmp dword [rax], 0
jbe 0x140022ca6
nop word [rax + rax]
movzx r14d, byte [r15 + r14]
mov byte [rbp + 0x50], r14b
lea rax, [rbp + 0x50]
cmp rax, rbx
jae 0x140022c08
lea rax, [rbp + 0x50]
cmp rdi, rax
ja 0x140022c08
lea r14, [rbp + 0x50]
sub r14, rdi
cmp rbx, rsi
jne 0x140022bfa
mov rax, rsi
sub rax, rbx
cmp rax, 1
jae 0x140022bfa
mov rax, rdi
sub rax, rbx
dec rax
cmp rax, 1
jb 0x140022c8c
sub rbx, rdi
inc rbx
sub rsi, rdi
mov rax, rsi
shr rax, 1
mov rcx, rax
not rcx
add rax, rsi
xor edx, edx
cmp rcx, rsi
cmovae rdx, rax
cmp rdx, rbx
cmovae rbx, rdx
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1400225e0
mov rsi, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
test rbx, rbx
je 0x140022c70
movzx eax, byte [r14 + rdi]
mov byte [rbx], al
jmp 0x140022c70
cmp rbx, rsi
jne 0x140022c68
mov rax, rsi
sub rax, rbx
cmp rax, 1
jae 0x140022c68
mov rax, rdi
sub rax, rbx
dec rax
cmp rax, 1
jb 0x140022c99
sub rbx, rdi
inc rbx
sub rsi, rdi
mov rax, rsi
shr rax, 1
mov rcx, rax
not rcx
add rax, rsi
xor edx, edx
cmp rcx, rsi
cmovae rdx, rax
cmp rdx, rbx
cmovae rbx, rdx
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1400225e0
mov rsi, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
test rbx, rbx
je 0x140022c70
mov byte [rbx], r14b
inc rbx
mov qword [rbp - 0x18], rbx
inc r15
mov eax, dword [r13]
cmp r15, rax
jae 0x140022ca6
mov r14, qword [rbp + 0x58]
jmp 0x140022b70
lea rcx, str.vector_T__too_long
call fcn.140145858
int3
lea rcx, str.vector_T__too_long
call fcn.140145858
int3
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140022e1a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
movsxd r13, eax
test eax, eax
jle 0x140022e12
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
nop dword [rax + rax]
movzx r14d, byte [r15 + r14]
mov byte [rbp + 0x50], r14b
lea rax, [rbp + 0x50]
cmp rax, rbx
jae 0x140022d78
lea rax, [rbp + 0x50]
cmp rdi, rax
ja 0x140022d78
lea r14, [rbp + 0x50]
sub r14, rdi
cmp rbx, rsi
jne 0x140022d6a
mov rax, rsi
sub rax, rbx
cmp rax, 1
jae 0x140022d6a
mov rax, rdi
sub rax, rbx
dec rax
cmp rax, 1
jb 0x140022df8
sub rbx, rdi
inc rbx
sub rsi, rdi
mov rax, rsi
shr rax, 1
mov rcx, rax
not rcx
add rax, rsi
xor edx, edx
cmp rcx, rsi
cmovae rdx, rax
cmp rdx, rbx
cmovae rbx, rdx
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1400225e0
mov rsi, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
test rbx, rbx
je 0x140022de0
movzx eax, byte [r14 + rdi]
mov byte [rbx], al
jmp 0x140022de0
cmp rbx, rsi
jne 0x140022dd8
mov rax, rsi
sub rax, rbx
cmp rax, 1
jae 0x140022dd8
mov rax, rdi
sub rax, rbx
dec rax
cmp rax, 1
jb 0x140022e05
sub rbx, rdi
inc rbx
sub rsi, rdi
mov rax, rsi
shr rax, 1
mov rcx, rax
not rcx
add rax, rsi
xor edx, edx
cmp rcx, rsi
cmovae rdx, rax
cmp rdx, rbx
cmovae rbx, rdx
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1400225e0
mov rsi, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
test rbx, rbx
je 0x140022de0
mov byte [rbx], r14b
inc rbx
mov qword [rbp - 0x18], rbx
inc r15
cmp r15, r13
jge 0x140022e1a
mov r14, qword [rbp + 0x58]
jmp 0x140022ce0
lea rcx, str.vector_T__too_long
call fcn.140145858
int3
lea rcx, str.vector_T__too_long
call fcn.140145858
int3
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r15d, r15d
jmp 0x140022e3b
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov qword [r12], rdi
mov qword [r12 + 8], rbx
mov qword [r12 + 0x10], rsi
xorps xmm0, xmm0
mov qword [rbp - 0x10], r15
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x40], 1
mov rax, r12
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret