Function at 0x10103560
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 0x101037aa
mov eax, dword [esi + 0x190]
test al, 2
je 0x101037aa
test al, 4
je 0x10103634
push 0x11
call ecx
bt ax, 0xf
jae 0x10103628
cmp byte [esi + 0x18d], 0
je 0x101035fa
xor edi, edi
cmp dword [esi + 0x12c], edi
jle 0x1010361a
mov eax, dword [ebp + 0x10]
lea ebx, [eax*4]
mov eax, dword [esi + 0x130]
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 + 0x12c]
jl 0x101035c2
mov ebx, dword [ebp + 0xc]
mov ecx, esi
mov edx, ebx
call fcn.100fbf80
jmp 0x101037a4
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jle 0x1010361a
mov eax, dword [esi + 0x130]
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.100fbf80
jmp 0x101037a4
mov eax, dword [esi + 0x190]
mov ecx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 8
je 0x10103704
push 0x10
call ecx
bt ax, 0xf
jae 0x10103704
xor edx, edx
cmp dword [esi + 0x134], edx
jle 0x10103684
xor ecx, ecx
cmp dword [esi + 0x12c], ecx
jle 0x1010367b
nop
mov eax, dword [esi + 0x130]
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 + 0x12c]
jl 0x10103660
inc edx
cmp edx, dword [esi + 0x134]
jl 0x10103655
mov edx, dword [esi + 0x20c]
mov ecx, dword [esi + 0x210]
mov edi, dword [ebp + 0x10]
cmp ebx, edx
jge 0x1010369c
mov dword [ebp + 0xc], edx
mov edx, ebx
cmp edi, ecx
jge 0x101036a6
mov eax, ecx
mov ecx, edi
mov edi, eax
mov al, byte [esi + 0x18d]
test al, al
je 0x101036b7
mov edi, dword [esi + 0x12c]
dec edi
xor ebx, ebx
test al, al
mov eax, dword [ebp + 0xc]
cmove ebx, ecx
cmp edx, eax
jg 0x101037a4
nop dword [eax]
mov ecx, ebx
cmp ebx, edi
jg 0x101036fa
nop word [eax + eax]
mov eax, dword [esi + 0x130]
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 0x101036e0
mov eax, dword [ebp + 0xc]
inc edx
cmp edx, eax
jle 0x101036d0
jmp 0x101037a4
mov edi, dword [ebp + 0x10]
xor edx, edx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], edi
cmp dword [esi + 0x134], edx
jle 0x10103754
nop dword [eax]
xor ecx, ecx
cmp dword [esi + 0x12c], ecx
jle 0x1010374b
nop word [eax + eax]
mov eax, dword [esi + 0x130]
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 + 0x12c]
jl 0x10103730
inc edx
cmp edx, dword [esi + 0x134]
jl 0x10103720
cmp byte [esi + 0x18d], 0
je 0x1010378d
xor ecx, ecx
cmp dword [esi + 0x12c], ecx
jle 0x101037a4
nop word [eax + eax]
mov eax, dword [esi + 0x130]
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 + 0x12c]
jl 0x10103770
jmp 0x101037a4
cmp edi, 0xffffffff
jle 0x101037a4
mov eax, dword [esi + 0x130]
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 + 0x190]
test al, 0x10
je 0x1010388e
test al, 4
je 0x101037cc
push 0x11
call ecx
bt ax, 0xf
mov eax, 2
jb 0x101037d1
mov eax, 1
mov dword [esi + 0x1f8], eax
push dword [esi + 0x28]
mov dword [0x1017842c], esi
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi + 0x1b0]
mov ecx, dword [esi + 0x1d0]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [eax + 4]
sub edx, dword [ecx]
mov eax, dword [esi + 0x1ac]
add edx, dword [ebp - 4]
mov dword [esi + 0x1fc], edx
push 0
mov ecx, dword [eax + 4]
sub ecx, dword [esi + 0x1b8]
mov eax, dword [ebp + 8]
add eax, ecx
mov dword [esi + 0x204], edx
push 0
push esi
mov dword [esi + 0x200], eax
mov dword [esi + 0x208], eax
mov dword [esi + 0x1e8], 0xffffffff
mov dword [esi + 0x1ec], 0xffffffff
mov dword [esi + 0x1f0], 0xffffffff
mov dword [esi + 0x1f4], 0xffffffff
call sym.ExuiKrnln_X32.dll_ControlAddRedrawRect
cmp dword [esi + 0x2c], 1
jl 0x1010388e
cmp dword [esi + 0xe4], 0
jle 0x1010387a
inc dword [esi + 0xe0]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [esi + 0xd0], 1
push 1
push 0x10178464
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret