Function at 0x1002d01a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x101dbe34]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
push esi
mov esi, edx
push edi
test eax, eax
je case.0x1002d6e2.527
mov edx, dword [eax + 0x74]
lea edi, [eax + 8]
mov dword [esp + 0xc], edx
cmp esi, 0x200
ja 0x1002d6ca
je case.0x1002d013.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x1002d6e2.527
movzx eax, byte [eax + 0x1002d8a8]
jmp dword [eax*4 + 0x1002d890]
cmp esi, 0x100
je 0x1002d02f
mov byte [esp + 0xc], 0
cmp esi, 0x104
jne 0x1002d034
mov byte [esp + 0xc], 1
cmp dword [ebp + 8], 0x100
jae case.0x1002d6e2.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002d07e
test al, al
je 0x1002d06b
movss xmm3, dword [0x100d04d4]
jmp 0x1002d06e
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, edi
push 0x1000
call fcn.10008110
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002d0b5
test al, al
je 0x1002d0a2
movss xmm3, dword [0x100d04d4]
jmp 0x1002d0a5
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, edi
push 0x2000
call fcn.10008110
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002d0ec
test al, al
je 0x1002d0d9
movss xmm3, dword [0x100d04d4]
jmp 0x1002d0dc
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, edi
push 0x4000
call fcn.10008110
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x14], al
je 0x1002d123
test al, al
je 0x1002d110
movss xmm3, dword [0x100d04d4]
jmp 0x1002d113
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, edi
push 0x8000
call fcn.10008110
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1002d13e
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1002ca80
mov edi, eax
test edi, edi
je 0x1002d19a
mov eax, dword [0x101dbe34]
add eax, 8
mov dword [esp + 0x14], eax
cmp byte [eax + 0x3761], 0
je 0x1002d184
cmp byte [esp + 0xc], 0
je 0x1002d171
movss xmm3, dword [0x100d04d4]
jmp 0x1002d174
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, eax
push edi
call fcn.10008110
mov eax, dword [esp + 0x14]
cmp esi, 0x1ff
ja 0x1002d19a
mov dword [eax + esi*4 + 0xb4], edi
mov dword [eax + edi*4 + 0xb4], esi
cmp esi, 0x10
jne 0x1002d26b
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002d203
mov eax, dword [0x101dbe34]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1002d1ef
test cl, cl
je 0x1002d1dc
movss xmm3, dword [0x100d04d4]
jmp 0x1002d1df
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x210
call fcn.10008110
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1002d6e2.527
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002d24f
test cl, cl
je 0x1002d238
movss xmm0, dword [0x100d04d4]
jmp 0x1002d23b
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.10008110
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1002d33c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002d2d4
mov eax, dword [0x101dbe34]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1002d2c0
test cl, cl
je 0x1002d2ad
movss xmm3, dword [0x100d04d4]
jmp 0x1002d2b0
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x20f
call fcn.10008110
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1002d6e2.527
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002d320
test cl, cl
je 0x1002d309
movss xmm0, dword [0x100d04d4]
jmp 0x1002d30c
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.10008110
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1002d6e2.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1002d3a5
mov eax, dword [0x101dbe34]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1002d391
test cl, cl
je 0x1002d37e
movss xmm3, dword [0x100d04d4]
jmp 0x1002d381
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x211
call fcn.10008110
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1002d6e2.527
mov esi, dword [0x101dbe34]
cmp byte [esi + 0x3769], 0
je 0x1002d3f1
test cl, cl
je 0x1002d3da
movss xmm0, dword [0x100d04d4]
jmp 0x1002d3dd
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.10008110
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp esi, 7
mov esi, dword [edi + 0xdb0]
sete byte [esp + 0xb]
mov edx, dword [eax + 0x3780]
sub edx, 1
js 0x1002d443
mov eax, dword [eax + 0x3788]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
cmp dword [eax], 6
je 0x1002d492
sub eax, 0x18
sub edx, 1
jns 0x1002d436
cmp byte [esi + 0x3768], 0
sete al
mov cl, byte [esp + 0xb]
cmp al, cl
je case.0x1002d6e2.527
mov eax, dword [esi + 0x3780]
add esi, 0x3780
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], 6
mov edi, dword [esi + 4]
mov byte [esp + 0x38], cl
cmp eax, edi
jne 0x1002d4ab
lea ecx, [eax + 1]
test edi, edi
je 0x1002d497
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1002d49c
mov al, byte [eax + 8]
jmp 0x1002d44d
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001bfe0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x30]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1002d58f
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1002d6e2.527
movzx esi, cx
mov eax, esi
test ax, ax
jne 0x1002d504
cmp word [edi + 0x3764], ax
je case.0x1002d6e2.527
cmp byte [edi + 0x3761], 0
je case.0x1002d6e2.527
movzx edx, word [edi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x14], 0xd800
cmp cx, word [esp + 0x14]
jne 0x1002d54f
test dx, dx
je 0x1002d540
push 0xfffd
mov ecx, edi
call fcn.10008070
mov word [edi + 0x3764], si
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1002d57c
mov eax, 0xdc00
cmp cx, ax
je 0x1002d56e
push 0xfffd
mov ecx, edi
call fcn.10008070
mov eax, esi
jmp 0x1002d573
mov eax, 0xfffd
xor ecx, ecx
mov word [edi + 0x3764], cx
movzx eax, ax
mov ecx, edi
push eax
call fcn.10008070
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp + 0x10]
mov ecx, edi
push eax
call fcn.10008070
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1002d6e2.527
call fcn.1002bf90
test al, al
je case.0x1002d6e2.527
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edx + 4], ecx
mov edx, dword [edx + 8]
cmp esi, 0x200
setne al
inc eax
mov dword [esp + 0x1c], eax
cmp edx, eax
je 0x1002d677
cmp esi, 0x200
mov dword [esp + 0x14], 0x12
mov eax, 2
mov dword [esp + 0x20], 0x10
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x24], getpeername
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
test edx, edx
je 0x1002d661
lea ecx, [esp + 0x20]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x30]
push ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp esi, 0xa0
jne 0x1002d6ad
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1002d6e2.527
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
movd xmm2, eax
mov ecx, edi
movd xmm1, edx
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10008270
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x1002d6e2.527
movzx eax, byte [eax + 0x1002d9c4]
jmp dword [eax*4 + 0x1002d9a8]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x1002d6e2.527
cmp dword [edx + 4], ecx
jne 0x1002d70a
mov dword [edx + 4], 0
movss xmm1, dword [0x100d0654]
mov ecx, edi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.10008270
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp esi, 0x204
je 0x1002d73d
cmp esi, 0x206
jne 0x1002d742
mov edi, 1
cmp esi, 0x207
je 0x1002d752
cmp esi, 0x209
jne 0x1002d757
mov edi, 2
cmp esi, 0x20b
je 0x1002d767
cmp esi, 0x20d
jne 0x1002d777
mov edi, dword [ebp + 8]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
cmp dword [edx + 0xc], 0
jne 0x1002d795
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1002d791
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
bts eax, edi
push 1
push edi
mov dword [edx + 0xc], eax
lea ecx, [ecx + 8]
call fcn.100083e0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp esi, 0x205
sete cl
mov dword [esp + 0xc], ecx
cmp esi, 0x208
jne 0x1002d7d3
mov ecx, 2
jmp 0x1002d7eb
cmp esi, 0x20c
jne 0x1002d7ef
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1002d812
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x10]
jne 0x1002d80e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0xc]
push 0
push ecx
mov ecx, edi
call fcn.100083e0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, edi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x100d05dc]
call fcn.100084d0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
mov ecx, edi
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x100d0e30]
divss xmm1, dword [0x100d05dc]
call fcn.100084d0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1002d6e2.527
mov byte [edx + 0x25], 1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret