Function at 0x1006b770
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x1008b040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [0x10116ebc]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
push esi
push edi
test ecx, ecx
je case.0x1006bf40.527
mov esi, dword [ecx + 0x74]
lea edi, [ecx + 8]
mov dword [esp + 0x18], esi
cmp edx, 0x200
ja 0x1006bf28
je 0x1006be63
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x1006bf40.527
movzx eax, byte [eax + 0x1006c1ac]
jmp dword [eax*4 + 0x1006c198]
cmp edx, 0x100
je 0x1006b7eb
mov byte [esp + 0xc], 0
cmp edx, 0x104
jne 0x1006b7f0
mov byte [esp + 0xc], 1
cmp dword [ebp + 8], 0x100
jae case.0x1006bf40.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 + 0x18], al
je 0x1006b83a
test al, al
je 0x1006b827
movss xmm3, dword [0x10085708]
jmp 0x1006b82a
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, edi
push 0x1000
call fcn.1002a980
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1006b871
test al, al
je 0x1006b85e
movss xmm3, dword [0x10085708]
jmp 0x1006b861
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, edi
push 0x2000
call fcn.1002a980
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1006b8a8
test al, al
je 0x1006b895
movss xmm3, dword [0x10085708]
jmp 0x1006b898
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, edi
push 0x4000
call fcn.1002a980
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1006b8df
test al, al
je 0x1006b8cc
movss xmm3, dword [0x10085708]
jmp 0x1006b8cf
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, edi
push 0x8000
call fcn.1002a980
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1006b8fa
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1006b230
mov edi, eax
test edi, edi
je 0x1006b956
mov eax, dword [0x10116ebc]
add eax, 8
mov dword [esp + 0x18], eax
cmp byte [eax + 0x3761], 0
je 0x1006b940
cmp byte [esp + 0xc], 0
je 0x1006b92d
movss xmm3, dword [0x10085708]
jmp 0x1006b930
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, eax
push edi
call fcn.1002a980
mov eax, dword [esp + 0x18]
cmp esi, 0x1ff
ja 0x1006b956
mov dword [eax + esi*4 + 0xb4], edi
mov dword [eax + edi*4 + 0xb4], esi
cmp esi, 0x10
jne 0x1006ba32
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 0x1006b9bf
mov eax, dword [0x10116ebc]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1006b9ab
test cl, cl
je 0x1006b998
movss xmm3, dword [0x10085708]
jmp 0x1006b99b
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x210
call fcn.1002a980
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.0x1006bf40.527
mov esi, dword [0x10116ebc]
cmp byte [esi + 0x3769], 0
je 0x1006ba0b
test cl, cl
je 0x1006b9f4
movss xmm0, dword [0x10085708]
jmp 0x1006b9f7
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.1002a980
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1006bb0e
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 0x1006ba9b
mov eax, dword [0x10116ebc]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1006ba87
test cl, cl
je 0x1006ba74
movss xmm3, dword [0x10085708]
jmp 0x1006ba77
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x20f
call fcn.1002a980
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.0x1006bf40.527
mov esi, dword [0x10116ebc]
cmp byte [esi + 0x3769], 0
je 0x1006bae7
test cl, cl
je 0x1006bad0
movss xmm0, dword [0x10085708]
jmp 0x1006bad3
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.1002a980
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1006bf40.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 0x1006bb77
mov eax, dword [0x10116ebc]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1006bb63
test cl, cl
je 0x1006bb50
movss xmm3, dword [0x10085708]
jmp 0x1006bb53
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x211
call fcn.1002a980
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.0x1006bf40.527
mov esi, dword [0x10116ebc]
cmp byte [esi + 0x3769], 0
je 0x1006bbc3
test cl, cl
je 0x1006bbac
movss xmm0, dword [0x10085708]
jmp 0x1006bbaf
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.1002a980
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
cmp edx, 7
lea esi, [ecx + 0x3780]
mov edx, dword [esi]
sete byte [esp + 0x13]
sub edx, 1
js 0x1006bc21
mov eax, dword [esp + 0xc]
lea ecx, [edx + edx*2]
mov eax, dword [eax + 0x3788]
lea eax, [eax + ecx*8]
nop
cmp dword [eax], 6
je 0x1006bc70
sub eax, 0x18
sub edx, 1
jns 0x1006bc10
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0x3768], 0
sete al
mov dl, byte [esp + 0x13]
cmp al, dl
je case.0x1006bf40.527
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
mov ecx, esi
push eax
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x24], 6
mov byte [esp + 0x2c], dl
call fcn.10042180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1006bc1d
mov al, byte [eax + 8]
jmp 0x1006bc2b
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1006bdae
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1006bf40.527
movzx esi, cx
mov eax, esi
test ax, ax
jne 0x1006bcb4
cmp word [edi + 0x3764], ax
je case.0x1006bf40.527
cmp byte [edi + 0x3761], 0
je case.0x1006bf40.527
movzx edx, word [edi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x18], 0xd800
cmp cx, word [esp + 0x18]
jne 0x1006bd3d
test dx, dx
je 0x1006bd23
mov ecx, dword [0x10116ebc]
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.10042180
mov word [edi + 0x3764], si
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1006bda9
mov eax, 0xdc00
cmp cx, ax
je 0x1006bd9b
mov ecx, dword [0x10116ebc]
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.10042180
mov eax, esi
xor ecx, ecx
mov word [edi + 0x3764], cx
movzx eax, ax
jmp 0x1006bdd2
xor ecx, ecx
mov eax, 0xfffd
mov word [edi + 0x3764], cx
movzx eax, ax
jmp 0x1006bdd2
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 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 + 0x18]
test eax, eax
je case.0x1006bf40.527
cmp byte [edi + 0x3761], 0
je case.0x1006bf40.527
mov ecx, dword [0x10116ebc]
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.10042180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1006bf40.527
call fcn.1006a750
test al, al
je case.0x1006bf40.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
cmp byte [esi + 8], 0
mov dword [esi + 4], eax
jne 0x1006be97
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [esi + 8], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x10116d50]
movsx esi, ax
shr eax, 0x10
movsx edi, ax
test ecx, ecx
jne 0x1006bed9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x100152f0
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x1c]
mov dword [0x10116d50], ecx
call fcn.1006c490
ucomiss xmm0, dword [0x10085668]
lahf
test ah, 0x44
jp 0x1006bef3
movss xmm0, dword [0x10085708]
movd xmm2, edi
movd xmm1, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0xc]
cvtdq2ps xmm1, xmm1
lea ecx, [ecx + 8]
divss xmm2, xmm0
divss xmm1, xmm0
call fcn.1002aa70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x1006bf40.527
movzx eax, byte [eax + 0x1006c2c8]
jmp dword [eax*4 + 0x1006c2ac]
mov ecx, dword [esp + 0x14]
cmp dword [esi + 4], ecx
jne 0x1006bf57
mov dword [esi + 4], 0
movss xmm1, dword [0x1008583c]
mov ecx, edi
movaps xmm2, xmm1
mov byte [esi + 8], 0
call fcn.1002aa70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp edx, 0x204
je 0x1006bf92
cmp edx, 0x206
jne 0x1006bf97
mov esi, 1
cmp edx, 0x207
je 0x1006bfa7
cmp edx, 0x209
jne 0x1006bfac
mov esi, 2
cmp edx, 0x20b
je 0x1006bfbc
cmp edx, 0x20d
jne 0x1006bfcc
mov esi, dword [ebp + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], 0
jne 0x1006bfef
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1006bfeb
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
bts eax, esi
push 1
mov dword [ecx + 0xc], eax
mov ecx, edi
push esi
call fcn.1002ab80
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 0xc], ecx
cmp edx, 0x208
jne 0x1006c033
mov ecx, 2
jmp 0x1006c04b
cmp edx, 0x20c
jne 0x1006c04f
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 [esi + 0xc]
btr eax, ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1006c072
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x14]
jne 0x1006c06e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0xc]
push 0
push ecx
mov ecx, edi
call fcn.1002ab80
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
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 [0x100857d0]
je case.0x1006bf40.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1006bf40.527
lea eax, [esp + 0x20]
movlpd qword [esp + 0x30], xmm0
push eax
add ecx, 0x3780
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
movss dword [esp + 0x30], xmm1
call fcn.10042180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
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 [0x100857d0]
je case.0x1006bf40.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1006bf40.527
lea eax, [esp + 0x20]
movlpd qword [esp + 0x30], xmm0
push eax
add ecx, 0x3780
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 1
movss dword [esp + 0x2c], xmm1
mov dword [esp + 0x30], 0
call fcn.10042180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1006bf40.527
mov byte [esi + 0x25], 1
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret