Function at 0x42d9b0
Capabilities:
Check if file exists
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x62c
mov eax, dword [0x4ea688]
xor eax, esp
mov dword [esp + 0x628], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4f03cc
mov dword [0x4f350c], edi
mov dword [0x4f3510], edi
mov dword [0x4f3514], edi
mov dword [0x4f3518], 1
mov dword [0x4f351c], edi
call edx
add eax, 0x10
mov dword [0x4f3520], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
call edx
add eax, 0x10
mov dword [0x4f3524], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
call edx
add eax, 0x10
mov dword [0x4f3528], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
call edx
add eax, 0x10
mov dword [0x4f352c], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
call edx
add eax, 0x10
mov dword [0x4f3530], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
mov dword [0x4f3534], 0x4cf480
call edx
add eax, 0x10
mov dword [0x4f353c], eax
mov eax, dword [0x4f03cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f03cc
call edx
add eax, 0x10
mov esi, 0x4f3544
mov dword [0x4f3540], eax
call fcn.0042e8f0
push 0x104
push 0x4f2bd0
push edi
mov byte [0x4f3698], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7e
push 0x4f2bd0
call fcn.00496834
add esp, 8
test eax, eax
je 0x42daec
push 0x104
push 0x4f2bd0
push 0x4f2bd0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x104
mov eax, 0x4f2dd8
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42db19
movzx ecx, word [eax - 0x208]
cmp cx, di
je 0x42db19
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42daf6
jmp 0x42db1d
cmp edx, edi
jne 0x42db20
sub eax, 2
xor edx, edx
push 0x4f2dd8
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4f2dd8
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x206
lea edx, [esp + 0x226]
xor eax, eax
xor ecx, ecx
push edi
push edx
mov word [0x4f2fe0], ax
mov word [esp + 0x22c], cx
call fcn.004982c0
push 0x206
lea ecx, [esp + 0x43a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x440], ax
call fcn.004982c0
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42dbb9
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jmp 0x42dbd5
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
lea esi, [esp + 0x14]
call fcn.004240d0
mov ebx, dword [esp + 0x10]
mov edx, 0x104
mov dword [esp + 0xc], edx
cmp ebx, edi
jne 0x42dc3f
lea eax, [esp + 0x220]
mov esi, 0x4f2dd8
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42dc12
movzx ecx, word [eax + esi]
cmp cx, di
je 0x42dc12
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42dbf2
jmp 0x42dc16
cmp edx, edi
jne 0x42dc19
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x42de3b
push 0x4ce6b4
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x228]
call fcn.00424130
test eax, eax
mov eax, esi
je 0x42dd4b
mov esi, 0x4f2dd8
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42dc91
movzx ecx, word [eax + esi]
test cx, cx
je 0x42dc91
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42dc71
jmp 0x42dc95
test edx, edx
jne 0x42dc98
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x224]
push ecx
push 1
push 0
push 0x4ce6b4
push ebx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004982c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x22c]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
jmp 0x42dd20
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42ddf5
movzx edx, word [eax + ecx]
test dx, dx
je 0x42ddf5
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42dd20
jmp 0x42ddf9
push 0x7e
push eax
call fcn.00496834
add esp, 8
test eax, eax
je 0x42de32
push 0x104
lea ecx, [esp + 0x224]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x224]
push edx
push 1
push 0
push 0x4ce6b4
push ebx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004982c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x22c]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42ddf5
movzx edx, word [eax + ecx]
test dx, dx
je 0x42ddf5
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42ddd5
jmp 0x42ddf9
test esi, esi
jne 0x42ddfc
sub eax, 2
push str.safemonQHSafeTray.exe
lea edx, [esp + 0x1c]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0x4c561c
push ebx
call edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42de74
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jmp 0x42de90
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea esi, [esp + 0x14]
call fcn.004240d0
mov ebx, dword [esp + 0x10]
mov edx, 0x104
mov dword [esp + 0xc], edx
cmp ebx, edi
jne 0x42defd
lea eax, [esp + 0x428]
mov esi, 0x4f2dd8
mov ecx, eax
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42ded0
movzx ecx, word [eax + esi]
cmp cx, di
je 0x42ded0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42deb0
jmp 0x42ded4
cmp edx, edi
jne 0x42ded7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x42e0fb
push 0x4ce6b4
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x430]
call fcn.00424130
test eax, eax
mov eax, esi
je 0x42e00b
mov esi, 0x4f2dd8
mov ecx, eax
mov edx, 0x104
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42df50
movzx ecx, word [eax + esi]
test cx, cx
je 0x42df50
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42df30
jmp 0x42df54
test edx, edx
jne 0x42df57
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [esp + 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x42c]
push ecx
push 1
push 0
push 0x4ce6b4
push ebx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004982c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x434]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
jmp 0x42dfe0
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42e0b5
movzx edx, word [eax + ecx]
test dx, dx
je 0x42e0b5
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42dfe0
jmp 0x42e0b9
push 0x7e
push eax
call fcn.00496834
add esp, 8
test eax, eax
je 0x42e0f2
push 0x104
lea ecx, [esp + 0x42c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x42c]
push edx
push 1
push 0
push 0x4ce6b4
push ebx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004982c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x434]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x42e0b5
movzx edx, word [eax + ecx]
test dx, dx
je 0x42e0b5
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x42e095
jmp 0x42e0b9
test esi, esi
jne 0x42e0bc
sub eax, 2
push 0x4cf3d4
lea edx, [esp + 0x1c]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0x4c561c
push ebx
call edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42e12c
mov esi, dword [esp + 0xc]
jmp 0x42e148
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
lea esi, [esp + 0x14]
call fcn.004240d0
mov esi, dword [esp + 0x10]
push 0x206
lea edx, [esp + 0x1e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x24], cx
call fcn.004982c0
lea eax, [esp + 0x24]
mov ebx, 0x4f2dd8
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub ebx, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42e194
movzx ecx, word [eax + ebx]
cmp cx, di
je 0x42e194
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42e174
jmp 0x42e198
cmp edx, edi
jne 0x42e19b
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push edi
push 0x4ce6b4
push esi
call ebx
push str.QHSafeMain.exe
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push edi
push 0x4c561c
push esi
call ebx
cmp esi, edi
je 0x42e20c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x42c]
push eax
call fcn.00492756
add esp, 8
test eax, eax
jne 0x42e27a
mov eax, 0x4f2fe0
lea esi, [esp + 0x428]
mov edx, 0x104
sub esi, eax
jmp 0x42e240
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42e269
movzx ecx, word [eax + esi]
cmp cx, di
je 0x42e269
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42e240
sub eax, 2
mov word [eax], dx
jmp 0x42e30b
cmp edx, edi
jne 0x42e270
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x42e30b
lea eax, [esp + 0xc]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x42e30b
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x224]
push eax
push 1
push edi
push 0x4ce6b4
push esi
call ebx
push 0x4cf3d4
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x224]
push ecx
push 1
push edi
push 0x4c561c
push esi
call ebx
cmp esi, edi
je 0x42e30b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x4f2fe0], di
je 0x42e332
push 0x4f2fe0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e332
push 0x4f2fe0
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42e37a
mov edx, 0x104
mov eax, 0x4f2fe0
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42e363
movzx ecx, word [eax - 0x208]
cmp cx, di
je 0x42e363
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42e340
jmp 0x42e367
cmp edx, edi
jne 0x42e36a
sub eax, 2
xor edx, edx
push 0x4f2fe0
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4f2fe0
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x4f2bd0
call fcn.00491db1
mov esp, ebp
pop ebp
ret