Function at 0x1400ed840
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebp, ebp
mov rbx, rdx
mov qword [rsp + 0x28], rbp
mov r13, rcx
mov esi, ebp
test rdx, rdx
je 0x1400edb35
nop dword [rax]
cmp qword [rdx], rbp
je 0x1400edb35
mov rcx, rdx
call sym.SystemInformer.exe_PhExpandEnvironmentStrings
mov r14, rax
test rax, rax
jne 0x1400ed8eb
mov rdi, qword ds:[rbx]
test rdi, rdi
jne 0x1400ed8af
call sym.SystemInformer.exe_PhReferenceEmptyString
mov r14, rax
jmp 0x1400ed8eb
mov rdx, qword [0x1402ca998]
lea rcx, ds:[rdi + 0x12]
mov rbx, qword [rbx + 8]
call sym.SystemInformer.exe_PhCreateObject
mov r14, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [r14 + 8], rax
mov word [rax + rdi], bp
test rbx, rbx
je 0x1400ed8eb
mov rcx, qword [r14 + 8]
mov r8, rdi
mov rdx, rbx
call fcn.14020af00
lea r9, ds:[rsp + 0x28]
mov rcx, r14
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call sym.SystemInformer.exe_PhParseCommandLineFuzzy
mov rbx, qword [rsp + 0x28]
mov edi, 0xffffffff
test rbx, rbx
je 0x1400ed91d
cmp qword [rbx], rsi
jne 0x1400ed9aa
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0xd0], r12
test r15, r15
jne 0x1400ed939
call sym.SystemInformer.exe_PhReferenceEmptyString
mov r12, rax
jmp 0x1400ed974
mov rdx, qword [0x1402ca998]
lea rcx, [r15 + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdx, qword [rsp + 0x38]
mov r12, rax
mov qword [rax], r15
add rax, 0x10
mov qword [r12 + 8], rax
mov word [rax + r15], bp
test rdx, rdx
je 0x1400ed974
mov rcx, qword [r12 + 8]
mov r8, r15
call fcn.14020af00
mov rcx, rbx
mov rbx, r12
mov r12, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rbx
test rcx, rcx
je 0x1400ed9aa
add rcx, 0xfffffffffffffff0
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400ed9a5
nop dword [rax]
call fcn.140141ea0
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400edb35
cmp qword [rbx], rsi
je 0x1400edb22
mov r15, qword [rsp + 0x40]
test r15, r15
je 0x1400ed9ff
mov rdx, qword [0x1402ca998]
lea rcx, [r15 + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdx, qword [rsp + 0x48]
mov rsi, rax
mov qword [rax], r15
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + r15], bp
test rdx, rdx
je 0x1400ed9ff
mov rcx, qword [rax + 8]
mov r8, r15
call fcn.14020af00
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call fcn.14016a4a0
test eax, eax
js 0x1400eda28
mov eax, dword ds:[rsp + 0x70]
shr eax, 4
test al, 1
jne 0x1400edab5
mov rcx, qword [rbx + 8]
call sym.SystemInformer.exe_PhDoesFileExistWin32
test al, al
je 0x1400edab5
mov rcx, qword [r13 + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x1400eda9f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
nop
test ax, ax
jns 0x1400eda75
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1400eda9f
test rsi, rsi
je 0x1400eda82
mov r8, qword ds:[rsi + 8]
jmp 0x1400eda85
mov r8, rbp
mov rdx, qword [rbx + 8]
xor r9d, r9d
mov rcx, qword [r13]
call fcn.1400ed700
mov r15d, eax
cmp eax, 0xc000042c
jne 0x1400edad3
nop
test rsi, rsi
je 0x1400edaa9
mov rbp, qword [rsi + 8]
mov rdx, qword [rbx + 8]
mov r9b, 1
mov r8, rbp
jmp 0x1400edac7
test r14, r14
je 0x1400edabe
mov rbp, qword [r14 + 8]
xor r9d, r9d
mov rdx, rbp
xor r8d, r8d
mov rcx, qword [r13]
call fcn.1400ed700
mov r15d, eax
lea rcx, ds:[rbx - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400edaea
call fcn.140141ea0
test rsi, rsi
je 0x1400edb05
lea rcx, [rsi - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400edb05
nop
call fcn.140141ea0
test r14, r14
je 0x1400edb1d
lea rcx, [r14 - 0x10]
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x1400edb1d
call fcn.140141ea0
mov eax, r15d
jmp 0x1400edb3a
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x1400edb35
call fcn.140141ea0
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x80
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret