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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov r10d, dword [0x1400f5970]
movzx ebx, dl
mov rdx, qword [0x1400f2430]
movzx r11d, r9b
movzx r15d, r8w
cmp r10d, 1
jne 0x140007a98
cmp byte [0x1400f59b8], 0
jne 0x140007a98
movzx eax, bl
imul r9, rax, 0x128
cmp qword [r9 + rdx], 0
jne 0x140007a98
xor r12b, r12b
jmp 0x140007a9b
mov r12b, 1
mov byte [rbp + 0xd8], r12b
test r11b, r11b
je 0x140007ad2
movzx eax, bl
mov r8d, 1
imul rcx, rax, 0x128
movzx eax, r12b
cmp byte [rcx + rdx + 8], 0
cmovne eax, r8d
add rsp, 0x198
pop r15
pop r12
pop rbx
pop rbp
ret
cmp qword [0x1400f2470], 0
movzx eax, byte [rbp + 0xe0]
mov qword [rsp + 0x1c8], rsi
mov qword [rsp + 0x180], r14
je 0x140007b01
test al, al
jne 0x140007b01
test r12b, r12b
je 0x140007b01
mov r14b, 1
jmp 0x140007b04
xor r14b, r14b
movzx r8d, byte [0x1400f22f3]
xor esi, esi
cmp r10d, 1
jne 0x140007c1a
cmp byte [0x1400f59b6], sil
je 0x140007b29
test al, al
jne 0x140007c1a
mov r9b, 1
mov byte [rsp + 0x41], r9b
cmp bl, 0xe7
je 0x140007b7d
mov rax, qword [0x1400f5978]
mov r9, qword [0x1400f5980]
movzx ecx, bl
movzx edx, byte [rcx + rax]
test dl, dl
jne 0x140007b5c
movzx eax, r15w
movzx edx, byte [rax + r9]
test dl, dl
je 0x140007b7a
movzx ecx, dl
shr dl, 2
and dl, 1
shr cl, 1
and cl, 1
je 0x140007bb5
test dl, dl
jne 0x140007bbf
test r8b, 0x30
jne 0x140007bbf
test dl, dl
jne 0x140007bb9
mov r9b, 1
mov qword [rsp + 0x188], r13
movzx r13d, bl
lea eax, [r13 - 0x21]
cmp eax, 0x84
ja case.0x140007bb3.41
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x86b8]
mov ecx, dword [rdx + rax*4 + 0x86ac]
add rcx, rdx
jmp rcx
test dl, dl
je 0x140007bbf
test r8b, 0x30
jne 0x140007b7a
movzx eax, r15w
mov r10d, 4
mov dword [0x1400f5970], r10d
cmp byte [rax + r9], sil
mov byte [0x1400f5990], bl
setne byte [0x1400f5996]
mov word [0x1400f5992], r15w
mov word [0x1400f5994], si
test cl, cl
je 0x140007c01
mov byte [0x1400f5997], 1
test r8b, 0x30
jne 0x140007c08
mov byte [0x1400f5997], sil
test r14b, r14b
jne 0x140007b7a
movzx eax, r12b
jmp 0x140008576
xor r9b, r9b
mov byte [rsp + 0x41], r9b
jmp 0x140007b7d
mov al, 1
jmp 0x14000856e
test r14b, r14b
je case.0x140007bb3.41
mov edx, dword [0x1400f1730]
test edx, edx
je 0x140007c54
mov edx, esi
mov word [0x1400f1740], si
mov dword [0x1400f1730], edx
jmp 0x140007c54
mov edx, dword [0x1400f1730]
test r8b, r8b
je 0x140007c82
cmp r10d, 1
jne 0x140007c68
cmp byte [0x1400f59b7], sil
jne 0x140007c82
lea eax, [r8 - 0x10]
test al, 0xef
je 0x140007c82
test r8b, 0xc
setne cl
test r8b, 3
setne al
test al, cl
je 0x140007ce6
cmp bl, 8
jne 0x140007cef
test r8b, r8b
jne 0x140007cef
test r9b, r9b
je 0x140007cc0
cmp r10d, 1
jne 0x140007cc0
cmp byte [0x1400f59b4], sil
je 0x140007cc0
mov eax, dword [0x1400f59c8]
test eax, eax
je 0x140007cc0
dec eax
mov dword [0x1400f59c8], eax
movsxd rcx, eax
mov rax, qword [0x1400f59c0]
mov word [rax + rcx*2], si
test r14b, r14b
je 0x140007cdf
test edx, edx
je 0x140007cdf
dec edx
lea rcx, [0x1400f1740]
movsxd rax, edx
mov dword [0x1400f1730], edx
mov word [rcx + rax*2], si
mov byte [0x1400f7246], sil
movzx eax, r12b
jmp 0x14000856e
mov qword [rsp + 0x190], rdi
lea rax, [rbp - 0x80]
lea rcx, [0x1400f2300]
mov edx, 2
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140007d10
movzx edx, r8b
lea rcx, [rbp - 0x80]
call fcn.140012910
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140007d85
or byte [rbp - 0x6c], 1
jmp 0x140007d89
and byte [rbp - 0x6c], 0xfe
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x140007da4
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x140007da6
mov eax, esi
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0x60], rax
mov r8, rax
cmp bl, 0xe7
jne 0x140007dcf
mov eax, 1
movzx ecx, r15w
mov dword [rsp + 0x44], eax
mov word [rsp + 0x48], cx
jmp 0x140007e1d
mov eax, esi
mov qword [rsp + 0x30], r8
cmp dword [0x1400f1194], eax
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x80]
mov ecx, r13d
setne al
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0xc0]
mov dword [rsp + 0x20], 2
mov edx, dword [rax + 4]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140007eab
movzx ecx, word [rsp + 0x48]
mov r8, qword [rsp + 0x60]
cmp byte [0x1400f7246], sil
je 0x140007e35
cmp bl, 9
je 0x140007e35
mov byte [rsp + 0x40], 1
cmp bl, 0x1b
jne 0x140007e3a
mov byte [rsp + 0x40], sil
test eax, eax
jns 0x140007eb4
test r12b, r12b
je 0x140007eab
movzx eax, byte [0x1400f22f3]
lea r9, [rsp + 0x48]
test al, 0x30
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x80]
mov byte [0x1400f7246], bl
setne byte [0x1400f7241]
mov word [0x1400f7244], r15w
test al, 0xc
mov ecx, r13d
setne dl
test al, 3
setne al
test al, dl
mov rax, qword [rbp + 0xc0]
setne byte [0x1400f7240]
cmp dword [0x1400f1194], esi
mov edx, dword [rax + 4]
setne sil
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movzx eax, r12b
jmp 0x140008566
test byte [0x1400f22f3], 3
jne 0x140007edc
mov eax, 0xa
cmp cx, 0xd
jne 0x140007ecf
mov ecx, eax
mov word [rsp + 0x48], ax
cmp word [rsp + 0x4a], 0xd
jne 0x140007edc
mov word [rsp + 0x4a], ax
test r14b, r14b
je 0x1400080f2
cmp rdi, qword [0x1400f1728]
lea r12, [0x1400f1740]
je 0x140007f07
mov qword [0x1400f1728], rdi
mov edx, esi
mov word [0x1400f1740], si
jmp 0x140007f4e
mov edx, dword [0x1400f1730]
mov eax, 0x5a
sub eax, edx
cmp eax, 3
jge 0x140007f4e
lea rdx, [0x1400f179a]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x140007f24
mov dword [0x1400f1730], eax
mov rcx, r12
inc eax
movsxd r8, eax
add r8, r8
call fcn.1400973b0
movzx ecx, word [rsp + 0x48]
mov edx, dword [0x1400f1730]
mov edi, dword [rsp + 0x44]
movsxd rax, edx
inc edx
mov dword [0x1400f1730], edx
mov word [r12 + rax*2], cx
cmp edi, 1
jle 0x140007f7c
movzx eax, word [rsp + 0x4a]
movsxd rcx, edx
inc edx
mov dword [0x1400f1730], edx
mov word [r12 + rcx*2], ax
movsxd rax, edx
mov word [r12 + rax*2], si
test edx, edx
je 0x1400080f6
cmp dword [0x1400f2424], esi
mov r13d, esi
mov dword [rsp + 0x50], esi
jbe 0x1400080f6
nop
mov rax, qword [0x1400f2470]
mov ecx, r13d
mov r15, qword [rax + rcx*8]
mov qword [rsp + 0x70], r15
cmp byte [r15 + 0x3b], sil
jne 0x1400080dd
movzx eax, byte [r15 + 0x3a]
cmp byte [r15 + 0x43], sil
je 0x140007ffb
cmp edx, eax
jle 0x1400080dd
movsxd rax, edx
lea rcx, [0x1400ef350]
movzx edx, word [r12 + rax*2 - 2]
call fcn.1400977e8
test rax, rax
je 0x1400080d7
movsxd rdx, dword [0x1400f1730]
lea r14, [rdx - 2]
jmp 0x140008009
cmp edx, eax
jl 0x1400080dd
movsxd r14, edx
dec r14
lea r14, [r12 + r14*2]
movzx eax, byte [r15 + 0x3a]
mov rcx, qword [r15 + 8]
lea rdi, [rax - 1]
lea rdi, [rcx + rdi*2]
cmp byte [r15 + 0x3e], sil
je 0x140008048
cmp rdi, rcx
jb 0x14000807f
nop dword [rax]
movzx eax, word [rdi]
cmp word [r14], ax
jne 0x14000807f
sub r14, 2
sub rdi, 2
cmp rdi, rcx
jae 0x140008030
jmp 0x14000807f
cmp rdi, rcx
jb 0x14000807f
nop dword [rax]
movzx ecx, word [rdi]
call qword [sym.imp.USER32.dll_CharLowerW]
movzx ecx, word [r14]
mov rbx, rax
call qword [sym.imp.USER32.dll_CharLowerW]
cmp ax, bx
jne 0x140008079
sub r14, 2
sub rdi, 2
cmp rdi, qword [r15 + 8]
jae 0x140008050
mov edx, dword [0x1400f1730]
cmp rdi, qword [r15 + 8]
jae 0x1400080dd
cmp byte [r15 + 0x44], sil
jne 0x14000809e
cmp r14, r12
jb 0x14000809e
movzx ecx, word [r14]
call qword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x1400080d7
mov rax, qword [r15]
test rax, rax
je 0x1400080ac
mov rcx, qword [rax + 8]
jmp 0x1400080b3
lea rcx, [0x1400bdf7c]
mov r9d, dword [r15 + 0x30]
mov r8, qword [r15 + 0x20]
mov rdx, qword [r15 + 0x18]
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r15 + 0x38]
call fcn.14000aa60
test rax, rax
jne 0x1400081ee
mov edx, dword [0x1400f1730]
inc r13d
cmp r13d, dword [0x1400f2424]
mov dword [rsp + 0x50], r13d
jb 0x140007fa0
mov edi, dword [rsp + 0x44]
xor r14b, r14b
cmp byte [rsp + 0x40], 0
movzx eax, byte [rbp + 0xd8]
je 0x14000818b
movzx ebx, byte [0x1400f7246]
mov byte [0x1400f7246], 0
test al, al
je 0x14000818b
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x100
call fcn.140098640
movzx eax, byte [0x1400f7241]
neg al
movzx eax, byte [0x1400f7240]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rbp - 0x80]
call fcn.140012910
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
movzx edx, word [0x1400f7244]
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
movzx ecx, bl
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movzx eax, byte [rbp + 0xd8]
cmp byte [rsp + 0x41], 0
je 0x140008566
cmp dword [0x1400f5970], 1
jne 0x140008566
test r14b, r14b
jne 0x140008566
movsxd r13, edi
mov r12d, esi
mov r14, rsi
test edi, edi
jle 0x1400084f0
nop dword [rax]
cmp byte [0x1400f59b5], 0
lea r15, [rsp + 0x48]
lea r15, [r15 + r14*2]
je 0x140008458
movzx edx, word [r15]
mov rcx, qword [0x1400f5988]
call fcn.1400977e8
mov rbx, rax
jmp 0x14000849b
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xe8]
add rdx, 4
mov r8, qword [rax + 0x10]
movabs rax, 0xffffffff003c2c17
add rax, r8
cmp rax, 0x66
ja 0x140008245
movzx ecx, byte [r15 + 0x39]
mov eax, 0xffc3d44d
sub eax, r8d
cmp eax, ecx
jg 0x140008245
mov edi, dword [rsp + 0x44]
xor r14b, r14b
test rdx, rdx
je 0x1400080f9
mov eax, 0x69
mov word [rdx], ax
jmp 0x1400080f9
cmp byte [r15 + 0x3f], sil
jne 0x140008256
mov edx, dword [0x1400f1730]
jmp 0x140008398
movsxd rdx, dword [0x1400f1730]
lea r12, [r12 + rdx*2]
mov qword [rsp + 0x58], r12
cmp byte [r15 + 0x43], sil
je 0x140008275
sub r12, 2
mov qword [rsp + 0x58], r12
movzx eax, byte [r15 + 0x3a]
xor dil, dil
add rax, rax
mov rbx, r12
sub rbx, rax
mov r13d, esi
mov rax, r12
mov r14, rsi
sub rax, rbx
inc rax
shr rax, 1
cmp rbx, r12
cmova rax, rsi
test rax, rax
je 0x14000838c
mov r15, rax
mov r12d, 1
movzx ecx, word [rbx]
call qword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x1400082cb
movzx ecx, word [rbx]
call qword [sym.imp.USER32.dll_IsCharUpperW]
test eax, eax
je 0x1400082ea
test sil, sil
jne 0x1400082e7
movzx ecx, word [rbx]
movzx esi, r12b
call qword [sym.imp.USER32.dll_IsCharUpperW]
test eax, eax
movzx edi, dil
cmovne edi, r12d
inc r13d
add rbx, 2
inc r14
cmp r14, r15
jb 0x1400082b1
mov r15, qword [rsp + 0x70]
mov esi, 0
mov r12, qword [rsp + 0x58]
test r13d, r13d
je 0x140008386
cmp r13d, 1
jne 0x140008330
mov edx, dword [0x1400f1730]
lea r12, [0x1400f1740]
mov r13d, dword [rsp + 0x50]
neg dil
sbb edi, edi
and edi, 2
jmp 0x14000839a
test dil, dil
je 0x140008386
movzx eax, byte [r15 + 0x3a]
mov rbx, r12
add rax, rax
mov edi, 2
sub rbx, rax
cmp rbx, r12
jae 0x140008368
nop dword [rax]
movzx ecx, word [rbx]
call qword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x140008365
add rbx, rdi
cmp rbx, r12
jb 0x140008350
cmp rbx, r12
mov edx, dword [0x1400f1730]
lea r12, [0x1400f1740]
mov r13d, dword [rsp + 0x50]
mov r11d, 1
cmove edi, r11d
jmp 0x1400083a0
mov edx, dword [0x1400f1730]
mov r13d, dword [rsp + 0x50]
lea r12, [0x1400f1740]
mov edi, esi
mov r11d, 1
movzx r10d, byte [r15 + 0x40]
test r10b, r10b
jne 0x1400083b0
cmp byte [r15 + 0x41], r10b
je 0x1400083bd
xor al, al
mov r14b, 1
mov byte [rbp + 0xd8], al
jmp 0x1400083c0
xor r14b, r14b
mov rax, qword [rbp + 0xf0]
movzx r8d, byte [r15 + 0x43]
mov ecx, r13d
mov qword [rax], rcx
test r8b, r8b
je 0x1400083e2
movsxd rax, edx
movzx r9d, word [r12 + rax*2 - 2]
jmp 0x1400083e5
mov r9d, esi
movzx ecx, di
shl ecx, 0x10
movzx eax, r9w
or ecx, eax
mov rax, qword [rbp + 0xf8]
movsxd rcx, ecx
mov qword [rax], rcx
mov rax, qword [r15 + 0x10]
cmp word [rax], 0
je 0x140008426
test r8b, r8b
je 0x140008422
movsxd rax, edx
mov edx, r11d
movzx eax, word [r12 + rax*2 - 2]
mov word [0x1400f1740], ax
jmp 0x140008439
mov edx, esi
jmp 0x140008439
test r10b, r10b
je 0x140008439
movzx eax, byte [r15 + 0x3a]
sub edx, eax
test r8b, r8b
je 0x140008439
dec edx
cmp byte [r15 + 0x45], 0
mov edi, dword [rsp + 0x44]
cmovne edx, esi
movsxd rax, edx
mov dword [0x1400f1730], edx
mov word [r12 + rax*2], si
jmp 0x1400080f9
movzx ecx, word [r15]
mov rbx, qword [0x1400f5988]
call qword [sym.imp.USER32.dll_CharLowerW]
movzx ecx, word [rbx]
movzx edi, ax
call qword [sym.imp.USER32.dll_CharLowerW]
movzx ecx, ax
cmp ecx, edi
je 0x14000849b
nop dword [rax]
cmp word [rbx], 0
je 0x1400084a4
movzx ecx, word [rbx + 2]
add rbx, 2
call qword [sym.imp.USER32.dll_CharLowerW]
movzx ecx, ax
cmp ecx, edi
jne 0x140008480
test rbx, rbx
jne 0x140008594
movsxd rax, dword [0x1400f59c8]
cmp eax, dword [0x1400f59cc]
je 0x1400084f0
movzx ecx, word [r15]
mov rdx, rax
mov rax, qword [0x1400f59c0]
inc r12d
inc r14
mov word [rax + rdx*2], cx
mov eax, dword [0x1400f59c8]
inc eax
mov dword [0x1400f59c8], eax
movsxd rcx, eax
mov rax, qword [0x1400f59c0]
mov word [rax + rcx*2], si
cmp r14, r13
jl 0x1400081c0
cmp byte [0x1400f59b9], 0
je 0x1400085f1
cmp byte [0x1400f59b5], 0
je 0x1400085af
cmp dword [0x1400f59a0], 0
jbe 0x14000853f
mov rax, qword [0x1400f5998]
mov ecx, esi
mov rdx, qword [rax + rcx*8]
mov rcx, qword [0x1400f59c0]
call fcn.140097874
test rax, rax
jne 0x14000869d
inc esi
cmp esi, dword [0x1400f59a0]
jb 0x140008513
mov ecx, dword [0x1400f5970]
mov edx, 5
mov eax, dword [0x1400f59cc]
cmp dword [0x1400f59c8], eax
cmovge ecx, edx
mov dword [0x1400f5970], ecx
movzx eax, byte [rbp + 0xd8]
mov rdi, qword [rsp + 0x190]
mov r13, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x180]
add rsp, 0x198
pop r15
pop r12
pop rbx
pop rbp
ret
movsxd rax, r12d
mov dword [0x1400f5970], 4
movzx ecx, word [rsp + rax*2 + 0x48]
mov word [0x1400f5994], cx
jmp 0x14000855f
cmp dword [0x1400f59a0], 0
jbe 0x14000853f
nop dword [rax + rax]
mov rdx, qword [0x1400f5998]
mov rcx, qword [0x1400f59c0]
mov eax, esi
mov rdx, qword [rdx + rax*8]
call fcn.14007a6b0
test rax, rax
jne 0x14000869d
inc esi
cmp esi, dword [0x1400f59a0]
jb 0x1400085c0
jmp 0x14000853f
cmp byte [0x1400f59b5], 0
je 0x140008658
mov r10d, dword [0x1400f59a0]
test r10d, r10d
je 0x14000853f
mov r9, qword [0x1400f5998]
mov r11, qword [0x1400f59c0]
nop dword [rax + rax]
mov r8, qword [r9]
mov rax, r11
sub r8, r11
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140008644
add rax, 2
test ecx, ecx
jne 0x140008630
test edx, edx
je 0x14000869d
inc esi
add r9, 8
cmp esi, r10d
jb 0x140008620
jmp 0x14000853f
cmp dword [0x1400f59a0], 0
jbe 0x14000853f
nop word [rax + rax]
mov rdx, qword [0x1400f5998]
mov rcx, qword [0x1400f59c0]
mov eax, esi
mov rdx, qword [rdx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000869d
inc esi
cmp esi, dword [0x1400f59a0]
jb 0x140008670
jmp 0x14000853f
mov dword [0x1400f5970], 3
jmp 0x14000855f