Function at 0x10021680
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007c705
push eax
mov dword fs:[0], esp
mov ecx, dword [0x1015b828]
push ebx
sub esp, 0x38
mov eax, dword [ecx]
push esi
push edi
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x10022048
cmp byte [0x1015efbe], 0
je 0x10022048
mov ecx, dword [0x1015b828]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [0x1015ef81], 0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x100218c7
push dword [0x1015ef84]
call esi
test ax, ax
je 0x100218c7
cmp byte [0x1015efc0], 0
je 0x100218c7
call fcn.10012390
movaps xmm0, xmmword [0x100e07a0]
lea ecx, [ebp - 0x30]
mov edi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
inc eax
mov dword [ebp - 0x34], 0xf
movups xmmword [ebp - 0x30], xmm0
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
inc eax
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x6a6c
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 0
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x100217ee
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100217e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100217e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
call fcn.10012390
movaps xmm0, xmmword [0x100e07d0]
lea ecx, [ebp - 0x30]
mov edi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x34], 0xf
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x6a6c
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 1
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x100218c3
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100218b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100218b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
add dword [ebp - 0x14], 0x1c
cmp byte [0x1015ef91], 0
je 0x10021aa2
push dword [0x1015ef94]
call esi
test ax, ax
je 0x10021aa2
cmp byte [0x1015efcc], 0
je 0x10021aa2
call fcn.10012390
movaps xmm0, xmmword [0x100e07a0]
lea ecx, [ebp - 0x30]
mov edi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
inc eax
mov dword [ebp - 0x34], 0xf
movups xmmword [ebp - 0x30], xmm0
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
inc eax
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x6a6d
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 2
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x100219c9
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100219bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100219bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
call fcn.10012390
movaps xmm0, xmmword [0x100e07d0]
lea ecx, [ebp - 0x30]
mov edi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x34], 0xf
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x6a6d
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 3
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10021a9e
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021a94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021a94
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
add dword [ebp - 0x14], 0x1c
cmp byte [0x1015ef88], 0
je 0x10021c8f
push dword [0x1015ef8c]
call esi
test ax, ax
je 0x10021c8f
cmp byte [0x1015f004], 0
je 0x10021c8f
call fcn.10012390
movaps xmm0, xmmword [0x100e07a0]
lea ecx, [ebp - 0x30]
mov edi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
inc eax
mov dword [ebp - 0x34], 0xf
movups xmmword [ebp - 0x30], xmm0
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
inc eax
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x6265
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 4
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10021ba4
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021b9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021b9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
call fcn.10012390
cmp byte [0x1015bcf8], 0
lea ecx, [ebp - 0x30]
mov edi, eax
je 0x10021bc0
movups xmm0, xmmword [0x1015f21c]
jmp 0x10021bc7
movaps xmm0, xmmword [0x100e07d0]
mov eax, dword [ebp - 0x18]
cdq
movd xmm2, dword [0x1015efa0]
sub eax, edx
sar eax, 1
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 2
cvtdq2ps xmm2, xmm2
mov dword [ebp - 0x34], 0xf
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x6265
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 5
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10021c8b
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021c81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021c81
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
add dword [ebp - 0x14], 0x1c
cmp byte [0x1015ef98], 0
je 0x10021e6b
cmp byte [0x1015efc1], 0
je 0x10021e6b
call fcn.10012390
movaps xmm0, xmmword [0x100e07a0]
lea ecx, [ebp - 0x30]
mov edi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
inc eax
mov dword [ebp - 0x34], 0xf
movups xmmword [ebp - 0x30], xmm0
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
inc eax
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x7370
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 6
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10021d80
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021d76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021d76
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
call fcn.10012390
cmp byte [0x1015bd04], 0
lea ecx, [ebp - 0x30]
mov edi, eax
je 0x10021d9c
movups xmm0, xmmword [0x1015f22c]
jmp 0x10021da3
movaps xmm0, xmmword [0x100e07d0]
mov eax, dword [ebp - 0x18]
cdq
movd xmm2, dword [0x1015efa0]
sub eax, edx
sar eax, 1
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 2
cvtdq2ps xmm2, xmm2
mov dword [ebp - 0x34], 0xf
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, 0x7370
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 7
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10021e67
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021e5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021e5d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
add dword [ebp - 0x14], 0x1c
cmp byte [0x1015ef90], 0
je 0x10022048
push dword [0x1015efac]
call esi
test ax, ax
je 0x10022048
cmp byte [0x1015efe8], 0
je 0x10022048
call fcn.10012390
movaps xmm0, xmmword [0x100e07a0]
lea ecx, [ebp - 0x30]
mov esi, eax
movd xmm2, dword [0x1015efa0]
mov eax, dword [ebp - 0x18]
mov edi, 0x626a
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
inc eax
mov dword [ebp - 0x34], 0xf
movups xmmword [ebp - 0x30], xmm0
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
inc eax
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], di
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 8
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10021f6d
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021f63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021f63
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
call fcn.10012390
cmp byte [0x1015bce9], 0
lea ecx, [ebp - 0x30]
mov esi, eax
je 0x10021f89
movups xmm0, xmmword [0x1015f20c]
jmp 0x10021f90
movaps xmm0, xmmword [0x100e07d0]
mov eax, dword [ebp - 0x18]
movd xmm2, dword [0x1015efa0]
cdq
sub eax, edx
mov dword [ebp - 0x38], 2
sar eax, 1
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x34], 0xf
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015ef9c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], di
mov byte [ebp - 0x46], 0
sub esp, 0x10
mov dword [ebp - 4], 9
movups xmm0, xmmword [ecx]
mov eax, esp
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push dword [0x1012581c]
push 0
push 1
push eax
call fcn.10076000
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10022048
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002203e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002203e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret