Function at 0x140008f00
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov word [rsp + 0x18], r8w
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rbx, qword [0x140117320]
xor sil, sil
movzx r13d, r9b
movzx r12d, r8w
movzx edi, dl
mov rax, rcx
mov r15d, 1
test rbx, rbx
je 0x140009036
movabs r14, 0xffffffff003c2c17
nop dword [rax + rax]
cmp dword [rbx], r15d
jne 0x140009029
movzx edx, byte [rbx + 0x5c]
test dl, dl
je 0x140008f9b
mov r8, qword [rax + 0x10]
dec dl
lea rax, [r8 + r14]
cmp rax, 0x66
ja 0x140008f8b
mov ecx, 0xffc3d44d
sub ecx, r8d
jmp 0x140008f90
mov ecx, 0x65
movzx eax, dl
cmp ecx, eax
jle 0x140009022
test r13b, r13b
je 0x140009016
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140008ffd
cmp qword [rax + 0x3a0], 0
je 0x140008ffd
movzx r8d, dil
movzx eax, r12w
movzx edx, byte [r8 + rbx + 0x74]
movzx ecx, byte [rax + rbx + 0x174]
or cl, dl
test cl, 0x20
jne 0x140008fdb
cmp byte [rbx + 0x62], 0
je 0x140008ffd
test dl, 0x40
jne 0x140008ffd
mov rcx, qword [0x1401167a8]
movzx eax, r12w
mov edx, 0x41e
shl eax, 0x10
movsxd r9, eax
or r9, r8
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
movzx eax, r12w
test byte [rax + rbx + 0x174], 0x80
jne 0x140009054
movzx eax, dil
test byte [rax + rbx + 0x74], 0x80
jne 0x140009044
cmp byte [rbx + 0x5f], 0
movzx esi, sil
cmovne esi, r15d
mov rax, qword [rbp + 0x120]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140008f60
test r13b, r13b
je 0x140009067
movzx eax, r15b
jmp 0x1400094c2
movzx eax, dil
and byte [rax + rbx + 0x74], 0x7f
xor al, al
jmp 0x1400094c2
movzx eax, r12w
and byte [rax + rbx + 0x174], 0x7f
xor al, al
jmp 0x1400094c2
movzx eax, byte [0x14011679d]
movzx r12d, r15b
test al, 0xcf
je 0x140009086
test sil, sil
jne 0x140009086
test al, 0xc
je 0x140009083
test al, 3
jne 0x140009086
xor r12b, r12b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
mov r14, rax
mov esi, ebx
test rax, rax
je 0x1400090cf
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rbp + 0x50]
mov dword [rbp + 0x50], 0x48
mov ecx, eax
mov esi, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x1400090cf
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x1400090cf
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp qword [0x140118ff0], r14
mov qword [rsp + 0x48], rax
je 0x140009124
lea rdx, [rbp + 0xa0]
mov r8d, 0x1c
mov rcx, r14
mov qword [0x140118ff0], r14
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, [0x1400e3880]
lea rcx, [rbp + 0xa0]
call fcn.1400c900c
test eax, eax
sete sil
mov byte [0x140118fec], sil
jmp 0x14000912b
movzx esi, byte [0x140118fec]
xor eax, eax
lea rcx, [rsp + 0x50]
lea rdx, [0x1401167f0]
mov r8d, 0x100
mov word [rsp + 0x40], bx
mov dword [rsp + 0x42], eax
call fcn.1400c9cf0
movzx r13d, byte [0x140118fe4]
test r13b, r13b
je 0x140009205
test sil, sil
je 0x140009205
cmp dil, 0xe7
je 0x140009205
movzx eax, byte [0x140118fea]
neg al
movzx eax, byte [0x140118feb]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x50]
call fcn.140019c90
movzx edx, word [0x140118fe8]
movzx ecx, r13b
mov r13, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jle 0x1400091fd
movzx edx, word [0x140118fe8]
movzx ecx, byte [0x140118fe4]
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140118fe4], bl
jmp 0x14000920a
mov r13, qword [rsp + 0x48]
movzx edx, byte [0x14011679d]
lea rcx, [rsp + 0x50]
call fcn.140019c90
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test r15b, al
je 0x140009232
or byte [rsp + 0x64], r15b
jmp 0x140009237
and byte [rsp + 0x64], 0xfe
mov rsi, qword [rbp + 0x120]
cmp dil, 0xe7
jne 0x140009252
movzx eax, word [rsi + 4]
mov word [rsp + 0x40], ax
jmp 0x1400092db
test r12b, r12b
je 0x1400092b7
cmp dword [0x140116988], ebx
mov edx, dword [rsi + 4]
mov eax, ebx
setne al
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x50]
movzx ecx, dil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test byte [0x14011679d], 3
mov r15d, eax
jne 0x1400092ba
cmp word [rsp + 0x40], 0xd
mov eax, 0xa
jne 0x1400092a8
mov word [rsp + 0x40], ax
cmp word [rsp + 0x42], 0xd
jne 0x1400092ba
mov word [rsp + 0x42], ax
jmp 0x1400092ba
mov r15d, ebx
cmp dil, 8
jne 0x1400092db
test r15d, r15d
je 0x1400092db
cmp byte [0x140118fec], bl
je 0x1400092d8
mov r15d, ebx
mov byte [0x140118fe4], bl
jmp 0x1400092db
dec r15d
movzx r8d, word [rbp + 0x130]
lea r9, [rsp + 0x40]
movzx edx, dil
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.140009970
test al, al
je 0x140009060
movzx esi, byte [0x140118fe4]
test sil, sil
je 0x140009317
test r15d, r15d
jle 0x140009317
mov r12b, 1
jmp 0x14000931a
xor r12b, r12b
test r15d, r15d
jns 0x140009396
movzx eax, word [rbp + 0x130]
mov byte [0x140118fe4], dil
mov word [0x140118fe8], ax
movzx eax, byte [0x14011679d]
test al, 0x30
setne byte [0x140118fea]
test al, 3
je 0x140009353
mov byte [0x140118feb], 1
test al, 0xc
jne 0x140009359
mov byte [0x140118feb], bl
mov rax, qword [rbp + 0x120]
cmp dword [0x140116988], ebx
mov qword [rsp + 0x30], r13
mov edx, dword [rax + 4]
setne bl
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
movzx ecx, dil
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x1400094c0
cmp dword [0x1401173cc], ebx
je 0x14000944d
cmp byte [rbp + 0x140], bl
jne 0x14000944d
cmp dil, 8
je 0x1400093d7
cmp dil, 0x20
jbe 0x1400093fe
cmp dil, 0x28
ja 0x1400093fe
cmp dword [0x1401150ec], ebx
je 0x1400093fe
mov word [0x1401153b0], bx
mov dword [0x1401150ec], ebx
jmp 0x1400093fe
cmp byte [0x14011679d], bl
jne 0x1400093fe
mov eax, dword [0x1401150ec]
test eax, eax
je 0x1400093fe
dec eax
lea rcx, [0x1401153b0]
mov dword [0x1401150ec], eax
cdqe
mov word [rcx + rax*2], bx
test r15d, r15d
jle 0x14000944d
mov rax, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x120]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x150]
mov r9, r14
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x148]
mov r8d, r15d
mov qword [rsp + 0x20], rax
call fcn.1400094e0
test al, al
je 0x140009060
movzx esi, byte [0x140118fe4]
test r12b, r12b
je 0x1400094c0
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x100
call fcn.1400cf1c0
movzx r11d, byte [0x140118fea]
movzx eax, byte [0x140118feb]
neg r11b
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x50]
call fcn.140019c90
movzx edx, word [0x140118fe8]
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
movzx ecx, sil
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140118fe4], bl
mov al, 1
mov rbx, qword [rsp + 0x228]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret