Function at 0x403b50
Capabilities:
Log keystrokes via polling
Query or enumerate registry key

Disassembly:
sub esp, 0x234
mov eax, dword [esp + 0x238]
push ebx
push ebp
push esi
push edi
mov edi, 1
cmp eax, 3
mov dword [esp + 0x38], edi
je 0x403b78
cmp eax, 4
jne 0x403d68
push str.VID_0402PID_5602
push eax
call fcn.00402290
add esp, 8
cmp eax, edi
mov dword [esp + 0x34], eax
jne 0x403d75
mov ebx, dword [sym.imp.CFGMGR32.dll_CM_Locate_DevNodeA]
mov ebp, dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x2c], edi
je 0x403d68
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetEnumUSBVid_0402Pid_5602
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d5e
push esi
push esi
mov edx, dword [esp + 0x1c]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x3c]
push esi
push ecx
push esi
push esi
push esi
push edx
mov dword [esp + 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x24]
dec eax
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x403d53
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x140]
push 0x104
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403d3d
mov edi, str.USBVid_0402Pid_5602_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
call ebx
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call ebp
push 0x1b
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
cmp eax, 0xffffff80
jl 0x403d03
cmp eax, 0xffffff81
jg 0x403d03
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push str.CheckForScan_pulStatus
push str.SYSTEMCurrentControlSetServicesCam5603D
push 0x80000002
mov dword [esp + 0x44], 1
mov dword [esp + 0x28], edx
call fcn.00401000
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x28]
push 4
push edx
push 4
push str.CheckForScan_pulProblemNumber
push str.SYSTEMCurrentControlSetServicesCam5603D
push 0x80000002
mov dword [esp + 0x40], ecx
call fcn.00401000
add esp, 0x30
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x403d3d
cmp dword [esp + 0x20], 0x180600a
jne 0x403d3d
lea eax, [esp + 0x38]
push 4
push eax
push 4
push str.CheckForScan_DriverStarted
push str.SYSTEMCurrentControlSetServicesCam5603D
push 0x80000002
mov dword [esp + 0x34], 1
call fcn.00401000
add esp, 0x18
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jns 0x403c04
xor esi, esi
mov edi, 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], edi
jne 0x403ba8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
lea edx, [esp + 0x34]
push 4
push edx
push 4
push str.CheckForScan_FindDeviceAfter
push str.SYSTEMCurrentControlSetServicesCam5603D
push 0x80000002
call fcn.00401000
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret