Function at 0x402510
Capabilities:
Check if file exists
Delete registry key
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c75b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x224]
push edx
push str.AutoRun
push str.SoftwareBaofengStormPlayerConfigUACAutoRun
mov esi, 4
push 0x80000001
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x224], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40271f
cmp dword [ebp - 0x224], esi
jne 0x40271f
push str.SoftwareBaofengStormPlayerConfigUACAutoRun
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x220], 0
je 0x4026f7
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x218], ax
call fcn.00403ff0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...BaofengPlatform.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402656
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40264f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402724
push str.AutoRun
lea ecx, [ebp - 0x218]
push ecx
push str.__s____s
lea edi, [ebp - 0x21c]
call fcn.00402a70
mov esi, dword [ebp - 0x21c]
mov eax, dword [esi - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0xc
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push str.BaofengPlatform
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call edi
mov ebx, eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push str.BaofengPlatform
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call edi
test ebx, ebx
je 0x4026d2
test eax, eax
je 0x4026d2
lea eax, [ebp - 0x21c]
call fcn.004022c0
xor eax, eax
jmp 0x402724
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40271f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40271f
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.BaofengPlatform
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call esi
push str.BaofengPlatform
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403180
mov esp, ebp
pop ebp
ret