Function at 0x40acf0
Capabilities:
Get common file path
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x472226
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x848]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x85c]
mov esi, dword [esp + 0x858]
push 0x206
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x2a]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x30], ax
call fcn.0043e9f0
push 0x206
lea eax, [esp + 0x23e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x244], dx
call fcn.0043e9f0
push 0x25
push esi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], 0x208
call fcn.0043e2a0
add esp, 0x20
test eax, eax
jne 0x40ada1
push esi
mov ecx, ebx
call fcn.00405030
jmp 0x40b2ec
push 9
push str._install_
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
jne 0x40ae10
add esi, 0x12
push esi
add edi, 8
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040a490
push eax
mov ecx, ebx
mov dword [esp + 0x854], ebp
call fcn.00404fd0
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x48d12c]
je 0x40b2ec
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b2ec
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043f1b9
add esp, 4
jmp 0x40b2ec
push 8
push str._360safe
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
jne 0x40aed1
push 0x25
push esi
call fcn.00440255
push 0x103
lea ecx, [esp + 0x238]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
push ecx
mov edi, eax
call fcn.0043fecb
mov edx, edi
sub edx, esi
sar edx, 1
dec edx
push edx
add esi, 2
lea eax, [esp + 0x244]
push esi
push eax
call fcn.0043fbc9
add esp, 0x20
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0x238]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40af99
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push 0x475a2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.00405030
add edi, 2
push edi
mov ecx, ebx
jmp 0x40b2e7
push 8
push str._Common
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
je 0x40b149
push 6
push str._User
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
je 0x40b149
push 7
push str._Group_
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
jne 0x40afa0
lea eax, [esp + 0x14]
push eax
push 0x17
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebp
jne 0x40af99
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40af8e
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00405030
add edi, 0x28
push edi
push 0x475814
lea ecx, [esp + 0x28]
push ecx
call fcn.0040a510
push eax
mov ecx, ebx
mov dword [esp + 0x854], 1
call fcn.004098a0
lea ecx, [esp + 0x20]
call fcn.00403820
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40b2ec
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x40b2ee
push 0xb
push str._SMPROGRAMS
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
jne 0x40b054
push 0x25
push esi
call fcn.00440255
mov edi, eax
mov ecx, 0x25
sub cx, word [esi + 0x16]
add esp, 8
movzx eax, cx
neg eax
sbb eax, eax
and eax, 0xffffffeb
lea edx, [esp + 0x14]
push edx
add eax, 0x17
push eax
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40af99
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40af8e
lea eax, [esp + 0x24]
lea edx, [eax + 2]
jmp 0x40b010
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40b010
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
add edi, 2
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0043fbc9
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.00405030
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40b2ec
push 6
push str._temp_
push esi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
jne 0x40b110
push 0x206
lea edx, [esp + 0x43a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x440], cx
call fcn.0043e9f0
add esp, 0xc
lea eax, [esp + 0x434]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x434]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40b0b0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x40b0e0
mov ecx, 0x5c
cmp cx, word [esp + eax*2 + 0x432]
jne 0x40b0e0
xor edx, edx
mov word [esp + eax*2 + 0x432], dx
dec eax
mov ecx, 0x104
sub ecx, eax
push ecx
add esi, 0xc
lea edx, [esp + 0x438]
push esi
push edx
call fcn.0043fbc9
add esp, 0xc
lea eax, [esp + 0x434]
push eax
mov ecx, ebx
call fcn.00405030
jmp 0x40b2ec
push 0x104
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x40af99
cmp word [esp + 0x24], bp
je 0x40af99
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.00405030
jmp 0x40b2ec
push 0x25
push esi
xor bl, bl
call fcn.00440255
mov ebp, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x64e]
push ecx
mov word [esp + 0x650], ax
call fcn.0043e9f0
push 6
push str._User
push esi
call fcn.0043f6a4
mov edi, ebp
sub edi, esi
add esp, 0x20
sar edi, 1
lea edx, [esp + 0x22c]
test eax, eax
jne 0x40b1d2
sub edi, 6
push edi
add esi, 0xc
push esi
push edx
mov bl, 1
call fcn.0043fecb
push 7
lea eax, [esp + 0x64c]
push str.Common
push eax
call fcn.0043fecb
push edi
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x65c]
push edx
call fcn.0043fbc9
add esp, 0x24
jmp 0x40b1f8
lea eax, [edi - 1]
push eax
lea ecx, [esi + 2]
push ecx
push edx
call fcn.0043fecb
add edi, 0xfffffff8
push edi
add esi, 0x10
lea eax, [esp + 0x64c]
push esi
push eax
call fcn.0043fecb
add esp, 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test bl, bl
lea ecx, [esp + 0x14]
push ecx
sete dl
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp + 0x24], 0
add edx, 0x80000001
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b25c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x23c]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [esp + 0x24]
jne 0x40b2d1
xor edx, edx
test bl, bl
lea ecx, [esp + 0x14]
push ecx
setne dl
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
add edx, 0x80000001
push edx
call esi
test eax, eax
jne 0x40b2c4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x64c]
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x208
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [esp + 0x24]
je 0x40af99
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00405030
add ebp, 2
push ebp
mov ecx, esi
call fcn.004098c0
mov al, 1
mov ecx, dword [esp + 0x848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x840
ret 8