Function at 0x10001821
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
jne 0x1000183c
xor eax, eax
jmp 0x10001b0b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test dword [ebp + 0x1c], 0xf
mov esi, eax
jne 0x10001872
xor eax, eax
test esi, esi
je 0x10001863
push 9
pop ecx
cmp cx, word [edi + eax*2]
je 0x10001863
inc eax
cmp eax, esi
jb 0x10001855
cmp esi, eax
je 0x10001872
xor ecx, ecx
xor ebx, ebx
mov esi, eax
mov word [edi + eax*2], cx
inc ebx
cmp word [ebp + 0x10], 0
jbe 0x10001b08
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.10009df0
mov ecx, dword [ebp + 0xc]
lea edx, [edi + esi*2]
mov eax, dword [ebp + 0x18]
sub ecx, esi
add esp, 0xc
mov dword [ebp - 8], 1
mov dword [ebp + 8], edx
mov dword [ebp - 4], ecx
test eax, eax
jle 0x10001b08
mov esi, dword [ebp + 0x14]
mov di, word [ebp + 0x10]
cmp di, word [esi + 4]
jne 0x10001af9
cmp dword [ebp - 8], 0
lea eax, [ebp - 4]
push 0x100
push eax
lea eax, [ebp + 8]
mov edi, 0x10020348
push eax
mov eax, 0x10020344
cmove eax, edi
push eax
push ecx
push edx
call fcn.1000136a
mov edi, eax
test edi, edi
jne 0x10001ae1
mov al, byte [esi]
test al, 8
je 0x10001969
push 0x40
lea eax, [ebp - 0x88]
push eax
push edi
push 0x11
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, dword [sym.imp.USER32.dll_GetKeyNameTextW]
shl eax, 0x10
push eax
call ebx
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10001b47
pop ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1000136a
mov edi, eax
test edi, edi
jne 0x10001ae1
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x10020350
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10001b93
mov al, byte [esi]
jmp 0x1000196f
mov ebx, dword [sym.imp.USER32.dll_GetKeyNameTextW]
test al, 0x10
je 0x100019e3
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
push eax
call ebx
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10001b47
pop ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1000136a
mov edi, eax
test edi, edi
jne 0x10001ae1
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x10020350
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10001b93
mov edi, eax
test edi, edi
jne 0x10001ae1
test byte [esi], 4
je 0x10001a58
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0
push 0x10
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
push eax
call ebx
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10001b47
pop ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1000136a
mov edi, eax
test edi, edi
jne 0x10001ae1
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x10020350
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10001b93
mov edi, eax
test edi, edi
jne 0x10001ae1
test byte [esi], 1
je 0x10001b21
xor eax, eax
push eax
mov word [ebp - 0x88], ax
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, eax
movzx eax, word [esi + 2]
cmp eax, 0x26
ja 0x10001b0f
je 0x10001aa0
sub eax, 0x21
je 0x10001aa0
sub eax, 1
je 0x10001aa0
sub eax, 1
je 0x10001aa0
sub eax, 1
je 0x10001aa0
sub eax, 1
jne 0x10001aa6
or ecx, 0x100
push 0x40
lea eax, [ebp - 0x88]
shl ecx, 0x10
push eax
push ecx
call ebx
test eax, eax
je 0x10001ae1
push 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10001b47
pop ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1000136a
mov edi, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
and dword [ebp - 8], 0
xor ebx, ebx
mov eax, dword [ebp + 0x18]
test edi, edi
mov di, word [ebp + 0x10]
sete bl
add esi, 6
sub eax, 1
mov dword [ebp + 0x18], eax
jne 0x100018ba
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
sub eax, 0x27
je 0x10001aa0
sub eax, 1
je 0x10001aa0
sub eax, 5
jmp 0x10001a99
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp ecx, 1
jbe 0x10001ae7
mov ax, word [esi + 2]
mov word [edx], ax
xor eax, eax
mov word [edx + 2], ax
add edx, 4
sub ecx, 2
mov dword [ebp + 8], edx
mov dword [ebp - 4], ecx
jmp 0x10001ae7