Function at 0x140045a10
Capabilities:
Open clipboard
Terminate process
Write clipboard data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
xor r12d, r12d
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
test eax, eax
je 0x140045d56
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x1c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140045a60
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x140045d68
mov qword [rsp + 0x38], 7
cmp rbx, 8
jae 0x140045ab0
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x1c]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r12w
jmp 0x140045b62
mov rax, rbx
or rax, 7
cmp rax, rsi
jbe 0x140045acc
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140045afe
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140045d6e
add rcx, rcx
cmp rcx, 0x1000
jb 0x140045b2a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140045d6e
mov rcx, rax
call fcn.14004c70c
test rax, rax
je 0x140045d4a
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140045b3c
test rcx, rcx
je 0x140045b39
call fcn.14004c70c
mov rdi, rax
jmp 0x140045b3c
mov rdi, r12
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x1c]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r12w
lea rcx, [rsp + 0x60]
call fcn.1400463e0
nop
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140046880
mov rbx, qword [0x1400d1b20]
mov rsi, qword [0x1400d1b28]
cmp rbx, rsi
je 0x140045bf9
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
cmp r14, 0x10
cmovae rdx, rdi
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140045bde
mov rcx, qword [rbx]
cmp r8, r15
jne 0x140045bf0
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140045ca9
add rbx, 0x20
cmp rbx, rsi
jne 0x140045bc0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140045ca0
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rcx, [rsp + 0x40]
call fcn.140041e10
lea rdx, [rax + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140045c9a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r10, rax
test rax, rax
je 0x140045c9a
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x40]
call fcn.1400466a0
lea rdx, [rbp + 0x128]
mov rcx, rax
call fcn.140045d80
mov r9, qword [rax]
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x40]
call fcn.1400466c0
mov r8, r10
mov rdx, r9
mov rcx, qword [rax]
call fcn.140046c40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
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
cmp rbx, rsi
je 0x140045bf9
mov byte [0x1400d1b98], 1
cmp r14, 0x10
jb 0x140045cf3
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140045ceb
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140045ceb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14004ca68
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x60]
call fcn.1400462f0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140045d56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045d51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140045d51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004ca68
add rsp, 0x1e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400322f0
int3
call fcn.140001880
int3