Function at 0x1400e0830
Capabilities:
Check for foreground window switch
Enumerate gui resources
Log keystrokes

Disassembly:
push rbx
push rbp
mov eax, 0x11d18
call fcn.1400f7000
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx ebp, dl
mov rbx, rcx
je 0x1400e0c67
xor edx, edx
call fcn.1400e0c80
test eax, eax
jne 0x1400e0866
add rsp, 0x11d18
pop rbp
pop rbx
ret
mov qword [rsp + 0x11d38], rsi
mov qword [rsp + 0x11d40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x14012f240]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400e0d40
xor edi, edi
test rax, rax
je 0x1400e08a2
mov ecx, edi
mov dword [0x140134fe0], ecx
jmp 0x1400e08a8
mov ecx, dword [0x140134fe0]
mov dword [rsp + 0x40], edi
lea rax, [0x1400f97e4]
mov qword [rsp + 0x1058], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x18a0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x18d0], xmm1
mov dword [rsp + 0x189c], edi
test bpl, bpl
je 0x1400e08eb
mov byte [rsp + 0x1899], dil
test ecx, ecx
je 0x1400e08f3
mov byte [rsp + 0x1899], 1
mov rax, qword [0x140134fd8]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x18b0], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x18b8], ecx
lea rcx, [0x1400e12c0]
mov qword [rsp + 0x18c0], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x18a0]
test rax, rax
je 0x1400e0c1f
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, [0x1400df1c0]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rsp + 0x38]
mov r8, qword [0x140134fd8]
test rbx, rbx
je 0x1400e09ad
movsxd rcx, dword [0x140134fe0]
mov edx, edi
mov r9, qword [rsp + 0x18a0]
test ecx, ecx
jle 0x1400e098f
mov rax, r8
nop dword [rax]
cmp qword [rax], r9
je 0x1400e09a3
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400e0980
cmp ecx, 0x1f4
jge 0x1400e09a3
mov qword [r8 + rcx*8], r9
inc ecx
mov dword [0x140134fe0], ecx
mov qword [rsp + 0x18a0], rbx
jmp 0x1400e09bb
mov rbx, qword [rsp + 0x18a0]
mov ecx, dword [0x140134fe0]
test rbx, rbx
je 0x1400e0bb9
xor edx, edx
mov qword [rsp + 0x11d48], r12
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140136030]
mov r12d, eax
je 0x1400e09f2
mov rcx, rbx
call fcn.1400df220
test al, al
jne 0x1400e0b9c
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1400e0a16
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp rbx, rbp
je 0x1400e0b9c
cmp byte [0x140132b04], dil
jne 0x1400e0a3c
mov rdx, rbp
mov rcx, rbx
call fcn.1400dd9c0
test rax, rax
jne 0x1400e0b9c
mov qword [rsp + 0x11d10], r13
xor r13b, r13b
mov qword [rsp + 0x11d08], r14
mov qword [rsp + 0x11d00], r15
mov byte [rsp + 0x11d30], dil
test rbp, rbp
je 0x1400e0acd
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r15d, eax
test eax, eax
je 0x1400e0ad5
cmp dword [0x140136030], eax
je 0x1400e0aa5
mov rcx, rbp
call fcn.1400df220
test al, al
jne 0x1400e0aa5
mov ecx, dword [0x140136030]
mov r8d, 1
mov edx, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne r13b
test r12d, r12d
je 0x1400e0ad5
cmp r15d, r12d
je 0x1400e0ad5
mov r8d, 1
mov edx, r12d
mov ecx, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [rsp + 0x11d30]
jmp 0x1400e0ad5
mov r15d, dword [rsp + 0x11d30]
mov esi, edi
nop word [rax + rax]
mov rdx, rbp
mov rcx, rbx
call fcn.1400dd9c0
mov r14, rax
test rax, rax
jne 0x1400e0b46
inc esi
cmp esi, 5
jl 0x1400e0ae0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], dil
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov ecx, 2
call fcn.1400215d0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], dil
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov ecx, 2
call fcn.1400215d0
mov rdx, rbp
mov rcx, rbx
call fcn.1400dd9c0
mov r14, rax
test r13b, r13b
mov r13, qword [rsp + 0x11d10]
je 0x1400e0b65
mov ecx, dword [0x140136030]
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [rsp + 0x11d30], dil
je 0x1400e0b7e
xor r8d, r8d
mov edx, r12d
mov ecx, r15d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r15, qword [rsp + 0x11d00]
test r14, r14
mov r14, qword [rsp + 0x11d08]
je 0x1400e0b9c
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov r8, qword [0x140134fd8]
mov ecx, dword [0x140134fe0]
mov rbx, qword [rsp + 0x18a0]
mov r12, qword [rsp + 0x11d48]
test ecx, ecx
jle 0x1400e0bcf
mov rax, r8
cmp qword [rax], rbx
je 0x1400e0be6
inc edi
add rax, 8
cmp edi, ecx
jl 0x1400e0bc0
cmp ecx, 0x1f4
jge 0x1400e0be6
movsxd rax, ecx
inc ecx
mov dword [0x140134fe0], ecx
mov qword [r8 + rax*8], rbx
mov rax, qword [0x14012f240]
cmp dword [rax + 0x74], 0xffffffff
jle 0x1400e0c57
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140136030], eax
mov rcx, qword [0x14012f240]
mov ecx, dword [rcx + 0x74]
je 0x1400e0c13
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400e0c57
mov edx, 1
call fcn.140001b00
jmp 0x1400e0c57
mov ecx, dword [0x140134fe0]
test ecx, ecx
je 0x1400e0c57
cmp ecx, 1
mov dword [0x140134fe0], edi
setg cl
test cl, cl
je 0x1400e0c57
mov rcx, qword [0x140134fd8]
xor edx, edx
mov dword [0x140134fe0], 1
mov qword [rcx], rsi
mov rcx, rbx
call fcn.1400e0830
mov rsi, qword [rsp + 0x11d38]
mov rdi, qword [rsp + 0x11d40]
mov eax, 1
add rsp, 0x11d18
pop rbp
pop rbx
ret