Function at 0x42c7be
Capabilities:
Check if file exists
Create process on windows
Delete registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xec
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp + 0x38], edi
cmp dword [edi + 0x34], esi
je 0x42ce34
cmp dword [edi + 0x6c], esi
je 0x42ce34
lea ebx, [edi + 0x20]
cmp dword [ebx + 0x18], 8
jb 0x42c7fd
mov eax, dword [ebx + 4]
jmp 0x42c800
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c812
push 3
jmp 0x42ce36
cmp dword [edi + 0x70], 8
jb 0x42c81d
mov edi, dword [edi + 0x5c]
jmp 0x42c820
add edi, 0x5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c832
push 4
jmp 0x42ce36
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0046cbb0
xor eax, eax
mov dword [ebp + 0x18], esi
lea edi, [ebp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push str.___u__s
stosd dword es:[edi], eax
push ebx
mov edi, str.regsvr32.exe__
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00408158
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.0040f161
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42c88f
lea eax, [ebp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
push 0xfa0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0046cbb0
mov eax, dword [ebp + 0x38]
add esp, 0xc
add eax, 0x3c
push str.___u__s
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00408158
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019a1
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42c919
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
push 0xfa0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
mov dword [ebp + 0x2c], esi
call fcn.0046cbb0
mov eax, dword [ebp + 0x38]
add esp, 0xc
push str.___s
add eax, 0x20
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00408158
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019a1
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x28], 0xfffffffe
jae 0x42c9a7
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
cmp dword [ebp + 0x18], esi
je 0x42c9e0
push 0xffffffffffffffff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], esi
jne 0x42c9ec
mov dword [ebp + 0x2c], 1
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0046cbb0
mov eax, dword [ebp + 0x38]
add esp, 0xc
push str.___s
add eax, 0x3c
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00408158
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019a1
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42ca4f
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
cmp dword [ebp + 0x18], esi
je 0x42ca88
push 0xffffffffffffffff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], esi
jne 0x42ca94
mov dword [ebp + 0x2c], 1
cmp dword [ebp + 0x2c], esi
jne 0x42caae
push 5
pop edi
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a58
mov eax, edi
jmp 0x42ce37
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.1
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.1
push closesocket
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp + 0x34]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2
push ebx
call edi
mov ebx, eax
lea eax, [ebp + 0x30]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2
push closesocket
call edi
cmp ebx, esi
je 0x42caf9
push 7
jmp 0x42ca9b
cmp eax, esi
jne 0x42caf5
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.004018f6
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cb16
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Description
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cb3d
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
push str.XunLei_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cb66
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.ProductName
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cb87
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
push str.1.0.0.2
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cbb0
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Version
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cbd1
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
push str.Thunder
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cbfa
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Vendor
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cc1b
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
mov ebx, dword [ebp + 0x38]
cmp dword [ebx + 0x70], 8
mov eax, dword [ebx + 0x6c]
jb 0x42cc3c
mov ecx, dword [ebx + 0x5c]
jmp 0x42cc3f
lea ecx, [ebx + 0x5c]
add eax, eax
push eax
push ecx
push 1
push esi
push str.Path
push dword [ebp + 0x34]
call edi
cmp dword [ebx + 0x70], 8
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x6c]
jb 0x42cc61
mov ebx, dword [ebx + 0x5c]
jmp 0x42cc64
add ebx, 0x5c
add eax, eax
push eax
push ebx
push 1
push esi
push str.Path
push dword [ebp + 0x30]
call edi
push dword [ebp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x38], eax
call ebx
push dword [ebp + 0x30]
call ebx
cmp dword [ebp + 0x2c], esi
jne 0x42ce22
cmp dword [ebp + 0x38], esi
jne 0x42ce22
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp + 0xc]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x42ccc4
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a58
jmp 0x42caf5
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin.2
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x42ccb4
lea eax, [ebp + 0x14]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin
push closesocket
call ebx
test eax, eax
jne 0x42ccb4
lea eax, [ebp + 0x10]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin.2
push closesocket
call ebx
test eax, eax
jne 0x42ccb4
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cd19
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Description
push ebx
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cd3a
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 8]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cd56
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x14]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cd72
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x10]
call edi
push 0x4a7cbc
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cd9b
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Suffixes
push ebx
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cdbc
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 8]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cdd8
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x14]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cdf4
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x42ce22
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a58
xor eax, eax
jmp 0x42ce37
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a58
push 8
jmp 0x42ca9b
push 2
pop eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
add ebp, 0x78
leave
ret