Function at 0x4060a0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418df7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2ac
mov eax, dword [0x424140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4064bf
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x260], eax
push str.ArcControlServices
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x25c], eax
movups xmmword [ebp - 0x270], xmm0
call fcn.00404fa0
lea esi, [ebp - 0x220]
mov dword [ebp - 4], 0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406137
sub ecx, edx
mov dword [ebp - 0x278], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push esi
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], 0
movups xmmword [ebp - 0x288], xmm0
call fcn.00404fa0
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x250]
call fcn.00402100
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
cmp ecx, 7
jbe 0x4061d4
mov edx, dword [ebp - 0x288]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4061ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064dc
push ecx
push edx
call fcn.0040bf8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x25c]
cmp ecx, 7
jbe 0x406235
mov edx, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40622b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064dc
push ecx
push edx
call fcn.0040bf8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x260], 0
push 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x25c], 7
push str.ArcControlServices.exe
lea ecx, [ebp - 0x2a0]
mov word [ebp - 0x270], ax
movups xmmword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
call fcn.00404fa0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x238]
call fcn.00402100
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x28c]
cmp ecx, 7
jbe 0x4062dd
mov edx, dword [ebp - 0x2a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4062d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064e1
push ecx
push edx
call fcn.0040bf8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x290], 0
mov word [ebp - 0x2a0], ax
lea eax, [ebp - 0x254]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov dword [ebp - 0x28c], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406426
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.00407200
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2b8]
mov eax, dword [ebp - 0x260]
lea esi, [eax*2 + 2]
lea eax, [ebp - 0x238]
push eax
call fcn.00407200
cmp dword [ebp - 0x2a4], 7
lea eax, [ebp - 0x2b8]
push esi
cmova eax, dword [ebp - 0x2b8]
push eax
push 1
push 0
push str.ArcControlServices
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x2a4]
cmp ecx, 7
jbe 0x4063bd
mov edx, dword [ebp - 0x2b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4063b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064e6
push ecx
push edx
call fcn.0040bf8e
add esp, 8
mov ecx, dword [ebp - 0x25c]
xor eax, eax
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 7
mov word [ebp - 0x2b8], ax
cmp ecx, 7
jbe 0x40641a
mov edx, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406410
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064e6
push ecx
push edx
call fcn.0040bf8e
add esp, 8
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x406466
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40645c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064eb
push ecx
push edx
call fcn.0040bf8e
add esp, 8
mov ecx, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp ecx, 7
jbe 0x4064bf
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4064b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064eb
push ecx
push edx
call fcn.0040bf8e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bb05
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040f39f
call fcn.0040f39f
call fcn.0040f39f
call fcn.0040f39f
int3