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

Disassembly:
sub esp, 0x108
mov eax, dword [0x10126a94]
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 0x10019d08
movups xmm0, xmmword [str.keyboard_failure]
lea ecx, [esi + 0x18]
lea edx, [ecx + 1]
movups xmmword [ecx], xmm0
mov al, byte [0x100f3f64]
mov byte [ecx + 0x10], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019cf4
sub ecx, edx
mov dword [esi + 0x118], ecx
jmp 0x1001a0ac
test byte [esp + 0x1d], 0x80
je 0x10019d9e
cmp dword [esp + 0x118], 0x2f
jne 0x1001a0ac
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001a0ac
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x10019d93
push ebx
mov bl, byte [edi]
movsx ecx, bl
push ecx
call fcn.100b9760
add esp, 4
test eax, eax
je 0x10019d7d
mov eax, dword [esi + 0x118]
cmp eax, 0xff
jge 0x10019d69
mov byte [eax + esi + 0x18], bl
inc dword [esi + 0x118]
mov bl, byte [edi + 1]
inc edi
movsx eax, bl
push eax
call fcn.100b9760
add esp, 4
test eax, eax
jne 0x10019d52
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 0x1001a0ac
mov eax, dword [esp + 0x118]
cmp eax, 0x1c
jne 0x10019ecc
cmp dword [esi + 0x118], 0
je 0x1001a0ac
mov edi, dword [esi + 0x15c]
test edi, edi
je 0x10019e34
mov ecx, dword [esi + edi*4 + 0x118]
lea eax, [esi + 0x18]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10019df0
test dl, dl
je 0x10019dec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10019df0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10019dd0
xor eax, eax
jmp 0x10019df5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10019e71
cmp edi, 0x10
jne 0x10019e34
push dword [esi + 0x11c]
lea edi, [esi + 0x11c]
call fcn.100b8d0d
dec dword [esi + 0x15c]
xor ecx, ecx
add esp, 4
cmp dword [esi + 0x15c], ecx
jle 0x10019e34
mov eax, dword [edi + 4]
lea edi, [edi + 4]
mov dword [edi - 4], eax
inc ecx
cmp ecx, dword [esi + 0x15c]
jl 0x10019e22
mov eax, dword [esi + 0x118]
inc eax
push eax
call fcn.100b8d28
mov edi, eax
add esp, 4
test edi, edi
je 0x10019e71
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 0x10019e51
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 0x10019e9c
nop dword [eax + eax]
movsx eax, byte [esi + edi + 0x17]
dec edi
push eax
call fcn.100b9880
add esp, 4
test eax, eax
je 0x10019e9c
mov byte [esi + edi + 0x18], 0
test edi, edi
jne 0x10019e80
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.100af7bb
add esp, 0x108
ret
cmp eax, 1
jne 0x10019ee4
mov byte [esi + 0x18], 0
mov dword [esi + 0x118], 0
jmp 0x1001a0a2
cmp eax, 0xc8
jne 0x10019f49
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x1001a0ac
mov edi, dword [esi + 0x160]
cmp edi, 0xffffffff
je 0x10019f0f
cmp edi, eax
jge 0x10019f0f
test edi, edi
je 0x10019f18
dec edi
jmp 0x10019f12
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 0x10019f24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019f35
sub ecx, edx
mov dword [esi + 0x118], ecx
jmp 0x1001a0ac
cmp eax, 0xd0
jne 0x10019fb5
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x1001a0ac
mov edi, dword [esi + 0x160]
cmp edi, 0xffffffff
je 0x1001a0ac
inc edi
mov dword [esi + 0x160], edi
cmp edi, eax
jl 0x10019f81
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 0x10019f90
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019fa1
sub ecx, edx
mov dword [esi + 0x118], ecx
jmp 0x1001a0ac
cmp eax, 0xc9
jne 0x10019fe8
mov eax, dword [esi + 0x168]
test eax, eax
je 0x1001a0ac
inc dword [esi + 0x16c]
cmp dword [esi + 0x16c], eax
jl 0x1001a0ac
dec eax
mov dword [esi + 0x16c], eax
jmp 0x1001a0ac
cmp eax, 0xd1
jne 0x1001a009
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x1001a0ac
dec eax
mov dword [esi + 0x16c], eax
jmp 0x1001a0ac
mov ecx, dword [esi + 0x118]
cmp eax, 0xe
jne 0x1001a027
test ecx, ecx
je 0x1001a0a2
lea eax, [ecx - 1]
mov dword [esi + 0x118], eax
jmp 0x1001a09d
cmp ecx, 0xff
jge 0x1001a0ac
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x1001a0ac
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 0x1001a0ac
movsx eax, byte [esp + 8]
push eax
call fcn.100b9760
add esp, 4
test eax, eax
je 0x1001a0ac
cmp dword [esi + 0x118], 0
jne 0x1001a083
movsx eax, byte [esp + 8]
push eax
call fcn.100b9880
add esp, 4
test eax, eax
jne 0x1001a0ac
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.100af7bb
add esp, 0x108
ret