Function at 0x401eb3
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d4], 0xff
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassUSB
lea edi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 0x6c]
push ecx
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x68]
push eax
push str.EnumUSBVID__sPID__s
lea ecx, [ebp - 0x1c8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x1e0]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x1c8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f81
lea ecx, [ebp - 0x1c8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebp - 0x1e0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401f88
xor eax, eax
jmp 0x4023a5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 0x6c]
push ecx
mov edx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x68]
push eax
push str.USBVID__sPID__s
lea ecx, [ebp - 0x1c8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x1e0]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x144]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402391
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 0x1cc]
add ecx, 1
push ecx
call fcn.0040cfe4
add esp, 4
mov dword [ebp - 0x1ec], eax
mov edx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1e4], edx
lea eax, [ebp - 0x144]
push eax
call fcn.00404ed0
add esp, 4
mov ecx, dword [ebp - 0x1cc]
lea edx, [eax + ecx + 2]
push edx
call fcn.0040cfe4
add esp, 4
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1d0], eax
mov ecx, 1
test ecx, ecx
je 0x40207b
mov dword [ebp - 0x200], 0
jmp 0x402095
mov edx, dword [ebp - 0x114]
push edx
push 0x41a180
call fcn.00404140
add esp, 8
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x1d8], 0
jmp 0x4020b0
mov eax, dword [ebp - 0x1d8]
add eax, 1
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
cmp ecx, dword [ebp - 0x114]
jae 0x40234c
mov edx, dword [ebp - 0x1cc]
add edx, 1
mov dword [ebp - 0x1dc], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1dc]
push eax
mov ecx, dword [ebp - 0x1e4]
push ecx
mov edx, dword [ebp - 0x1d8]
sub edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402347
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x1d0]
push edx
call fcn.00405520
add esp, 8
push 0x41a194
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.00405530
add esp, 8
mov ecx, dword [ebp - 0x1e4]
push ecx
mov edx, dword [ebp - 0x1d0]
push edx
call fcn.00405530
add esp, 8
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0x1d0]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402318
mov edx, 1
test edx, edx
je 0x40218b
mov dword [ebp - 0x204], 0
jmp 0x4021a5
mov eax, dword [ebp - 0x1d0]
push eax
push 0x41a198
call fcn.00404140
add esp, 8
mov dword [ebp - 0x204], eax
push 0x41a1b0
lea ecx, [ebp - 0x110]
push ecx
call fcn.00405520
add esp, 8
mov dword [ebp - 0x1d4], 0xff
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0x41a1b8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4022e4
mov eax, 1
test eax, eax
je 0x402206
mov dword [ebp - 0x208], 0
jmp 0x402220
lea ecx, [ebp - 0x110]
push ecx
push 0x41a1cc
call fcn.00404140
add esp, 8
mov dword [ebp - 0x208], eax
lea edx, [ebp - 0x110]
push edx
call fcn.004053e1
add esp, 4
push eax
lea ecx, [ebp - 0x1e8]
call fcn.0040d2f3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.0040cbce
cmp eax, 0xffffffff
je 0x4022d0
mov ecx, dword [ebp - 0x1d0]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4022a8
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
mov eax, 1
test eax, eax
je 0x402293
mov dword [ebp - 0x20c], 0
jmp 0x4022a6
push 0x41a1d8
call fcn.00404140
add esp, 4
mov dword [ebp - 0x20c], eax
jmp 0x4022d0
mov ecx, 1
test ecx, ecx
je 0x4022bd
mov dword [ebp - 0x210], 0
jmp 0x4022d0
push 0x41a1e8
call fcn.00404140
add esp, 4
mov dword [ebp - 0x210], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e8]
call fcn.0040d285
jmp 0x40230c
mov edx, 1
test edx, edx
je 0x4022f9
mov dword [ebp - 0x214], 0
jmp 0x40230c
push 0x41a1fc
call fcn.00404140
add esp, 4
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402347
mov ecx, 1
test ecx, ecx
je 0x40232d
mov dword [ebp - 0x218], 0
jmp 0x402347
mov edx, dword [ebp - 0x1d0]
push edx
push 0x41a218
call fcn.00404140
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x4020a1
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x1f4]
push ecx
call fcn.0040d00d
add esp, 4
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1f8]
push eax
call fcn.0040d00d
add esp, 4
mov ecx, dword [ebp - 0x1e0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402395
xor eax, eax
jmp 0x4023a5
mov ecx, dword [ebp - 0x1fc]
call fcn.00401e08
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret