Function at 0x14003fd40
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x14005f040]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r10, qword [0x1401a9430]
mov r15, r9
mov qword [rbp - 0x20], r8
mov r12, rcx
test r10, r10
je case.0x1400403b0.527
mov rdi, qword [r10 + 0x98]
lea r14, [r10 + 8]
cmp edx, 0x200
ja 0x140040384
je 0x14004032d
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x1400403b0.527
lea r9, [0x140000000]
movzx eax, byte [r9 + rax + 0x40548]
mov ecx, dword [r9 + rax*4 + 0x40534]
add rcx, r9
jmp rcx
lea eax, [rdx - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete bl
cmp r8, rsi
jae case.0x1400403b0.527
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x140054f38]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x14003fe22
test al, al
je 0x14003fe0e
movaps xmm3, xmm6
jmp 0x14003fe11
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x1000
mov rcx, r14
call fcn.140013220
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x14003fe59
test al, al
je 0x14003fe45
movaps xmm3, xmm6
jmp 0x14003fe48
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x2000
mov rcx, r14
call fcn.140013220
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x14003fe90
test al, al
je 0x14003fe7c
movaps xmm3, xmm6
jmp 0x14003fe7f
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x4000
mov rcx, r14
call fcn.140013220
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x14003fec7
test al, al
je 0x14003feb3
movaps xmm3, xmm6
jmp 0x14003feb6
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x8000
mov rcx, r14
call fcn.140013220
mov rdi, qword [rbp - 0x20]
cmp rdi, 0xd
jne 0x14003fee1
shr r15, 0x10
mov eax, 0x10d
test si, r15w
cmovne edi, eax
movsxd r15, edi
mov rcx, r15
call fcn.14003f7f0
movsxd r14, eax
test eax, eax
je 0x14003ff37
mov rsi, qword [0x1401a9430]
cmp byte [rsi + 0x37a9], 0
je 0x14003ff1f
test bl, bl
je 0x14003ff0c
movaps xmm3, xmm6
jmp 0x14003ff0f
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rsi + 8]
mov edx, r14d
call fcn.140013220
cmp edi, 0x1ff
ja 0x14003ff37
mov dword [rsi + r15*4 + 0x100], r14d
mov dword [rsi + r14*4 + 0x100], edi
cmp edi, 0x10
jne 0x14003fff3
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x14003ff96
mov rdi, qword [0x1401a9430]
cmp byte [rdi + 0x37a9], 0
je 0x14003ff82
test bl, bl
je 0x14003ff6d
movaps xmm3, xmm6
jmp 0x14003ff70
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rdi + 8]
mov edx, 0x210
call fcn.140013220
mov dword [rdi + 0x380], 0x210
mov dword [rdi + 0x940], 0xa0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1400403b0.527
mov rdi, qword [0x1401a9430]
cmp byte [rdi + 0x37a9], 0
je 0x14003ffda
test bl, bl
jne 0x14003ffc5
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rdi + 8]
movzx r8d, bl
mov edx, 0x214
call fcn.140013220
mov dword [rdi + 0x384], 0x214
mov dword [rdi + 0x950], 0xa1
jmp case.0x1400403b0.527
cmp edi, 0x11
jne 0x1400400af
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x140040052
mov rdi, qword [0x1401a9430]
cmp byte [rdi + 0x37a9], 0
je 0x14004003e
test bl, bl
je 0x140040029
movaps xmm3, xmm6
jmp 0x14004002c
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rdi + 8]
mov edx, 0x20f
call fcn.140013220
mov dword [rdi + 0x388], 0x20f
mov dword [rdi + 0x93c], 0xa2
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1400403b0.527
mov rdi, qword [0x1401a9430]
cmp byte [rdi + 0x37a9], 0
je 0x140040096
test bl, bl
jne 0x140040081
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rdi + 8]
movzx r8d, bl
mov edx, 0x213
call fcn.140013220
mov dword [rdi + 0x38c], 0x213
mov dword [rdi + 0x94c], 0xa3
jmp case.0x1400403b0.527
cmp edi, 0x12
jne case.0x1400403b0.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x14004010e
mov rdi, qword [0x1401a9430]
cmp byte [rdi + 0x37a9], 0
je 0x1400400fa
test bl, bl
je 0x1400400e5
movaps xmm3, xmm6
jmp 0x1400400e8
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rdi + 8]
mov edx, 0x211
call fcn.140013220
mov dword [rdi + 0x390], 0x211
mov dword [rdi + 0x944], 0xa4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1400403b0.527
mov rdi, qword [0x1401a9430]
cmp byte [rdi + 0x37a9], 0
je 0x140040152
test bl, bl
jne 0x14004013d
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rdi + 8]
movzx r8d, bl
mov edx, 0x215
call fcn.140013220
mov dword [rdi + 0x394], 0x215
mov dword [rdi + 0x954], 0xa5
jmp case.0x1400403b0.527
cmp edx, 7
lea rbx, [r10 + 0x37c0]
mov r9d, dword [rbx]
sete r11b
lea eax, [r9 - 1]
test eax, eax
js 0x1400401a5
movsxd r8, eax
mov rax, qword [r10 + 0x37c8]
lea rcx, [r8 + r8*2]
lea rdx, [rax + rcx*8]
cmp dword [rdx], 6
je 0x1400401fd
sub rdx, 0x18
sub r8, 1
jns 0x140040196
cmp byte [r10 + 0x37a8], 0
sete al
cmp al, r11b
je case.0x1400403b0.527
mov ecx, dword [rbx + 4]
xor eax, eax
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x40], 6
mov byte [rbp - 0x38], r11b
cmp r9d, ecx
jne 0x1400402e6
lea r8d, [r9 + 1]
test ecx, ecx
je 0x140040208
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
jmp 0x1400402de
test rdx, rdx
je 0x1400401a5
movzx eax, byte [rdx + 8]
jmp 0x1400401b0
mov eax, 8
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
jmp 0x1400402de
mov rcx, r12
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x14004024a
mov rdx, qword [rbp - 0x20]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja case.0x1400403b0.527
mov rcx, r14
call fcn.140013040
jmp case.0x1400403b0.527
mov eax, 1
lea rcx, [rbp - 0x28]
mov dword [rsp + 0x28], eax
lea r8, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
xor esi, esi
xor ecx, ecx
mov word [rbp - 0x28], si
mov r9d, eax
mov edx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rbp - 0x28]
test eax, eax
je case.0x1400403b0.527
cmp byte [r14 + 0x37a1], sil
je case.0x1400403b0.527
mov ebx, 2
mov qword [rbp - 0x34], rsi
mov dword [rbp - 0x3c], ebx
mov rbx, qword [0x1401a9430]
add rbx, 0x37c0
mov dword [rbp - 0x2c], esi
mov dword [rbp - 0x40], 5
mov dword [rbp - 0x38], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
cmp ecx, r8d
jne 0x1400402e6
inc ecx
test r8d, r8d
je 0x1400402d2
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1400402d7
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.14002aba0
movsxd rax, dword [rbx]
movups xmm0, xmmword [rbp - 0x40]
movsd xmm1, qword [rbp - 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
inc dword [rbx]
jmp case.0x1400403b0.527
cmp r15w, 1
jne case.0x1400403b0.527
call fcn.14003ecb0
test al, al
je case.0x1400403b0.527
mov eax, 1
jmp 0x140040514
cmp byte [rdi + 0x10], 0
mov qword [rdi + 8], r12
jne 0x14004035d
xor esi, esi
mov dword [rbp - 0x40], 0x18
mov ebx, 2
mov dword [rbp - 0x30], esi
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x3c], ebx
mov qword [rbp - 0x38], r12
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [rdi + 0x10], 1
mov rax, r15
mov rcx, r14
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, r15w
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.1400133c0
jmp case.0x1400403b0.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x1400403b0.527
lea r9, [0x140000000]
movzx eax, byte [r9 + rax + 0x40664]
mov ecx, dword [r9 + rax*4 + 0x40648]
add rcx, r9
jmp rcx
cmp qword [rdi + 8], r12
jne 0x1400403be
xor esi, esi
mov qword [rdi + 8], rsi
movss xmm1, dword [0x1400550f4]
mov rcx, r14
movaps xmm2, xmm1
mov byte [rdi + 0x10], 0
call fcn.1400133c0
jmp case.0x1400403b0.527
xor esi, esi
lea eax, [rdx - 0x204]
test eax, 0xfffffffd
mov r15d, esi
mov eax, 1
mov ebx, 2
cmove r15d, eax
lea eax, [rdx - 0x207]
test eax, 0xfffffffd
lea eax, [rdx - 0x20b]
cmove r15d, ebx
test eax, 0xfffffffd
jne 0x140040428
shr r8, 0x10
mov r15d, esi
cmp r8w, 1
setne r15b
add r15d, 3
cmp dword [rdi + 0x14], esi
jne 0x140040441
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x140040441
mov rcx, r12
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rdi + 0x14]
mov r8b, 1
bts eax, r15d
mov edx, r15d
mov rcx, r14
mov dword [rdi + 0x14], eax
call fcn.140013550
jmp case.0x1400403b0.527
xor esi, esi
cmp edx, 0x205
mov ebx, esi
sete bl
cmp edx, 0x208
jne 0x14004047a
mov ebx, 2
jmp 0x140040493
cmp edx, 0x20c
jne 0x140040493
shr r8, 0x10
mov ebx, esi
cmp r8w, 1
setne bl
add ebx, 3
mov eax, dword [rdi + 0x14]
btr eax, ebx
mov dword [rdi + 0x14], eax
test eax, eax
jne 0x1400404b1
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r12
jne 0x1400404b1
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r8d, r8d
mov edx, ebx
mov rcx, r14
call fcn.140013550
jmp case.0x1400403b0.527
shr r8, 0x10
xorps xmm1, xmm1
movsx eax, r8w
mov rcx, r14
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x140055040]
call fcn.140013660
jmp case.0x1400403b0.527
shr r8, 0x10
xorps xmm2, xmm2
movsx eax, r8w
mov rcx, r14
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x140055040]
call fcn.140013660
jmp case.0x1400403b0.527
cmp r8d, 7
jne case.0x1400403b0.527
mov byte [rdi + 0x2d], 1
xor eax, eax
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14004ab60
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret