Function at 0x403440
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 0x403487
mov ecx, dword [esp + 0xc]
push str.DisableRegistryTools
push ecx
call edi
test eax, eax
jne 0x403487
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 0x4034b3
mov ecx, dword [esp + 0xc]
push str.DisableRegistryTools
push ecx
call edi
test eax, eax
jne 0x4034b3
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 0x4034df
mov ecx, dword [esp + 0xc]
push str.DisableTaskMgr
push ecx
call edi
test eax, eax
jne 0x4034df
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 0x40350b
mov ecx, dword [esp + 0xc]
push str.DisableTaskMgr
push ecx
call edi
test eax, eax
jne 0x40350b
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 0x403537
mov ecx, dword [esp + 0xc]
push str.DisableCMD
push ecx
call edi
test eax, eax
jne 0x403537
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 0x403563
mov ecx, dword [esp + 0xc]
push str.DisableCMD
push ecx
call edi
test eax, eax
jne 0x403563
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 0x4035bd
cmp cl, bl
je 0x4035b9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4035bd
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403599
xor eax, eax
jmp 0x4035c2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40362b
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 0x403656
cmp cl, bl
je 0x403652
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403656
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403632
xor eax, eax
jmp 0x40365b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4036c4
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, 0x4175dc
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4036ef
cmp cl, bl
je 0x4036eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4036ef
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4036cb
xor eax, eax
jmp 0x4036f4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40375d
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 0x403788
cmp cl, bl
je 0x403784
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403788
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403764
xor eax, eax
jmp 0x40378d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4037f6
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 0x403821
cmp cl, bl
je 0x40381d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403821
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4037fd
xor eax, eax
jmp 0x403826
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4039c6
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0040cef0
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.0040cee5
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.0040cee5
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.0040cee5
add esp, 0x14
inc di
cmp di, 0x3b
mov word [esp + 0x2a], di
jbe 0x4038e7
inc bp
mov word [esp + 0x2a], bx
mov word [esp + 0x28], bp
cmp bp, 0x17
jbe 0x4038f9
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 0x41cfa0
call esi
mov esi, dword [esp + 0x5cc]
push esi
call fcn.004039d0
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