Function at 0x10019b00
Capabilities:
Log keystrokes
Log keystrokes via polling
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x108
mov eax, dword [0x10125a94]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x10019b58
movups xmm0, xmmword [str.keyboard_failure]
lea ecx, [esi + 0x18]
lea edx, [ecx + 1]
movups xmmword [ecx], xmm0
mov al, byte [0x100f2f64]
mov byte [ecx + 0x10], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019b44
sub ecx, edx
mov dword [esi + 0x118], ecx
jmp 0x10019efc
test byte [esp + 0x1d], 0x80
je 0x10019bee
cmp dword [esp + 0x118], 0x2f
jne 0x10019efc
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10019efc
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x10019be3
push ebx
mov bl, byte [edi]
movsx ecx, bl
push ecx
call fcn.100b8b90
add esp, 4
test eax, eax
je 0x10019bcd
mov eax, dword [esi + 0x118]
cmp eax, 0xff
jge 0x10019bb9
mov byte [eax + esi + 0x18], bl
inc dword [esi + 0x118]
mov bl, byte [edi + 1]
inc edi
movsx eax, bl
push eax
call fcn.100b8b90
add esp, 4
test eax, eax
jne 0x10019ba2
mov eax, dword [esi + 0x118]
pop ebx
mov byte [eax + esi + 0x18], 0
mov dword [esi + 0x160], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10019efc
mov eax, dword [esp + 0x118]
cmp eax, 0x1c
jne 0x10019d1c
cmp dword [esi + 0x118], 0
je 0x10019efc
mov edi, dword [esi + 0x15c]
test edi, edi
je 0x10019c84
mov ecx, dword [esi + edi*4 + 0x118]
lea eax, [esi + 0x18]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10019c40
test dl, dl
je 0x10019c3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10019c40
add eax, 2
add ecx, 2
test dl, dl
jne 0x10019c20
xor eax, eax
jmp 0x10019c45
sbb eax, eax
or eax, 1
test eax, eax
je 0x10019cc1
cmp edi, 0x10
jne 0x10019c84
push dword [esi + 0x11c]
lea edi, [esi + 0x11c]
call fcn.100b813d
dec dword [esi + 0x15c]
xor ecx, ecx
add esp, 4
cmp dword [esi + 0x15c], ecx
jle 0x10019c84
mov eax, dword [edi + 4]
lea edi, [edi + 4]
mov dword [edi - 4], eax
inc ecx
cmp ecx, dword [esi + 0x15c]
jl 0x10019c72
mov eax, dword [esi + 0x118]
inc eax
push eax
call fcn.100b8158
mov edi, eax
add esp, 4
test edi, edi
je 0x10019cc1
lea ecx, [esi + 0x18]
mov edx, edi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x10019ca1
mov eax, dword [esi + 0x15c]
mov dword [esi + eax*4 + 0x11c], edi
inc dword [esi + 0x15c]
mov edi, dword [esi + 0x118]
test edi, edi
je 0x10019cec
nop dword [eax + eax]
movsx eax, byte [esi + edi + 0x17]
dec edi
push eax
call fcn.100b8cb0
add esp, 4
test eax, eax
je 0x10019cec
mov byte [esi + edi + 0x18], 0
test edi, edi
jne 0x10019cd0
pop edi
mov dword [esi + 0x118], 0
mov eax, 1
mov dword [esi + 0x160], 0xffffffff
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100aebeb
add esp, 0x108
ret
cmp eax, 1
jne 0x10019d34
mov byte [esi + 0x18], 0
mov dword [esi + 0x118], 0
jmp 0x10019ef2
cmp eax, 0xc8
jne 0x10019d99
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x10019efc
mov edi, dword [esi + 0x160]
cmp edi, 0xffffffff
je 0x10019d5f
cmp edi, eax
jge 0x10019d5f
test edi, edi
je 0x10019d68
dec edi
jmp 0x10019d62
lea edi, [eax - 1]
mov dword [esi + 0x160], edi
mov edi, dword [esi + edi*4 + 0x11c]
lea edx, [esi + 0x18]
mov ecx, edx
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x10019d74
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019d85
sub ecx, edx
mov dword [esi + 0x118], ecx
jmp 0x10019efc
cmp eax, 0xd0
jne 0x10019e05
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x10019efc
mov edi, dword [esi + 0x160]
cmp edi, 0xffffffff
je 0x10019efc
inc edi
mov dword [esi + 0x160], edi
cmp edi, eax
jl 0x10019dd1
lea edi, [eax - 1]
mov dword [esi + 0x160], edi
mov edi, dword [esi + edi*4 + 0x11c]
lea edx, [esi + 0x18]
mov ecx, edx
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x10019de0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019df1
sub ecx, edx
mov dword [esi + 0x118], ecx
jmp 0x10019efc
cmp eax, 0xc9
jne 0x10019e38
mov eax, dword [esi + 0x168]
test eax, eax
je 0x10019efc
inc dword [esi + 0x16c]
cmp dword [esi + 0x16c], eax
jl 0x10019efc
dec eax
mov dword [esi + 0x16c], eax
jmp 0x10019efc
cmp eax, 0xd1
jne 0x10019e59
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x10019efc
dec eax
mov dword [esi + 0x16c], eax
jmp 0x10019efc
mov ecx, dword [esi + 0x118]
cmp eax, 0xe
jne 0x10019e77
test ecx, ecx
je 0x10019ef2
lea eax, [ecx - 1]
mov dword [esi + 0x118], eax
jmp 0x10019eed
cmp ecx, 0xff
jge 0x10019efc
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x10019efc
push 0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_ToAscii]
cmp eax, 1
jne 0x10019efc
movsx eax, byte [esp + 8]
push eax
call fcn.100b8b90
add esp, 4
test eax, eax
je 0x10019efc
cmp dword [esi + 0x118], 0
jne 0x10019ed3
movsx eax, byte [esp + 8]
push eax
call fcn.100b8cb0
add esp, 4
test eax, eax
jne 0x10019efc
mov ecx, dword [esi + 0x118]
mov al, byte [esp + 8]
mov byte [ecx + esi + 0x18], al
inc dword [esi + 0x118]
mov eax, dword [esi + 0x118]
mov byte [eax + esi + 0x18], 0
mov dword [esi + 0x160], 0xffffffff
mov ecx, dword [esp + 0x10c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100aebeb
add esp, 0x108
ret