Function at 0x10102630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
cmp ebx, 0xffffffff
jle 0x1010287a
mov eax, dword [esi + 0x17c]
test al, 2
je 0x1010287a
test al, 4
je 0x10102704
push 0x11
call ecx
bt ax, 0xf
jae 0x101026f8
cmp byte [esi + 0x179], 0
je 0x101026ca
xor edi, edi
cmp dword [esi + 0x118], edi
jle 0x101026ea
mov eax, dword [ebp + 0x10]
lea ebx, [eax*4]
mov eax, dword [esi + 0x11c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax]
mov eax, dword [ebx + edx]
cmp byte [eax + 0x10], 0
mov eax, dword [edx + edi*4]
sete cl
inc edi
mov byte [eax + 0x10], cl
cmp edi, dword [esi + 0x118]
jl 0x10102692
mov ebx, dword [ebp + 0xc]
mov ecx, esi
mov edx, ebx
call fcn.100fb380
jmp 0x10102874
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jle 0x101026ea
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
cmp byte [ecx + 0x10], 0
sete al
mov byte [ecx + 0x10], al
mov edx, ebx
mov ecx, esi
call fcn.100fb380
jmp 0x10102874
mov eax, dword [esi + 0x17c]
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 8
je 0x101027d4
push 0x10
call ecx
bt ax, 0xf
jae 0x101027d4
xor edx, edx
cmp dword [esi + 0x120], edx
jle 0x10102754
xor ecx, ecx
cmp dword [esi + 0x118], ecx
jle 0x1010274b
nop
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x10], 0
cmp ecx, dword [esi + 0x118]
jl 0x10102730
inc edx
cmp edx, dword [esi + 0x120]
jl 0x10102725
mov edx, dword [esi + 0x1f4]
mov ecx, dword [esi + 0x1f8]
mov edi, dword [ebp + 0x10]
cmp ebx, edx
jge 0x1010276c
mov dword [ebp + 0xc], edx
mov edx, ebx
cmp edi, ecx
jge 0x10102776
mov eax, ecx
mov ecx, edi
mov edi, eax
mov al, byte [esi + 0x179]
test al, al
je 0x10102787
mov edi, dword [esi + 0x118]
dec edi
xor ebx, ebx
test al, al
mov eax, dword [ebp + 0xc]
cmove ebx, ecx
cmp edx, eax
jg 0x10102874
nop dword [eax]
mov ecx, ebx
cmp ebx, edi
jg 0x101027ca
nop word [eax + eax]
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x10], 1
cmp ecx, edi
jle 0x101027b0
mov eax, dword [ebp + 0xc]
inc edx
cmp edx, eax
jle 0x101027a0
jmp 0x10102874
mov edi, dword [ebp + 0x10]
xor edx, edx
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], edi
cmp dword [esi + 0x120], edx
jle 0x10102824
nop dword [eax]
xor ecx, ecx
cmp dword [esi + 0x118], ecx
jle 0x1010281b
nop word [eax + eax]
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x10], 0
cmp ecx, dword [esi + 0x118]
jl 0x10102800
inc edx
cmp edx, dword [esi + 0x120]
jl 0x101027f0
cmp byte [esi + 0x179], 0
je 0x1010285d
xor ecx, ecx
cmp dword [esi + 0x118], ecx
jle 0x10102874
nop word [eax + eax]
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x10], 1
cmp ecx, dword [esi + 0x118]
jl 0x10102840
jmp 0x10102874
cmp edi, 0xffffffff
jle 0x10102874
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
mov byte [eax + 0x10], 1
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [esi + 0x17c]
test al, 0x10
je 0x10102967
test al, 4
je 0x1010289c
push 0x11
call ecx
bt ax, 0xf
mov eax, 2
jb 0x101028a1
mov eax, 1
mov dword [esi + 0x1e0], eax
push dword [esi + 0x28]
mov dword [0x10177418], esi
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x1b8]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [eax + 4]
sub edx, dword [ecx]
mov eax, dword [esi + 0x194]
add edx, dword [ebp - 4]
mov dword [esi + 0x1e4], edx
push 0
mov ecx, dword [eax + 4]
sub ecx, dword [esi + 0x1a0]
mov eax, dword [ebp + 8]
add eax, ecx
mov dword [esi + 0x1ec], edx
push 0
push esi
mov dword [esi + 0x1e8], eax
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x1d0], 0xffffffff
mov dword [esi + 0x1d4], 0xffffffff
mov dword [esi + 0x1d8], 0xffffffff
mov dword [esi + 0x1dc], 0xffffffff
call sym.ExuiKrnln_X32.dll_ControlAddRedrawRect
cmp dword [esi + 0x2c], 1
jl 0x10102967
cmp byte [esi + 0xe1], 0
jne 0x10102967
cmp dword [esi + 0xd0], 0
jle 0x10102953
inc dword [esi + 0xcc]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [esi + 0xbc], 1
push 1
push 0x10177450
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret