Function at 0x140021890
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1400ea340]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov r13, rcx
cmp byte [0x1400ea3f8], 0
jne 0x140021c90
cmp byte [0x14018b5ad], 0
je 0x140021c90
lea rdx, [rcx + 0xa0]
lea rcx, [rbp + 0xc8]
call fcn.14001d1d0
lea rdx, [rbp + 0xc8]
mov rdi, qword [rbp + 0xc8]
mov rsi, qword [rbp + 0xe0]
cmp rsi, 0xf
cmova rdx, rdi
lea rbx, [0x140115c08]
mov rcx, rbx
mov r15, qword [0x140115c20]
cmp r15, 0xf
cmova rcx, qword [0x140115c08]
mov r8, qword [0x140115c18]
mov r14, qword [rbp + 0xd8]
cmp r8, r14
jne 0x140021948
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400219ab
mov byte [0x14018b5cc], 0
lea r9, [rbp + 0xc8]
cmp rsi, 0xf
cmova r9, rdi
cmp r14, r15
ja 0x14002198b
cmp r15, 0xf
cmova rbx, qword [0x140115c08]
mov qword [0x140115c18], r14
mov r8, r14
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rbx], 0
jmp 0x1400219ab
mov rdx, r14
mov rcx, rbx
call fcn.14001e5f0
mov rsi, qword [rbp + 0xe0]
mov r14, qword [rbp + 0xd8]
mov rdi, qword [rbp + 0xc8]
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups xmmword [rbp + 0xe8], xmm0
mov qword [rbp + 0xf8], rax
vmovups xmmword [rsp + 0x40], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x50], xmm1
lea r8d, [rax + 0xc]
lea rdx, str.smokegrenade
lea rcx, [rsp + 0x40]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x60], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x70], xmm1
mov r8d, 9
lea rdx, str.flashbang
lea rcx, [rsp + 0x60]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x80], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x70], xmm1
mov r8d, 9
lea rdx, str.hegrenade
lea rcx, [rbp - 0x80]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x60], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x50], xmm1
mov r8d, 7
lea rdx, str.molotov
lea rcx, [rbp - 0x60]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x40], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x30], xmm1
mov r8d, 5
lea rdx, str.decoy
lea rcx, [rbp - 0x40]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x20], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x10], xmm1
mov r8d, 0xa
lea rdx, str.incgrenade
lea rcx, [rbp - 0x20]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0x10], xmm1
mov r8d, 3
lea rdx, [0x1400c9304]
lea rcx, [rbp]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x20], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0x30], xmm1
mov r8d, 5
lea rdx, str.ssg08
lea rcx, [rbp + 0x20]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x40], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0x50], xmm1
mov r8d, 3
lea rdx, [0x1400c942c]
lea rcx, [rbp + 0x40]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x60], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0x70], xmm1
mov r8d, 5
lea rdx, str.sg556
lea rcx, [rbp + 0x60]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x80], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0x90], xmm1
mov r8d, 5
lea rdx, str.knife
lea rcx, [rbp + 0x80]
call fcn.1400091d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0xa0], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0xb0], xmm1
mov r8d, 2
lea rdx, [0x1400c94d0]
lea rcx, [rbp + 0xa0]
call fcn.1400091d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xe8]
call fcn.14001ce70
lea r9, [fcn.140008ac0]
mov edx, 0x20
lea r8d, [rdx - 0x14]
lea rcx, [rsp + 0x40]
call fcn.1400b8cbc
mov rbx, qword [rbp + 0xe8]
mov r15, qword [rbp + 0xf0]
cmp rbx, r15
je 0x140021cbb
nop word [rax + rax]
lea rdx, [rbp + 0xc8]
cmp rsi, 0xf
cmova rdx, rdi
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140021c30
mov rcx, qword [rbx]
cmp r8, r14
jne 0x140021c3e
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140021c47
add rbx, 0x20
cmp rbx, r15
jne 0x140021c10
cmp rbx, r15
je 0x140021cbb
lea rcx, [rbp + 0xe8]
call fcn.14001d4e0
cmp rsi, 0xf
jbe 0x140021c90
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140021c87
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021e20
mov rcx, rdi
call fcn.1400b8fcc
nop
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.1400b8b40
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
xor r14d, r14d
mov rcx, qword [0x14018b6a0]
test rcx, rcx
je 0x140021d2f
mov eax, dword [0x14018b6a8]
test eax, eax
je 0x140021d01
mov edx, dword [0x140115b64]
add rdx, qword [r13 + 0x48]
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 8]
lea r8, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x14018b6a8]
mov rcx, qword [0x14018b6a0]
test rcx, rcx
je 0x140021d2f
test eax, eax
je 0x140021d2f
mov edx, dword [0x140115bf0]
add rdx, qword [rbp + 0x100]
mov qword [rsp + 0x20], r14
mov r9d, 1
lea r8, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rbp + 0xc0], r14b
je 0x140021d3f
mov byte [0x14018b5cc], r14b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
cmp byte [0x1400ea400], r14b
jne 0x140021d88
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140021d88
mov ecx, ebx
sub ecx, dword [0x14018b5d0]
cmp ecx, 0x1f4
jb 0x140021d88
cmp byte [0x14018b5cc], r14b
sete al
mov byte [0x14018b5cc], al
mov dword [0x14018b5d0], ebx
jmp 0x140021d8f
movzx eax, byte [0x14018b5cc]
test al, al
je 0x140021ddd
mov dword [rbp + 0xc4], 0x2d
cmp byte [0x1400ea3f8], r14b
jne 0x140021ddd
mov rcx, qword [0x14018b6a0]
test rcx, rcx
je 0x140021ddd
cmp dword [0x14018b6a8], r14d
je 0x140021ddd
mov edx, dword [0x140115bb8]
add rdx, qword [r13]
mov qword [rsp + 0x20], r14
mov r9d, 4
lea r8, [rbp + 0xc4]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, [rbp + 0xe8]
call fcn.14001d4e0
cmp rsi, 0xf
jbe 0x140021c90
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140021c87
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021c87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3