Function at 0x1003e0a5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10076040]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [0x100890f8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
push esi
mov esi, edx
push edi
test eax, eax
je case.0x1003e829.527
mov edx, dword [eax + 0x74]
lea edi, [eax + 8]
mov dword [esp + 0x18], edx
cmp esi, 0x200
ja 0x1003e811
je case.0x1003e09e.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x1003e829.527
movzx eax, byte [eax + 0x1003ea84]
jmp dword [eax*4 + 0x1003ea6c]
cmp esi, 0x100
je 0x1003e0ba
mov byte [esp + 0x54], 0
cmp esi, 0x104
jne 0x1003e0bf
mov byte [esp + 0x54], 1
cmp dword [ebp + 8], 0x100
jae case.0x1003e829.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 + 0x50], al
je 0x1003e109
test al, al
je 0x1003e0f6
movss xmm3, dword [0x1006ebec]
jmp 0x1003e0f9
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x1000
call fcn.100167f0
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003e140
test al, al
je 0x1003e12d
movss xmm3, dword [0x1006ebec]
jmp 0x1003e130
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x2000
call fcn.100167f0
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003e177
test al, al
je 0x1003e164
movss xmm3, dword [0x1006ebec]
jmp 0x1003e167
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x4000
call fcn.100167f0
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003e1ae
test al, al
je 0x1003e19b
movss xmm3, dword [0x1006ebec]
jmp 0x1003e19e
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x8000
call fcn.100167f0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1003e1c9
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1003db00
mov edi, eax
test edi, edi
je 0x1003e225
mov eax, dword [0x100890f8]
add eax, 8
mov dword [esp + 0x50], eax
cmp byte [eax + 0x3761], 0
je 0x1003e20f
cmp byte [esp + 0x54], 0
je 0x1003e1fc
movss xmm3, dword [0x1006ebec]
jmp 0x1003e1ff
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, eax
push edi
call fcn.100167f0
mov eax, dword [esp + 0x50]
cmp esi, 0x1ff
ja 0x1003e225
mov dword [eax + esi*4 + 0xb4], edi
mov dword [eax + edi*4 + 0xb4], esi
cmp esi, 0x10
jne 0x1003e301
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003e28e
mov eax, dword [0x100890f8]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1003e27a
test cl, cl
je 0x1003e267
movss xmm3, dword [0x1006ebec]
jmp 0x1003e26a
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x210
call fcn.100167f0
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003e829.527
mov esi, dword [0x100890f8]
cmp byte [esi + 0x3769], 0
je 0x1003e2da
test cl, cl
je 0x1003e2c3
movss xmm0, dword [0x1006ebec]
jmp 0x1003e2c6
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.100167f0
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1003e3dd
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003e36a
mov eax, dword [0x100890f8]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1003e356
test cl, cl
je 0x1003e343
movss xmm3, dword [0x1006ebec]
jmp 0x1003e346
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x20f
call fcn.100167f0
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003e829.527
mov esi, dword [0x100890f8]
cmp byte [esi + 0x3769], 0
je 0x1003e3b6
test cl, cl
je 0x1003e39f
movss xmm0, dword [0x1006ebec]
jmp 0x1003e3a2
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.100167f0
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1003e829.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003e446
mov eax, dword [0x100890f8]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1003e432
test cl, cl
je 0x1003e41f
movss xmm3, dword [0x1006ebec]
jmp 0x1003e422
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x211
call fcn.100167f0
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003e829.527
mov esi, dword [0x100890f8]
cmp byte [esi + 0x3769], 0
je 0x1003e492
test cl, cl
je 0x1003e47b
movss xmm0, dword [0x1006ebec]
jmp 0x1003e47e
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.100167f0
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
cmp esi, 7
mov esi, dword [esp + 0x54]
sete byte [esp + 0x17]
mov edx, dword [esi + 0x3780]
sub edx, 1
js 0x1003e4ed
mov eax, dword [esi + 0x3788]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
nop dword [eax]
cmp dword [eax], 6
je 0x1003e540
sub eax, 0x18
sub edx, 1
jns 0x1003e4e0
cmp byte [esi + 0x3768], 0
sete al
mov dl, byte [esp + 0x17]
cmp al, dl
je case.0x1003e829.527
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
lea ecx, [esi + 0x3780]
push eax
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x24], 6
mov byte [esp + 0x2c], dl
call fcn.1002bec0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
jmp 0x1003e4f7
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1003e6cb
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1003e829.527
movzx esi, cx
mov eax, esi
test ax, ax
jne 0x1003e57c
cmp word [edi + 0x3764], ax
je case.0x1003e829.527
cmp byte [edi + 0x3761], 0
je case.0x1003e829.527
movzx edx, word [edi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x50], 0xd800
cmp cx, word [esp + 0x50]
jne 0x1003e605
test dx, dx
je 0x1003e5eb
mov ecx, dword [0x100890f8]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push eax
movlpd qword [esp + 0x30], xmm0
lea ecx, [ecx + 0x3780]
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0xfffd
call fcn.1002bec0
mov word [edi + 0x3764], si
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1003e665
mov eax, 0xdc00
cmp cx, ax
je 0x1003e657
mov ecx, dword [0x100890f8]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push eax
movlpd qword [esp + 0x30], xmm0
lea ecx, [ecx + 0x3780]
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0xfffd
call fcn.1002bec0
mov eax, esi
jmp 0x1003e65c
mov eax, 0xfffd
xor ecx, ecx
mov word [edi + 0x3764], cx
movzx eax, ax
test eax, eax
je case.0x1003e829.527
cmp byte [edi + 0x3761], 0
je case.0x1003e829.527
mov ecx, dword [0x100890f8]
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
movlpd qword [esp + 0x30], xmm0
lea ecx, [ecx + 0x3780]
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
call fcn.1002bec0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 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 + 0x50]
jmp 0x1003e668
cmp word [ebp + 0xc], 1
jne case.0x1003e829.527
call fcn.1003d040
test al, al
je case.0x1003e829.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
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 0x1003e7b3
cmp esi, 0x200
mov dword [esp + 0x54], 0x12
mov eax, 2
mov dword [esp + 0x40], 0x10
cmovne eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x44], 0x80000000
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
test edx, edx
je 0x1003e79d
lea ecx, [esp + 0x40]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x20]
push ecx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
cmp esi, 0xa0
jne 0x1003e7e9
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1003e829.527
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
movd xmm2, eax
mov ecx, edi
movd xmm1, edx
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10016910
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x1003e829.527
movzx eax, byte [eax + 0x1003eba0]
jmp dword [eax*4 + 0x1003eb84]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x1003e829.527
cmp dword [edx + 4], ecx
jne 0x1003e851
mov dword [edx + 4], 0
movss xmm1, dword [0x1006ecd4]
mov ecx, edi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.10016910
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp esi, 0x204
je 0x1003e88f
cmp esi, 0x206
jne 0x1003e894
mov edi, 1
cmp esi, 0x207
je 0x1003e8a4
cmp esi, 0x209
jne 0x1003e8a9
mov edi, 2
cmp esi, 0x20b
je 0x1003e8b9
cmp esi, 0x20d
jne 0x1003e8c9
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 0x1003e8e7
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1003e8e3
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x54]
bts eax, edi
push 1
push edi
mov dword [edx + 0xc], eax
lea ecx, [ecx + 8]
call fcn.10016a30
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp esi, 0x205
sete cl
mov dword [esp + 0x54], ecx
cmp esi, 0x208
jne 0x1003e930
mov ecx, 2
jmp 0x1003e948
cmp esi, 0x20c
jne 0x1003e94c
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1003e96f
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x50]
jne 0x1003e96b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x54]
push 0
push ecx
mov ecx, edi
call fcn.10016a30
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
shr eax, 0x10
cmp byte [edi + 0x3761], 0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1006ec6c]
je case.0x1003e829.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1003e829.527
mov dword [esp + 0x28], 0
movss dword [esp + 0x2c], xmm1
jmp 0x1003ea0f
mov eax, dword [ebp + 8]
shr eax, 0x10
cmp byte [edi + 0x3761], 0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x1006ee20]
divss xmm1, dword [0x1006ec6c]
je case.0x1003e829.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1003e829.527
movss dword [esp + 0x28], xmm1
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 2
lea ecx, [ecx + 0x3780]
movlpd qword [esp + 0x34], xmm0
call fcn.1002bec0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1003e829.527
mov byte [edx + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1006067a
mov esp, ebp
pop ebp
ret