Function at 0x4044e0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x2fc
push ebp
push esi
xor ebp, ebp
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebp
je 0x40470f
lea ecx, [esp + 0x100]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x40470f
mov edi, str.C:Program_FilesLenovo_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], 0x80
lea edi, [esp + ecx + 0x100]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.LJ61UIS.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x40]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + ecx], al
lea eax, [esp + 0xc]
push eax
push 0x20007
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4045b9
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2fc
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.UnInstall
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x204]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x90]
push eax
push ecx
push ebp
push edx
mov byte [esp + 0xa0], 0
mov dword [esp + 0x34], 0x80
mov dword [esp + 0x30], 0x104
call edi
mov esi, eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.0040da90
add esp, 8
test eax, eax
je 0x404681
inc ebp
cmp esi, 0x103
jne 0x40461a
jmp 0x4046a2
lea edx, [esp + 0x204]
lea eax, [esp + 0x100]
push edx
push eax
call fcn.0040da90
add esp, 8
mov esi, 1
test eax, eax
je 0x4046a6
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30c]
sub eax, 0
je 0x40471b
dec eax
je 0x4046cf
dec eax
jne 0x404731
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2fc
ret
test esi, esi
jne 0x404731
lea edi, [esp + 0x100]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x100]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404731
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2fc
ret
test esi, esi
je 0x404731
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x404700
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2fc
ret