Function at 0x40fc80
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 [0x4c13e0]
xor eax, esp
mov dword [esp + 0x628], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4c77a4
mov dword [0x4c9e24], edi
mov dword [0x4c9e28], edi
mov dword [0x4c9e2c], edi
mov dword [0x4c9e30], 1
mov dword [0x4c9e34], edi
call edx
add eax, 0x10
mov dword [0x4c9e38], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
call edx
add eax, 0x10
mov dword [0x4c9e3c], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
call edx
add eax, 0x10
mov dword [0x4c9e40], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
call edx
add eax, 0x10
mov dword [0x4c9e44], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
call edx
add eax, 0x10
mov dword [0x4c9e48], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
mov dword [0x4c9e4c], 0x4a7cb4
call edx
add eax, 0x10
mov dword [0x4c9e54], eax
mov eax, dword [0x4c77a4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c77a4
call edx
add eax, 0x10
mov esi, 0x4c9e5c
mov dword [0x4c9e58], eax
call fcn.00410c20
push 0x104
push 0x4c94f0
push edi
mov byte [0x4c9f94], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7e
push 0x4c94f0
call fcn.00477f64
add esp, 8
test eax, eax
je 0x40fdbc
push 0x104
push 0x4c94f0
push 0x4c94f0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x104
mov eax, 0x4c96f8
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40fde9
movzx ecx, word [eax - 0x208]
cmp cx, di
je 0x40fde9
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40fdc6
jmp 0x40fded
cmp edx, edi
jne 0x40fdf0
sub eax, 2
xor edx, edx
push 0x4c96f8
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4c96f8
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 [0x4c9900], ax
mov word [esp + 0x22c], cx
call fcn.0047c020
push 0x206
lea ecx, [esp + 0x43a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x440], ax
call fcn.0047c020
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 0x40fe89
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jmp 0x40fea5
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeTray.exe
lea esi, [esp + 0x14]
call fcn.00410ba0
mov ebx, dword [esp + 0x10]
mov edx, 0x104
mov dword [esp + 0xc], edx
cmp ebx, edi
jne 0x40ff0f
lea eax, [esp + 0x220]
mov esi, 0x4c96f8
mov ecx, eax
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40fee2
movzx ecx, word [eax + esi]
cmp cx, di
je 0x40fee2
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40fec2
jmp 0x40fee6
cmp edx, edi
jne 0x40fee9
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 0x41010b
push str.Path
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x228]
call fcn.0040de90
test eax, eax
mov eax, esi
je 0x41001b
mov esi, 0x4c96f8
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40ff61
movzx ecx, word [eax + esi]
test cx, cx
je 0x40ff61
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40ff41
jmp 0x40ff65
test edx, edx
jne 0x40ff68
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 str.Path
push ebx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0047c020
lea eax, [esp + 0x24]
lea ecx, [esp + 0x22c]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
jmp 0x40fff0
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x4100c5
movzx edx, word [eax + ecx]
test dx, dx
je 0x4100c5
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x40fff0
jmp 0x4100c9
push 0x7e
push eax
call fcn.00477f64
add esp, 8
test eax, eax
je 0x410102
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 str.Path
push ebx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.0047c020
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 0x4100c5
movzx edx, word [eax + ecx]
test dx, dx
je 0x4100c5
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x4100a5
jmp 0x4100c9
test esi, esi
jne 0x4100cc
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 0x4a7458
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 0x410144
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jmp 0x410160
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea esi, [esp + 0x14]
call fcn.00410ba0
mov ebx, dword [esp + 0x10]
mov edx, 0x104
mov dword [esp + 0xc], edx
cmp ebx, edi
jne 0x4101cd
lea eax, [esp + 0x428]
mov esi, 0x4c96f8
mov ecx, eax
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4101a0
movzx ecx, word [eax + esi]
cmp cx, di
je 0x4101a0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x410180
jmp 0x4101a4
cmp edx, edi
jne 0x4101a7
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 0x4103cb
push str.Path
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x14]
lea esi, [esp + 0x430]
call fcn.0040de90
test eax, eax
mov eax, esi
je 0x4102db
mov esi, 0x4c96f8
mov ecx, eax
mov edx, 0x104
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x410220
movzx ecx, word [eax + esi]
test cx, cx
je 0x410220
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x410200
jmp 0x410224
test edx, edx
jne 0x410227
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 str.Path
push ebx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0047c020
lea eax, [esp + 0x24]
lea ecx, [esp + 0x434]
mov edx, eax
add esp, 0xc
mov esi, 0x104
sub ecx, edx
jmp 0x4102b0
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x410385
movzx edx, word [eax + ecx]
test dx, dx
je 0x410385
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x4102b0
jmp 0x410389
push 0x7e
push eax
call fcn.00477f64
add esp, 8
test eax, eax
je 0x4103c2
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 str.Path
push ebx
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.0047c020
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 0x410385
movzx edx, word [eax + ecx]
test dx, dx
je 0x410385
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x410365
jmp 0x410389
test esi, esi
jne 0x41038c
sub eax, 2
push 0x4a7b94
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 0x4a7458
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 0x4a6f78
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 0x4103fc
mov esi, dword [esp + 0xc]
jmp 0x410418
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x2001f
mov edx, 0x4a6f78
lea esi, [esp + 0x14]
call fcn.00410ba0
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.0047c020
lea eax, [esp + 0x24]
mov ebx, 0x4c96f8
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub ebx, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x410464
movzx ecx, word [eax + ebx]
cmp cx, di
je 0x410464
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x410444
jmp 0x410468
cmp edx, edi
jne 0x41046b
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 str.Path
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 0x4a7458
push esi
call ebx
cmp esi, edi
je 0x4104dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x42c]
push eax
call fcn.00477ed1
add esp, 8
test eax, eax
jne 0x41054a
mov eax, 0x4c9900
lea esi, [esp + 0x428]
mov edx, 0x104
sub esi, eax
jmp 0x410510
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x410539
movzx ecx, word [eax + esi]
cmp cx, di
je 0x410539
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x410510
sub eax, 2
mov word [eax], dx
jmp 0x4105db
cmp edx, edi
jne 0x410540
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x4105db
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 0x4105db
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 str.Path
push esi
call ebx
push 0x4a7b94
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 0x4a7458
push esi
call ebx
cmp esi, edi
je 0x4105db
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x4c9900], di
je 0x410602
push 0x4c9900
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410602
push 0x4c9900
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41064a
mov edx, 0x104
mov eax, 0x4c9900
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x410633
movzx ecx, word [eax - 0x208]
cmp cx, di
je 0x410633
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x410610
jmp 0x410637
cmp edx, edi
jne 0x41063a
sub eax, 2
xor edx, edx
push 0x4c9900
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4c9900
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x114
push edi
push 0x4c9d10
call fcn.0047c020
add esp, 0xc
push 0x4c9d10
mov dword [0x4c9d10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x4c94f0
call fcn.00476dfd
mov esp, ebp
pop ebp
ret