Function at 0x1401343f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xe8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r9
mov rdi, r8
mov r15d, edx
mov rbx, rcx
mov eax, edx
sub eax, 2
je 0x14013492c
sub eax, 0x4c
je 0x140134531
sub eax, 0xc2
je 0x1401344f3
cmp eax, 1
jne 0x140134919
mov rax, r8
sub rax, 1
je 0x1401344e9
sub rax, 1
je 0x1401344c4
sub rax, 0x1b58
je 0x1401344ba
sub rax, 1
je 0x1401344b0
cmp rax, 1
jne 0x140134919
cmp dword [rcx + 0x78], 0xffffffff
jne 0x14013449b
xor esi, esi
mov qword [rcx + 0x78], rsi
mov byte [rcx + 0x80], sil
call fcn.140134a80
mov rcx, rbx
call fcn.140132c50
mov rcx, rbx
call fcn.140133130
mov rcx, rbx
call fcn.140132c50
jmp 0x140134919
call fcn.1401327c0
jmp 0x14013492c
call fcn.140132fd0
jmp 0x14013492c
lea rdx, [0x1402a5000]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, 2
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x14013492c
call fcn.140132570
jmp 0x14013492c
call fcn.14000cdd0
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str.Window
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rax + 0x332c0]
call fcn.14006d4d0
mov r9, r14
mov r8, rdi
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.14010df10
jmp 0x140134931
cmp rdi, 0x1b59
jne 0x140134919
mov ecx, dword [r9 + 0x10]
cmp ecx, 0xffffff4f
jne 0x1401347f1
test byte [r9 + 0x18], 1
je 0x14013492c
mov rax, qword [r9 + 0x30]
xor esi, esi
mov word [rax], si
movsxd rdx, dword [r9 + 0x1c]
mov rcx, qword [rbx + 0x58]
cmp rdx, qword [rcx + 0x20]
jae 0x1401347ea
mov rax, qword [rbx + 0x68]
sub rax, qword [rbx + 0x60]
sar rax, 2
cmp rdx, rax
jae 0x1401347ea
mov rax, qword [rbx + 0x60]
movsxd rdx, dword [rax + rdx*4]
call fcn.140041720
mov rdi, rax
call fcn.1400417e0
mov eax, dword [r14 + 0x20]
test eax, eax
jne 0x140134651
mov ecx, dword [r14 + 0x38]
dec ecx
movsxd rbx, ecx
mov r8, rbx
mov rdx, qword [rdi + 0xd0]
mov rcx, qword [r14 + 0x30]
call fcn.14019bcd0
mov rcx, qword [r14 + 0x30]
mov word [rcx + rbx*2], si
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp byte [rdi + 0x48], sil
je 0x14013460b
cmp ebx, dword [r14 + 0x38]
jge 0x14013492c
mov rcx, qword [r14 + 0x30]
mov eax, 0x2a
mov word [rcx + rbx*2], ax
lea eax, [rbx + 1]
movsxd rcx, eax
mov rax, qword [r14 + 0x30]
mov word [rax + rcx*2], si
jmp 0x14013492c
cmp byte [rdi + 0x54], sil
jne 0x14013461e
cmp byte [rdi + 0xac], sil
je 0x14013492c
mov rcx, qword [str.__Read_Only_]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
movsxd rax, dword [r14 + 0x38]
cmp ebx, eax
jg 0x14013492c
mov rdx, rax
mov r8, qword [str.__Read_Only_]
mov rcx, qword [r14 + 0x30]
call fcn.14018fad0
jmp 0x14013492c
cmp eax, 1
jne 0x1401346bc
lea r15, [rdi + 0xb0]
cmp qword [r15 + 0x18], 8
jb 0x140134667
mov r15, qword [r15]
mov rcx, qword [rdi + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
sub ecx, ebx
jne 0x140134691
mov ecx, 1
lea r15, [0x1401d3618]
cmp dword [r14 + 0x38], ecx
cmovl ecx, dword [r14 + 0x38]
lea eax, [rcx - 1]
movsxd rbx, eax
mov r8, rbx
mov rdx, r15
mov rcx, qword [r14 + 0x30]
call fcn.14019bcd0
mov rax, qword [r14 + 0x30]
mov word [rax + rbx*2], si
jmp 0x14013492c
cmp eax, 2
jne 0x140134700
mov ebx, dword [r14 + 0x38]
call fcn.14000cdd0
mov edx, dword [rdi + 0x20]
mov rcx, rax
call fcn.1400e1c00
test rax, rax
je 0x14013492c
lea rdx, [rax + 8]
cmp qword [rdx + 0x18], 8
jb 0x1401346ec
mov rdx, qword [rdx]
lea eax, [rbx - 1]
movsxd r8, eax
mov rcx, qword [r14 + 0x30]
call fcn.14019bcd0
jmp 0x14013492c
cmp eax, 3
jne 0x14013492c
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi]
call fcn.14001ee00
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140134950
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
mov rbx, qword [rbp + 7]
add rbx, rdx
lea rdi, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdi, qword [rbp - 9]
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rsi
mov word [rbp - 0x29], si
mov rdx, rbx
sub rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.1400095b0
movzx r9d, byte [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.14002e760
nop
lea rdi, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdi, qword [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
mov r8, rbx
mov rdx, rdi
mov rcx, qword [r14 + 0x30]
call fcn.14019bcd0
mov rax, qword [r14 + 0x30]
mov word [rax + rbx*2], si
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x1401347cc
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.140007680
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rsi
mov word [rbp - 0x29], si
lea rcx, [rbp - 9]
call fcn.140003760
jmp 0x14013492c
xor eax, eax
jmp 0x140134931
cmp ecx, 0xffffff94
jne 0x14013483c
cmp dword [r9 + 0x18], 0xffffffff
jne 0x14013492c
mov eax, dword [r9 + 0x1c]
mov dword [rbx + 0x78], eax
cmp dword [rbx + 0x7c], eax
jne 0x14013481d
mov byte [rbx + 0x80], 1
mov dword [rbx + 0x7c], 0xffffffff
jmp 0x140134827
mov byte [rbx + 0x80], 0
mov dword [rbx + 0x7c], eax
mov rcx, rbx
call fcn.140134a80
mov rcx, rbx
call fcn.140132c50
jmp 0x14013492c
lea eax, [rcx + 0x73]
cmp eax, 1
jbe 0x14013490f
cmp ecx, 0xffffff9b
je 0x14013490f
cmp ecx, 0xfffffffd
jne 0x140134871
xor r9d, r9d
mov edx, 0x111
lea r8d, [r9 + 1]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14013492c
cmp ecx, 0xffffff65
jne 0x140134919
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
cmp word [r14 + 0x18], 0x41
jne 0x14013492c
test si, si
jns 0x14013492c
test di, di
js 0x14013492c
test ax, ax
js 0x14013492c
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x14013492c
xor esi, esi
mov edi, eax
nop dword [rax]
mov dword [rbp - 0x69], 2
mov dword [rbp - 0x6d], 2
lea r9, [rbp - 0x79]
mov r8, rsi
mov edx, 0x102b
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
inc rsi
sub rdi, 1
jne 0x1401348e0
jmp 0x14013492c
mov rcx, rbx
call fcn.140134990
jmp 0x14013492c
mov r9, r14
mov r8, rdi
mov edx, r15d
mov rcx, rbx
call fcn.14010df10
jmp 0x140134931
mov eax, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140168660
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret