Function at 0x42be10
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x42bf1b
call fcn.00431f60
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.0042ba70
push str.SOFTWAREClassesBaidubrowserHTML
lea ecx, [ebp - 0x18]
call fcn.00405690
push 0x2001f
push eax
push 0x80000002
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00426570
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42be7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.ShellEX
lea ecx, [ebp - 0x18]
call fcn.00405690
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
cmp eax, edi
je 0x42be9c
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42beb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x498b64
lea ecx, [ebp - 0x14]
call fcn.00405690
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x14]
call fcn.0042cc30
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 0x18], esi
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bef8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jne 0x42bf24
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42bf0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x42bf1b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 6
jb 0x42c044
lea ecx, [ebp - 8]
push ecx
push str._n_vSN
push 3
push edi
push 0x497350
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x42c02c
push 0x49c224
lea ecx, [ebp - 0x10]
call fcn.00405690
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.0042b6c0
test eax, eax
je 0x42bf93
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x10]
call fcn.004064e0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ebx, 0xa
jb 0x42bfdf
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], 0
mov edx, dword [eax]
mov edx, dword [edx]
push 0x49c9f4
push eax
call edx
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x42bfc9
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
mov edi, eax
jmp 0x42bfce
call fcn.00427d80
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42bfed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x42bfed
mov esi, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c00c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jns 0x42c033
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x42c042
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor edi, edi
push 0xc
mov dword [ebp - 0x28], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x42c199
mov dword [eax], eax
mov dword [ebp - 0x2c], eax
mov dword [eax + 4], eax
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
call edx
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
call fcn.0042b6c0
test eax, eax
jne 0x42c090
push 0x498b64
lea ecx, [ebp - 8]
call fcn.00405740
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
push edx
call fcn.00429ee0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x80000001
call fcn.0042b0c0
add esp, 8
test eax, eax
jne 0x42c0bc
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x2c]
push ecx
push 0x80000002
call fcn.0042b0c0
add esp, 8
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebx]
cmp edi, ebx
je 0x42c100
mov esi, dword [edi + 8]
test esi, esi
je 0x42c0fa
call fcn.0042b3a0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [edi]
cmp edi, ebx
jne 0x42c0e4
mov eax, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp eax, ebx
je 0x42c122
jmp 0x42c110
mov esi, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x42c110
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c141
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp eax, ebx
je 0x42c162
lea esp, [esp]
mov esi, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x42c150
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
je 0x42c181
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42c18f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4aa228
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3