Function at 0x1400a78b0
Capabilities:
Log keystrokes

Disassembly:
push rbx
push r12
push r15
sub rsp, 0x40
movzx r12d, dl
mov rbx, rcx
test rcx, rcx
je 0x1400a7bd1
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14012d658]
mov r15d, eax
je 0x1400a78ed
mov rcx, rbx
call fcn.1400a9440
test al, al
jne 0x1400a7bd1
mov qword [rsp + 0x68], rbp
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1400a791b
test r12b, r12b
jne 0x1400a791b
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp rbx, rbp
jne 0x1400a7932
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x40
pop r15
pop r12
pop rbx
ret
cmp byte [0x14012bcbe], 0
mov qword [rsp + 0x78], rdi
jne 0x1400a79a3
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x1401251d0], 0
mov ecx, 0xa
call fcn.1400016f0
mov dword [0x1401251d0], 1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
cmp rax, rbx
jne 0x1400a7982
mov rdi, rbx
jmp 0x1400a7bba
cmp rdi, rbp
je 0x1400a79a3
mov edx, 4
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
cmp rbx, rax
jne 0x1400a79a3
test rdi, rdi
jne 0x1400a7bba
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x38], r13
xor r13b, r13b
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x60], r13b
test rbp, rbp
je 0x1400a7a25
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r14d, eax
test eax, eax
je 0x1400a7a2a
cmp dword [0x14012d658], eax
je 0x1400a7a00
mov rcx, rbp
call fcn.1400a9440
test al, al
jne 0x1400a7a00
mov ecx, dword [0x14012d658]
mov r8d, 1
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne r13b
test r15d, r15d
je 0x1400a7a2a
cmp r14d, r15d
je 0x1400a7a2a
mov r8d, 1
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [rsp + 0x60]
jmp 0x1400a7a2a
mov r14d, dword [rsp + 0x60]
xor esi, esi
nop dword [rax]
movzx eax, byte [0x14012bcbe]
cmp esi, eax
jne 0x1400a7a6a
cmp byte [0x14012ef3e], 0
jne 0x1400a7a6a
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d450
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov byte [0x14012ef3e], 1
mov ecx, 1
call fcn.14001fc90
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x1401251d0], 0
mov ecx, 0xa
call fcn.1400016f0
mov dword [0x1401251d0], 1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
cmp rax, rbx
je 0x1400a7b68
cmp rax, rbp
je 0x1400a7ac9
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
cmp rbx, rax
jne 0x1400a7ac9
test rdi, rdi
jne 0x1400a7b6b
inc esi
cmp esi, 5
jl 0x1400a7a30
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov ecx, 2
call fcn.14001fc90
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov ecx, 2
call fcn.14001fc90
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 1
mov dword [0x1401251d0], 0
mov ecx, 0xa
call fcn.1400016f0
mov dword [0x1401251d0], 1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
cmp rax, rbx
je 0x1400a7b68
cmp rax, rbp
je 0x1400a7b64
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
cmp rbx, rax
je 0x1400a7b6b
xor edi, edi
jmp 0x1400a7b6b
mov rdi, rbx
mov rsi, qword [rsp + 0x70]
test r13b, r13b
mov r13, qword [rsp + 0x38]
je 0x1400a7b8c
mov ecx, dword [0x14012d658]
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [rsp + 0x60], 0
je 0x1400a7ba2
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14, qword [rsp + 0x30]
test rdi, rdi
je 0x1400a7bba
test r12b, r12b
jne 0x1400a7bba
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop r15
pop r12
pop rbx
ret