Function at 0x180009970
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x180049010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [0x180049c80]
mov rbp, r9
mov qword [rsp + 0x70], r8
mov r14, rcx
test rdi, rdi
je case.0x18000a09e.527
lea rbx, [rdi + 8]
mov rdi, qword [rdi + 0x90]
cmp edx, 0x200
ja 0x18000a072
je 0x18000a017
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x18000a09e.527
lea r9, [0x180000000]
movzx eax, byte [r9 + rax + 0xa234]
mov ecx, dword [r9 + rax*4 + 0xa220]
add rcx, r9
jmp rcx
lea eax, [rdx - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete dil
cmp r8, rsi
jae case.0x18000a09e.527
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x1800412e0]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38c9], 0
je 0x180009a53
test al, al
je 0x180009a3f
movaps xmm3, xmm6
jmp 0x180009a42
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x1000
mov rcx, rbx
call fcn.18000bb20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38c9], 0
je 0x180009a89
test al, al
je 0x180009a75
movaps xmm3, xmm6
jmp 0x180009a78
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x2000
mov rcx, rbx
call fcn.18000bb20
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38c9], 0
je 0x180009abf
test al, al
je 0x180009aab
movaps xmm3, xmm6
jmp 0x180009aae
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x4000
mov rcx, rbx
call fcn.18000bb20
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38c9], 0
je 0x180009af5
test al, al
je 0x180009ae1
movaps xmm3, xmm6
jmp 0x180009ae4
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x8000
mov rcx, rbx
call fcn.18000bb20
mov rbx, qword [rsp + 0x70]
cmp rbx, 0xd
jne 0x180009b0f
shr rbp, 0x10
mov eax, 0x10d
test si, bp
cmovne ebx, eax
movsxd r14, ebx
mov rcx, r14
call fcn.180009420
movsxd rbp, eax
test eax, eax
je 0x180009b64
mov rsi, qword [0x180049c80]
cmp byte [rsi + 0x38d1], 0
je 0x180009b4d
test dil, dil
je 0x180009b3b
movaps xmm3, xmm6
jmp 0x180009b3e
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rsi + 8]
mov edx, ebp
call fcn.18000bb20
cmp ebx, 0x1ff
ja 0x180009b64
mov dword [rsi + r14*4 + 0xf0], ebp
mov dword [rsi + rbp*4 + 0xf0], ebx
cmp ebx, 0x10
jne 0x180009c24
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180009bc5
mov rbx, qword [0x180049c80]
cmp byte [rbx + 0x38d1], 0
je 0x180009bb1
test dil, dil
je 0x180009b9c
movaps xmm3, xmm6
jmp 0x180009b9f
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x210
call fcn.18000bb20
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x18000a09e.527
mov rbx, qword [0x180049c80]
cmp byte [rbx + 0x38d1], 0
je 0x180009c0b
test dil, dil
jne 0x180009bf6
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x214
call fcn.18000bb20
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
jmp case.0x18000a09e.527
cmp ebx, 0x11
jne 0x180009ce4
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180009c85
mov rbx, qword [0x180049c80]
cmp byte [rbx + 0x38d1], 0
je 0x180009c71
test dil, dil
je 0x180009c5c
movaps xmm3, xmm6
jmp 0x180009c5f
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x20f
call fcn.18000bb20
mov dword [rbx + 0x378], 0x20f
mov dword [rbx + 0x92c], 0xa2
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x18000a09e.527
mov rbx, qword [0x180049c80]
cmp byte [rbx + 0x38d1], 0
je 0x180009ccb
test dil, dil
jne 0x180009cb6
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x213
call fcn.18000bb20
mov dword [rbx + 0x37c], 0x213
mov dword [rbx + 0x93c], 0xa3
jmp case.0x18000a09e.527
cmp ebx, 0x12
jne case.0x18000a09e.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180009d45
mov rbx, qword [0x180049c80]
cmp byte [rbx + 0x38d1], 0
je 0x180009d31
test dil, dil
je 0x180009d1c
movaps xmm3, xmm6
jmp 0x180009d1f
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x211
call fcn.18000bb20
mov dword [rbx + 0x380], 0x211
mov dword [rbx + 0x934], 0xa4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x18000a09e.527
mov rbx, qword [0x180049c80]
cmp byte [rbx + 0x38d1], 0
je 0x180009d8b
test dil, dil
jne 0x180009d76
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x215
call fcn.18000bb20
mov dword [rbx + 0x384], 0x215
mov dword [rbx + 0x944], 0xa5
jmp case.0x18000a09e.527
mov rdi, qword [rbx + 0xe30]
cmp edx, 7
sete r8b
movsxd rax, dword [rdi + 0x3f78]
test eax, eax
jle 0x180009de3
lea rcx, [rax - 1]
imul rax, rcx, 0x1c
add rax, qword [rdi + 0x3f80]
nop dword [rax]
cmp dword [rax], 6
je 0x180009e60
sub rax, 0x1c
sub rcx, 1
jns 0x180009dd0
cmp byte [rdi + 0x38d0], 0
sete cl
cmp cl, r8b
je case.0x18000a09e.527
cmp byte [rbx + 0x73], 0
je 0x180009e05
cmp edx, 7
jne case.0x18000a09e.527
mov eax, dword [rdi + 0x3f9c]
xor r9d, r9d
xorps xmm0, xmm0
mov qword [rsp + 0x40], r9
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x38], eax
inc eax
mov dword [rdi + 0x3f9c], eax
mov ecx, dword [rdi + 0x3f78]
mov byte [rsp + 0x3c], r8b
mov r8d, dword [rdi + 0x3f7c]
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x30], 6
cmp ecx, r8d
jne 0x180009eca
lea ebx, [rcx + 1]
test r8d, r8d
je 0x180009e66
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180009e6b
movzx ecx, byte [rax + 0xc]
jmp 0x180009ded
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, r8d
jle 0x180009eca
lfence
movsxd rax, ebx
imul rcx, rax, 0x1c
call fcn.18000f020
mov rdx, qword [rdi + 0x3f80]
mov rsi, rax
test rdx, rdx
je 0x180009eb2
movsxd rcx, dword [rdi + 0x3f78]
imul r8, rcx, 0x1c
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 0x3f80]
call fcn.18000f0d0
mov ecx, dword [rdi + 0x3f78]
mov r9d, dword [rsp + 0x48]
mov qword [rdi + 0x3f80], rsi
mov dword [rdi + 0x3f7c], ebx
movups xmm0, xmmword [rsp + 0x30]
movsxd rax, ecx
movsd xmm1, qword [rsp + 0x40]
imul rcx, rax, 0x1c
mov rax, qword [rdi + 0x3f80]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], r9d
inc dword [rdi + 0x3f78]
jmp case.0x18000a09e.527
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x180009fb8
mov rdi, qword [rsp + 0x70]
lea rax, [rdi - 1]
cmp rax, 0xfffe
ja case.0x18000a09e.527
test di, di
jne 0x180009f35
cmp word [rbx + 0x38cc], di
je case.0x18000a09e.527
cmp byte [rbx + 0x38c9], 0
je case.0x18000a09e.527
mov ecx, 0xfc00
movzx eax, di
and ax, cx
mov edx, 0xd800
movzx ecx, word [rbx + 0x38cc]
cmp ax, dx
jne 0x180009f7c
test cx, cx
je 0x180009f70
mov edx, 0xfffd
mov rcx, rbx
call fcn.18000b9f0
mov word [rbx + 0x38cc], di
jmp case.0x18000a09e.527
test cx, cx
je 0x180009fa8
mov ecx, 0xdc00
cmp ax, cx
je 0x180009f9a
mov edx, 0xfffd
mov rcx, rbx
call fcn.18000b9f0
jmp 0x180009f9f
mov edi, 0xfffd
xor ecx, ecx
mov word [rbx + 0x38cc], cx
movzx edx, di
mov rcx, rbx
call fcn.18000b9f0
jmp case.0x18000a09e.527
xor ecx, ecx
lea r8, [rsp + 0x70]
mov eax, 1
mov word [rsp + 0x68], cx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edx, word [rsp + 0x68]
mov rcx, rbx
call fcn.18000b9f0
jmp case.0x18000a09e.527
cmp bp, 1
jne case.0x18000a09e.527
call fcn.180008a70
test al, al
je case.0x18000a09e.527
mov eax, 1
jmp 0x18000a1fb
cmp byte [rdi + 0x10], 0
mov qword [rdi + 8], r14
jne 0x18000a04c
xor ecx, ecx
mov dword [rsp + 0x50], 0x18
mov dword [rsp + 0x60], ecx
mov esi, 2
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x54], esi
mov qword [rsp + 0x58], r14
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [rdi + 0x10], 1
mov rax, rbp
mov rcx, rbx
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, bp
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.18000bd10
jmp case.0x18000a09e.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x18000a09e.527
lea r9, [0x180000000]
movzx eax, byte [r9 + rax + 0xa350]
mov ecx, dword [r9 + rax*4 + 0xa334]
add rcx, r9
jmp rcx
cmp qword [rdi + 8], r14
jne 0x18000a0ac
xor ecx, ecx
mov qword [rdi + 8], rcx
movss xmm1, dword [0x180041388]
mov rcx, rbx
movaps xmm2, xmm1
mov byte [rdi + 0x10], 0
call fcn.18000bd10
jmp case.0x18000a09e.527
xor ecx, ecx
lea eax, [rdx - 0x204]
test eax, 0xfffffffd
mov ebp, ecx
mov eax, 1
mov esi, 2
cmove ebp, eax
lea eax, [rdx - 0x207]
test eax, 0xfffffffd
lea eax, [rdx - 0x20b]
cmove ebp, esi
test eax, 0xfffffffd
jne 0x18000a111
shr r8, 0x10
mov ebp, ecx
cmp r8w, 1
setne bpl
add ebp, 3
cmp dword [rdi + 0x14], ecx
jne 0x18000a12a
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x18000a12a
mov rcx, r14
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rdi + 0x14]
mov r8b, 1
bts eax, ebp
mov edx, ebp
mov rcx, rbx
mov dword [rdi + 0x14], eax
call fcn.18000bf20
jmp case.0x18000a09e.527
xor ecx, ecx
cmp edx, 0x205
mov esi, ecx
sete sil
cmp edx, 0x208
jne 0x18000a160
lea esi, [rcx + 2]
jmp 0x18000a17a
cmp edx, 0x20c
jne 0x18000a17a
shr r8, 0x10
mov esi, ecx
cmp r8w, 1
setne sil
add esi, 3
mov eax, dword [rdi + 0x14]
btr eax, esi
mov dword [rdi + 0x14], eax
test eax, eax
jne 0x18000a198
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r14
jne 0x18000a198
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18000bf20
jmp case.0x18000a09e.527
shr r8, 0x10
xorps xmm1, xmm1
movsx eax, r8w
mov rcx, rbx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x180041344]
call fcn.18000c0b0
jmp case.0x18000a09e.527
shr r8, 0x10
xorps xmm2, xmm2
movsx eax, r8w
mov rcx, rbx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x180041344]
call fcn.18000c0b0
jmp case.0x18000a09e.527
cmp r8d, 7
jne case.0x18000a09e.527
mov byte [rdi + 0x2d], 1
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180038a40
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret