Function at 0x403540
Capabilities:
Copy file
Create process on windows
Delete file
Delete registry value
Get common file path

Disassembly:
sub esp, 0x5a4
lea eax, [esp]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403587
mov ecx, dword [esp + 0xc]
push str.DisableRegistryTools
push ecx
call edi
test eax, eax
jne 0x403587
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call esi
test eax, eax
jne 0x4035b3
mov ecx, dword [esp + 0xc]
push str.DisableRegistryTools
push ecx
call edi
test eax, eax
jne 0x4035b3
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call esi
test eax, eax
jne 0x4035df
mov ecx, dword [esp + 0xc]
push str.DisableTaskMgr
push ecx
call edi
test eax, eax
jne 0x4035df
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call esi
test eax, eax
jne 0x40360b
mov ecx, dword [esp + 0xc]
push str.DisableTaskMgr
push ecx
call edi
test eax, eax
jne 0x40360b
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call esi
test eax, eax
jne 0x403637
mov ecx, dword [esp + 0xc]
push str.DisableCMD
push ecx
call edi
test eax, eax
jne 0x403637
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call esi
test eax, eax
jne 0x403663
mov ecx, dword [esp + 0xc]
push str.DisableCMD
push ecx
call edi
test eax, eax
jne 0x403663
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0x3b0]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x4b0]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [esp + 0x5b4]
mov esi, str.regedit
mov eax, edi
xor ebx, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4036bd
cmp cl, bl
je 0x4036b9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4036bd
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403699
xor eax, eax
jmp 0x4036c2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40372b
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x4b0]
push eax
lea ecx, [esp + 0x15c]
push str._s_regedit.exe
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x2c]
push str.cpe17_regedit.exe
push edx
call esi
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x2c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x5a4
ret
mov esi, str.msconfig
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403756
cmp cl, bl
je 0x403752
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403756
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403732
xor eax, eax
jmp 0x40375b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4037c4
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x4b0]
push eax
lea ecx, [esp + 0x15c]
push str._spchealthhelpctr_binariesmsconfig.exe
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x2c]
push str.cpe17_msconfig.exe
push edx
call esi
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x2c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x5a4
ret
mov esi, 0x4175fc
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4037ef
cmp cl, bl
je 0x4037eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4037ef
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4037cb
xor eax, eax
jmp 0x4037f4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40385d
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x15c]
push str._scmd.exe
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x2c]
push str.cpe17_cmd.exe
push edx
call esi
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x2c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x5a4
ret
mov esi, str.taskmgr
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403888
cmp cl, bl
je 0x403884
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403888
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403864
xor eax, eax
jmp 0x40388d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4038f6
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x15c]
push str._s_taskmgr.exe
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x2c]
push str.cpe17_taskmgr.exe
push edx
call esi
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x2c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x5a4
ret
mov esi, str.staskmgr
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403921
cmp cl, bl
je 0x40391d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403921
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4038fd
xor eax, eax
jmp 0x403926
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403ac6
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0040da10
movsx ecx, byte [esp + 0x19]
movsx edx, byte [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
lea eax, [esp + 0x288]
push ecx
push edx
push str._c_c
push eax
call esi
lea ecx, [esp + 0x298]
push ecx
call fcn.0040da05
movsx edx, byte [esp + 0x2c]
mov bp, ax
add esp, 0x14
movsx eax, byte [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x290]
push str._c_c
push ecx
mov word [esp + 0x38], bp
call esi
lea edx, [esp + 0x298]
push edx
call fcn.0040da05
movsx ecx, byte [esp + 0x2e]
mov di, ax
add esp, 0x14
movsx eax, byte [esp + 0x1b]
push eax
push ecx
lea edx, [esp + 0x290]
push str._c_c
push edx
call esi
lea eax, [esp + 0x298]
push eax
call fcn.0040da05
add esp, 0x14
inc di
cmp di, 0x3b
mov word [esp + 0x2a], di
jbe 0x4039e7
inc bp
mov word [esp + 0x2a], bx
mov word [esp + 0x28], bp
cmp bp, 0x17
jbe 0x4039f9
mov word [esp + 0x28], bx
mov word [esp + 0x2a], 1
lea ecx, [esp + 0x3b4]
lea edx, [esp + 0x15c]
push ecx
push str._s_taskmgr.exe
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x3b4]
lea ecx, [esp + 0x30]
push eax
push str._scpe17_taskmgr.exe
push ecx
call esi
mov edi, dword [esp + 0x36]
mov ebp, dword [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x30]
and edi, 0xffff
and ebp, 0xffff
push edx
push edi
push ebp
lea eax, [esp + 0x294]
push str.at__02d:_02d__INTERACTIVE__s
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x288]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x160]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push ebp
push str.Please_Wait...until__02d:_02d
push 0x41d010
call esi
mov esi, dword [esp + 0x5cc]
push esi
call fcn.00403ad0
add esp, 0x14
push 0x309
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 0x401c20
push 0x1f4
push 0x309
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5a4
ret