Function at 0x421cf0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov ecx, 0x4ae214
mov dword [ebp - 4], esi
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
mov dword [ebp - 0xc], ebx
call edx
lea edi, [eax + 0x10]
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push str.SOFTWAREBaiduBaiduBrowser
push 0x80000002
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421d78
cmp dword [ebp - 4], esi
je 0x421d78
push 4
push str.from
lea ecx, [ebp - 0xc]
call fcn.004069f0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 4]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SOFTWAREBaiduBaiduBrowser
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x421f3b
cmp dword [ebp - 4], esi
je 0x421f3b
mov edi, dword [ebp + 8]
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00420d40
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
add esp, 8
cmp dword [eax - 4], 1
jle 0x421dd5
push ebx
lea ecx, [ebp - 8]
call fcn.00406630
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea ecx, [ebx + ebx]
push ecx
push eax
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.from
push edx
call esi
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
xor ebx, ebx
call fcn.00406aa0
lea edi, [eax + 0x10]
mov eax, dword [edi - 0xc]
add esp, 4
cmp dword [edi - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
jle 0x421e1d
push eax
lea ecx, [ebp - 0x10]
call fcn.00406630
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea eax, [edx + edx]
push eax
push edi
push 1
push 0
push 0x497930
push ecx
call esi
mov edx, dword [ebp + 8]
and ebx, eax
mov eax, dword [edx + 0x1c]
sub eax, 0x10
push eax
call fcn.00406aa0
lea esi, [eax + 0x10]
mov eax, dword [esi - 0xc]
add esp, 4
cmp dword [esi - 4], 1
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
jle 0x421e66
push eax
lea ecx, [ebp - 0x10]
call fcn.00406630
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea eax, [edx + edx]
push eax
push esi
push 1
push 0
push 0x497940
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
and ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
add esi, 0xfffffff0
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
mov ebx, eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421eb9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421ed5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421f13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421f32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421f57
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421f73
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret