Function at 0x140009824
Capabilities:
Log keystrokes via application hook
Query environment variable

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rcx
mov qword [rsp + 0x58], rcx
lea r15, [0x14002a0c8]
mov rcx, qword [0x14002a0c8]
cmp rcx, r15
je 0x140009891
test byte [rcx + 0x1c], 0x10
je 0x140009891
mov edx, 0x10
lea r8, [0x140020d78]
mov rcx, qword [rcx + 0x10]
call fcn.1400019e8
xor esi, esi
mov edi, esi
mov word [rsp + 0x70], si
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, str._CommonProgramFiles_Microsoft_SharedInk_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400098ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009c79
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140009cd7
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140009ce2
lea rdx, str.FSDefinitions_
lea rcx, [rsp + 0x50]
call fcn.14000186c
mov edi, eax
test eax, eax
js 0x1400099f8
lea rdx, str.FSDefinitions_
lea rcx, [rsp + 0x48]
call fcn.14000186c
mov edi, eax
test eax, eax
js 0x1400099f3
mov rcx, r14
call fcn.140009cf4
mov edi, eax
test eax, eax
js 0x1400099f3
mov rcx, qword [r14 + 0x60]
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x48]
mov r8, rbx
mov rdx, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x1400200f0]
mov edi, eax
test eax, eax
js 0x1400099d7
mov rcx, qword [r14 + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x1400200f0]
mov edi, eax
test eax, eax
js 0x1400099d7
mov rcx, qword [r14 + 0x50]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x60]
mov rax, qword [rax + 0x18]
call qword [0x1400200f0]
mov edi, eax
test eax, eax
js 0x1400099d7
mov rcx, qword [r14 + 0x68]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x1400200f0]
mov edi, eax
test eax, eax
js 0x1400099d7
mov rcx, qword [r14 + 0x70]
mov rax, qword [rcx]
mov rdx, qword [r14 + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x1400200f0]
mov edi, eax
test edi, edi
js 0x1400099f8
mov rcx, qword [r14 + 0x58]
mov rax, qword [rcx]
mov rdx, r14
mov rax, qword [rax + 0x18]
call qword [0x1400200f0]
mov edi, eax
jmp 0x1400099f8
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
jmp 0x140009a1b
test edi, edi
js 0x140009c79
lea r8, [r14 + 0xe8]
lea rdx, [rsp + 0x40]
call fcn.140013c14
mov edi, eax
test eax, eax
js 0x140009c79
mov rcx, r14
call fcn.140009e70
mov edi, eax
test eax, eax
js 0x140009c79
mov ecx, 0xa0
call fcn.14001d21c
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140009af2
mov rbx, qword [r14 + 0x48]
mov r11, qword [r14 + 0x40]
mov r10, qword [r14 + 0x30]
mov r9, qword [r14 + 0x38]
mov r8, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x18]
mov qword [rax + 0x40], rsi
mov qword [rax + 0x48], rsi
mov byte [rax + 0x5c], sil
mov dword [rax + 0x60], esi
mov qword [rax + 0x68], rsi
mov byte [rax + 0x70], sil
mov dword [rax + 0x74], esi
mov dword [rax + 0x78], 2
mov word [rax + 0x94], 0x100
mov byte [rax + 0x96], sil
mov dword [rax + 0x98], esi
mov byte [rax + 0x9c], 1
mov qword [rax], r14
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
mov qword [rax + 0x28], r10
mov qword [rax + 0x30], r11
mov qword [rax + 0x38], rbx
mov qword [rax + 0x50], rsi
mov rcx, rax
call fcn.140013164
jmp 0x140009af5
mov rdi, rsi
mov qword [r14 + 0x88], rdi
test rdi, rdi
je 0x140009b40
mov rax, qword [r14 + 0x80]
mov rbx, qword [rax + 8]
mov ecx, 0x10
call fcn.14001d21c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140009b28
mov qword [rax], rbx
mov dword [rax + 8], esi
jmp 0x140009b2b
mov rax, rsi
mov qword [rdi + 0x40], rax
test rax, rax
je 0x140009b40
mov rcx, rax
call fcn.140013aec
mov edi, eax
jmp 0x140009b45
mov edi, 0x8007000e
test edi, edi
js 0x140009c79
mov rcx, r14
call fcn.1400095dc
mov edi, eax
test eax, eax
js 0x140009c79
mov rcx, r14
call fcn.14000a62c
mov edi, eax
test eax, eax
js 0x140009c79
xor r9d, r9d
mov r8, qword [0x14002b510]
lea rdx, [0x14000c130]
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14002b688], rax
test rax, rax
jne 0x140009bac
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009c79
xor r9d, r9d
mov r8, qword [0x14002b510]
lea rdx, [0x14000cb90]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14002b680], rax
test rax, rax
jne 0x140009bef
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009c79
mov ebx, esi
lea r15, [0x140020d30]
lea r12, [r14 + 0xc0]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [0x14000c660]
xor r8d, r8d
mov edx, dword [r15]
mov ecx, edx
call qword [sym.imp.USER32.dll_SetWinEventHook]
mov qword [r12], rax
test rax, rax
je 0x140009c42
inc ebx
add r12, 8
add r15, 4
cmp ebx, 2
jl 0x140009c07
jmp 0x140009c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140009c79
mov rcx, r14
call fcn.14000af94
mov rax, qword [r14 + 0x78]
mov ecx, dword [rax + 0x98]
shr ecx, 6
and cl, 1
mov byte [r14 + 0xf0], cl
mov rcx, qword [0x14002a0c8]
lea rax, [0x14002a0c8]
cmp rcx, rax
je 0x140009ca7
test byte [rcx + 0x1c], 0x10
je 0x140009ca7
mov edx, 0x11
lea r8, [0x140020d78]
mov rcx, qword [rcx + 0x10]
call fcn.1400019e8
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov ecx, 0x8007000e
call fcn.1400017a4
nop
mov ecx, 0x8007000e
call fcn.1400017a4
int3