Function at 0x140161090
Capabilities:
Log keystrokes via polling
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov r14, rcx
cmp qword [rdx + 0x20], 0xd
jne 0x140161156
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140161156
cmp byte [r14 + 0x5ca], 0
je 0x1401613bd
cmp byte [r14 + 0x5cb], 0
je 0x14016111a
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14016112e
cmp byte [r14 + 0x5cb], 0
jne 0x1401613bd
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1401613bd
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x1401613dd
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [rsi + 0x2d]
mov rdx, r14
call fcn.14014f2e0
jmp 0x1401613dd
cmp byte [r14 + 0x5d0], 0
je 0x1401613bd
cmp qword [r15 + 0x20], 0x56
jne 0x1401613bd
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1401613bd
mov edi, 7
mov qword [rbp - 0x10], rdi
xor esi, esi
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x28], si
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401612c9
lea ecx, [rdi + 6]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140161242
lea ecx, [rdi + 6]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401612c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x1401612c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalSize]
shr rax, 1
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], si
mov r8, rax
mov rdx, r12
lea rcx, [rbp - 0x48]
call fcn.14007ece0
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp - 0x28]
call fcn.14007ece0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
lea rcx, [rbp - 0x48]
call fcn.14007ec70
jmp 0x1401612c3
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1401612c3
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401612c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x1401612c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalSize]
movdqa xmm0, xmmword [0x1404156a0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], sil
mov r8, rax
mov rdx, r12
lea rcx, [rbp - 0x48]
call fcn.14007dce0
nop
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.14017ad00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
lea rcx, [rbp - 0x48]
call fcn.14007ea30
call qword [sym.imp.USER32.dll_CloseClipboard]
cmp qword [rbp - 0x18], 0
je 0x140161383
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x48], si
lea rbx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rbx, qword [rbp - 0x28]
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
lea rcx, [rcx + rax*2]
cmp rbx, rcx
je 0x14016135e
movzx r9d, word [rbx]
lea eax, [r9 - 0x30]
cmp ax, 9
ja 0x140161358
mov rcx, qword [rbp - 0x38]
cmp rcx, rdi
jae 0x14016134b
lea rax, [rcx + 1]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
cmp rdi, 8
cmovae rax, qword [rbp - 0x48]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
mov rdi, qword [rbp - 0x30]
add rbx, 2
jmp 0x1401612f0
lea rcx, [rbp - 0x48]
call fcn.140092800
mov rdi, qword [rbp - 0x30]
add rbx, 2
jmp 0x1401612f0
cmp qword [rbp - 0x38], 0
jne 0x140161370
lea rcx, [rbp - 0x48]
call fcn.14007ec70
jmp 0x1401613b2
lea rcx, [rbp - 0x48]
call fcn.140162d40
nop
lea rcx, [rbp - 0x48]
call fcn.14007ec70
mov rax, qword [r14]
mov qword [rsp + 0x20], rsi
mov r9, qword [r15 + 0x28]
mov r8, qword [r15 + 0x20]
mov edx, 0x100
mov rcx, r14
call qword [rax + 0x3c0]
cmp qword [rbp - 0x18], 0
je 0x1401613b2
lea rcx, [rbp - 0x28]
call fcn.140162d40
nop
lea rcx, [rbp - 0x28]
call fcn.14007ec70
jmp 0x1401613dd
mov rax, qword [r14]
xor esi, esi
mov qword [rsp + 0x20], rsi
mov r9, qword [r15 + 0x28]
mov r8, qword [r15 + 0x20]
mov edx, 0x100
mov rcx, r14
call qword [rax + 0x3c0]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret