Function at 0x1002bda0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [0x100dbf3c]
mov dword [ebp - 8], ecx
push esi
mov esi, edx
push edi
test ebx, ebx
je case.0x1002c4f7.527
lea edi, [ebx + 8]
mov ebx, dword [ebx + 0x74]
mov dword [ebp - 0xc], ebx
cmp esi, 0x200
ja 0x1002c4df
je case.0x1002bdec.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x1002c4f7.527
movzx eax, byte [eax + 0x1002c6dc]
jmp dword [eax*4 + 0x1002c6c0]
cmp esi, 0x100
je 0x1002be07
cmp esi, 0x104
je 0x1002be07
xor bl, bl
jmp 0x1002be09
mov bl, 1
cmp dword [ebp + 8], 0x100
mov byte [ebp - 8], bl
jae case.0x1002c4f7.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3889], 0
mov byte [ebp - 0xc], al
je 0x1002be54
test al, al
je 0x1002be42
movss xmm3, dword [0x100ccaf0]
jmp 0x1002be45
xorps xmm3, xmm3
push dword [ebp - 0xc]
mov ecx, edi
push 0x1000
call fcn.100061b0
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3889], 0
mov byte [ebp - 0xc], al
je 0x1002be89
test al, al
je 0x1002be77
movss xmm3, dword [0x100ccaf0]
jmp 0x1002be7a
xorps xmm3, xmm3
push dword [ebp - 0xc]
mov ecx, edi
push 0x2000
call fcn.100061b0
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3889], 0
mov byte [ebp - 0xc], al
je 0x1002bebe
test al, al
je 0x1002beac
movss xmm3, dword [0x100ccaf0]
jmp 0x1002beaf
xorps xmm3, xmm3
push dword [ebp - 0xc]
mov ecx, edi
push 0x4000
call fcn.100061b0
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3889], 0
mov byte [ebp - 0xc], al
je 0x1002bef3
test al, al
je 0x1002bee1
movss xmm3, dword [0x100ccaf0]
jmp 0x1002bee4
xorps xmm3, xmm3
push dword [ebp - 0xc]
mov ecx, edi
push 0x8000
call fcn.100061b0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1002bf0e
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1002b7a0
mov dword [ebp - 0xc], eax
cmp eax, 0x262
jne 0x1002bf64
test bl, bl
jne 0x1002bf68
mov ecx, dword [0x100dbf3c]
cmp byte [ecx + 0x3891], bl
lea edi, [ecx + 8]
je 0x1002bf49
movss xmm3, dword [0x100ccaf0]
mov ecx, edi
push 1
push eax
call fcn.100061b0
mov eax, dword [ebp - 0xc]
cmp esi, 0x1ff
ja 0x1002bf68
mov dword [edi + esi*4 + 0xb0], 0x262
mov dword [edi + 0xa38], esi
jmp 0x1002bf68
test eax, eax
je 0x1002bf76
push ecx
push esi
mov dl, bl
mov ecx, eax
call fcn.1002adb0
add esp, 8
cmp esi, 0x10
jne 0x1002c03e
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x1002bfda
mov eax, dword [0x100dbf3c]
cmp byte [eax + 0x3891], 0
lea esi, [eax + 8]
je 0x1002bfc6
test bl, bl
je 0x1002bfb4
movss xmm3, dword [0x100ccaf0]
jmp 0x1002bfb7
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x210
call fcn.100061b0
mov dword [esi + 0x330], 0x210
mov dword [esi + 0x8f0], 0xa0
push 0xa1
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1002c4f7.527
mov esi, dword [0x100dbf3c]
cmp byte [esi + 0x3891], 0
je 0x1002c021
test bl, bl
je 0x1002c00b
movss xmm0, dword [0x100ccaf0]
jmp 0x1002c00e
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.100061b0
mov dword [esi + 0x33c], 0x214
xor eax, eax
mov dword [esi + 0x908], 0xa1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1002c106
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x1002c0a2
mov eax, dword [0x100dbf3c]
cmp byte [eax + 0x3891], 0
lea esi, [eax + 8]
je 0x1002c08e
test bl, bl
je 0x1002c07c
movss xmm3, dword [0x100ccaf0]
jmp 0x1002c07f
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x20f
call fcn.100061b0
mov dword [esi + 0x338], 0x20f
mov dword [esi + 0x8ec], 0xa2
push 0xa3
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1002c4f7.527
mov esi, dword [0x100dbf3c]
cmp byte [esi + 0x3891], 0
je 0x1002c0e9
test bl, bl
je 0x1002c0d3
movss xmm0, dword [0x100ccaf0]
jmp 0x1002c0d6
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.100061b0
mov dword [esi + 0x344], 0x213
xor eax, eax
mov dword [esi + 0x904], 0xa3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1002c4f7.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x1002c16a
mov eax, dword [0x100dbf3c]
cmp byte [eax + 0x3891], 0
lea esi, [eax + 8]
je 0x1002c156
test bl, bl
je 0x1002c144
movss xmm3, dword [0x100ccaf0]
jmp 0x1002c147
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x211
call fcn.100061b0
mov dword [esi + 0x340], 0x211
mov dword [esi + 0x8f4], 0xa4
push 0xa5
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x1002c4f7.527
mov esi, dword [0x100dbf3c]
cmp byte [esi + 0x3891], 0
je 0x1002c1b1
test bl, bl
je 0x1002c19b
movss xmm0, dword [0x100ccaf0]
jmp 0x1002c19e
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.100061b0
mov dword [esi + 0x34c], 0x215
xor eax, eax
mov dword [esi + 0x90c], 0xa5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0xdf4]
cmp esi, 7
mov edx, dword [ebx + 0x3f20]
lea eax, [ebx + 0x3f20]
sete byte [ebp - 1]
sub edx, 1
js 0x1002c20d
mov eax, dword [ebx + 0x3f28]
lea ecx, [edx*8]
sub ecx, edx
lea eax, [eax + ecx*4]
nop
cmp dword [eax], 6
je 0x1002c276
sub eax, 0x1c
sub edx, 1
jns 0x1002c200
cmp byte [ebx + 0x3890], 0
sete al
mov dl, byte [ebp - 1]
cmp al, dl
je case.0x1002c4f7.527
cmp byte [edi + 0x5f], 0
je 0x1002c231
cmp esi, 7
jne case.0x1002c4f7.527
mov eax, dword [ebx + 0x3f3c]
lea ecx, [ebx + 0x3f20]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], eax
inc eax
mov dword [ebx + 0x3f3c], eax
lea eax, [ebp - 0x48]
push eax
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x48], 6
mov byte [ebp - 0x3c], dl
call fcn.1001b5f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 0xc]
jmp 0x1002c217
call fcn.1002aad0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1002c385
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1002c4f7.527
movzx esi, cx
mov eax, esi
test ax, ax
jne 0x1002c2c0
cmp word [edi + 0x388c], ax
je case.0x1002c4f7.527
cmp byte [edi + 0x3889], 0
je case.0x1002c4f7.527
movzx edx, word [edi + 0x388c]
mov ecx, eax
and ecx, 0xfc00
mov ebx, 0xd800
cmp cx, bx
jne 0x1002c344
test dx, dx
je 0x1002c334
mov ecx, dword [edi + 0xdf4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 5
mov eax, dword [ecx + 0x3f3c]
mov dword [ebp - 0x40], eax
inc eax
mov dword [ecx + 0x3f3c], eax
lea eax, [ebp - 0x48]
push eax
add ecx, 0x3f20
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x3c], 0xfffd
call fcn.1001b5f0
mov word [edi + 0x388c], si
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1002c371
mov eax, 0xdc00
cmp cx, ax
je 0x1002c363
push 0xfffd
mov ecx, edi
call fcn.10006140
mov eax, esi
jmp 0x1002c368
mov eax, 0xfffd
xor ecx, ecx
mov word [edi + 0x388c], cx
movzx eax, ax
mov ecx, edi
push eax
call fcn.10006140
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 8]
mov ecx, edi
push eax
call fcn.10006140
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1002c4f7.527
call fcn.1002ac80
test al, al
je case.0x1002c4f7.527
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x1002c3f5
mov dword [ebp - 0xc], 2
jmp 0x1002c402
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 8]
xor eax, eax
mov edx, dword [ebp - 8]
cmp esi, 0x200
mov dword [ebx + 4], edx
setne al
inc eax
mov dword [ebp - 0x14], eax
cmp ecx, eax
je 0x1002c483
cmp esi, 0x200
mov dword [ebp - 0x10], 0x12
mov eax, 2
mov dword [ebp - 0x2c], 0x10
cmovne eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x28], getsockname
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0
test ecx, ecx
je 0x1002c474
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [ebp - 0x3c]
push ecx
call eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebp + 0xc]
movsx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x1c], eax
movsx eax, cx
mov dword [ebp - 0x18], eax
cmp esi, 0xa0
jne 0x1002c4b0
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1002c4f7.527
mov eax, dword [edi + 0xdf4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x3f38], ecx
mov ecx, edi
movd xmm2, dword [ebp - 0x18]
movd xmm1, dword [ebp - 0x1c]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.100062e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x1002c4f7.527
movzx eax, byte [eax + 0x1002c7f8]
jmp dword [eax*4 + 0x1002c7dc]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [ebx + 8], eax
jne case.0x1002c4f7.527
cmp dword [ebx + 4], ecx
jne 0x1002c51f
mov dword [ebx + 4], 0
movss xmm1, dword [0x100ccbac]
mov ecx, edi
movaps xmm2, xmm1
mov dword [ebx + 8], 0
call fcn.100062e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1002bd70
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp esi, 0x204
je 0x1002c55b
cmp esi, 0x206
jne 0x1002c560
mov ebx, 1
cmp esi, 0x207
je 0x1002c570
cmp esi, 0x209
jne 0x1002c575
mov ebx, 2
cmp esi, 0x20b
je 0x1002c585
cmp esi, 0x20d
jne 0x1002c595
mov ebx, dword [ebp + 8]
shr ebx, 0x10
dec ebx
neg ebx
sbb ebx, ebx
neg ebx
add ebx, 3
mov esi, dword [ebp - 0xc]
cmp dword [esi + 0xc], 0
jne 0x1002c5b1
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1002c5b1
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
bts eax, ebx
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0xdf4]
push 1
push ebx
mov dword [eax + 0x3f38], ecx
mov ecx, edi
call fcn.10006420
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1002bd70
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp esi, 0x205
sete bl
cmp esi, 0x208
jne 0x1002c5fe
mov ebx, 2
jmp 0x1002c616
cmp esi, 0x20c
jne 0x1002c616
mov ebx, dword [ebp + 8]
shr ebx, 0x10
dec ebx
neg ebx
sbb ebx, ebx
neg ebx
add ebx, 3
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0xc]
btr eax, ebx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1002c637
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 8]
jne 0x1002c637
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0xdf4]
mov ecx, dword [ebp - 0x14]
push 0
push ebx
mov dword [eax + 0x3f38], ecx
mov ecx, edi
call fcn.10006420
xor eax, eax
pop edi
pop esi
pop ebx
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 [0x100ccb60]
call fcn.100064e0
xor eax, eax
pop edi
pop esi
pop ebx
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
divss xmm1, dword [0x100ccba0]
call fcn.100064e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1002c4f7.527
mov byte [ebx + 0x29], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret