Function at 0x41e200
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4bc899
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5a68]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1d0]
push str.winusb.dll
mov esi, ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp eax, ebx
jne 0x41e25e
mov dword [esi + 0x6c], ebx
jmp 0x41e265
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esi + 0x6c], ebx
je 0x41e4ae
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebp, 0x10
cmp dword [esi + 0x58], ebp
jb 0x41e288
mov eax, dword [esi + 0x44]
jmp 0x41e28b
lea eax, [esi + 0x44]
push ebx
push 0x40000080
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x64], eax
jne 0x41e356
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41e2f9
push 0x4c0bd8
lea ecx, [esp + 0x1c]
call fcn.00405e70
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x1d4], ebx
call fcn.00405120
cmp dword [esp + 0x30], ebp
jb 0x41e34f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00431ad1
add esp, 4
xor al, al
jmp 0x41e75e
call esi
push eax
lea edx, [esp + 0xc0]
push str.WinUsb_Device_could_not_be_opened__err_d_n
push edx
call fcn.00432b54
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e70
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x1d4], 1
call fcn.00405120
cmp dword [esp + 0x30], ebp
jb 0x41e34f
mov edx, dword [esp + 0x1c]
push edx
call fcn.00431ad1
add esp, 4
xor al, al
jmp 0x41e75e
lea ebp, [esi + 0x60]
push ebp
push eax
call sub.WINUSB.DLL_WinUsb_Initialize
test eax, eax
jne 0x41e380
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
push ecx
mov ecx, esi
mov dword [esi + 0x6c], ebx
call fcn.0041e200
jmp 0x41e75e
mov eax, dword [ebp]
lea edx, [esp + 0x50]
push edx
push ebx
push eax
call sub.WINUSB.DLL_WinUsb_QueryInterfaceSettings
test eax, eax
jne 0x41e3e5
lea ecx, [esp + 0xbc]
push str.Fail_to_query_interface_n
push ecx
call fcn.00432b54
add esp, 8
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405e70
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1d4], 2
call fcn.00405120
lea ecx, [esp + 0x18]
call fcn.00405010
xor al, al
jmp 0x41e75e
xor edi, edi
cmp byte [esp + 0x54], bl
jbe 0x41e423
lea ecx, [ecx]
mov edx, dword [ebp]
lea ecx, [esp + 0x5c]
push ecx
push edi
push ebx
push edx
call sub.WINUSB.DLL_WinUsb_QueryPipe
cmp dword [esp + 0x5c], 2
jne 0x41e47a
mov al, byte [esp + 0x60]
test al, al
jns 0x41e414
mov byte [esi + 0x68], al
jmp 0x41e417
mov byte [esi + 0x69], al
movzx eax, byte [esp + 0x54]
add edi, 1
cmp edi, eax
jl 0x41e3f0
cmp byte [esi + 0x68], bl
je 0x41e431
cmp byte [esi + 0x69], bl
jne 0x41e75c
push str.No_WinUsb_pipes_found.
lea ecx, [esp + 0x1c]
call fcn.00405e70
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1d4], 4
call fcn.00405120
cmp dword [esp + 0x30], 0x10
jb 0x41e34f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00431ad1
add esp, 4
xor al, al
jmp 0x41e75e
push str.Wrong_WinUsb_pipes_found.
lea ecx, [esp + 0x1c]
call fcn.00405e70
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1d4], 3
call fcn.00405120
cmp dword [esp + 0x30], 0x10
jmp 0x41e340
push str.BulkRead
lea edi, [esi + 0x40]
lea edx, [esp + 0x38]
push edi
push edx
call fcn.004179d0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x1d4], 5
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.00405120
mov ebp, 0x10
cmp dword [esp + 0x4c], ebp
mov byte [esp + 0x1c8], 7
jb 0x41e518
mov eax, dword [esp + 0x38]
push eax
call fcn.00431ad1
add esp, 4
push str.BulkWrite
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004179d0
add esp, 0xc
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x1d4], 8
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00405120
cmp dword [esp + 0x30], ebp
mov byte [esp + 0x1c8], 0xa
jb 0x41e588
mov edx, dword [esp + 0x1c]
push edx
call fcn.00431ad1
add esp, 4
cmp dword [esp + 0xb8], ebp
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jae 0x41e5ab
lea eax, [esp + 0xa4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
jne 0x41e67b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc0]
push str.In_Pipe_could_not_be_opened__err_d_n
push eax
call fcn.00432b54
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00405e70
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x1d4], 0xb
call fcn.00405120
cmp dword [esp + 0x4c], ebp
jb 0x41e625
mov eax, dword [esp + 0x38]
push eax
call fcn.00431ad1
add esp, 4
cmp dword [esp + 0x9c], ebp
jb 0x41e63e
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00431ad1
add esp, 4
cmp dword [esp + 0xb8], ebp
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x41e34f
mov edx, dword [esp + 0xa4]
push edx
call fcn.00431ad1
add esp, 4
xor al, al
jmp 0x41e75e
cmp dword [esp + 0x9c], ebp
mov eax, dword [esp + 0x88]
jae 0x41e692
lea eax, [esp + 0x88]
push ebx
push ebx
push 3
push ebx
push 2
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x41e711
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc0]
push str.Out_Pipe_could_not_be_opened__err_d_n
push eax
call fcn.00432b54
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00405e70
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x1d4], 0xc
call fcn.00405120
cmp dword [esp + 0x80], ebp
jb 0x41e705
mov eax, dword [esp + 0x6c]
push eax
call fcn.00431ad1
add esp, 4
mov ecx, esi
call fcn.0041ca00
jmp 0x41e625
cmp dword [esp + 0x9c], ebp
jb 0x41e72a
mov eax, dword [esp + 0x88]
push eax
call fcn.00431ad1
add esp, 4
cmp dword [esp + 0xb8], ebp
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x41e75c
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00431ad1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0043236c
add esp, 0x1b8
ret 4