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

Disassembly:
jmp 0x1003fca0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x8bc
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.SOFTWARETencentQQPCMgr]
mov ax, word [0x10067714]
push esi
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x40], ax
movups xmm0, xmmword [0x100676f4]
mov eax, dword [0x1006a1e8]
push 0x412
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x488]
movups xmm0, xmmword [0x10067704]
push 0
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x8b0], 0
movups xmm0, xmmword [str.autostart]
mov dword [ebp - 0x8a4], 1
movups xmmword [ebp - 0x30], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8b0]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003fd72
push 4
lea eax, [ebp - 0x8a4]
push eax
push 4
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x8b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 0x22
mov word [ebp - 0x488], ax
lea eax, [ebp - 0x486]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1003fdaa
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x488]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1003fd96
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [ebp - 0x488]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fdd0
push str._regrun
push 0x1006a208
push str.QQPCTray.exe
sub ecx, edx
mov eax, 0x208
sar ecx, 1
push 0x1006a224
sub eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x488]
lea eax, [eax + ecx*2]
push eax
call fcn.1000f290
push 0x412
lea eax, [ebp - 0x8a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
mov dword [ebp - 0x8ac], 1
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x8a8], 0x412
push eax
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x8ac]
push eax
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
test esi, esi
jne 0x1003fe85
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x8a0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1003ff17
lea ecx, [ebp - 0x488]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fe90
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x488]
push eax
push 1
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
test esi, esi
je 0x1003ff17
call fcn.1003fae0
test eax, eax
je 0x1003ff13
lea ecx, [ebp - 0x488]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fee0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x488]
push eax
push 1
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
test esi, esi
jne 0x1003ff2c
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunQQDisabled
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret