Function at 0x403400
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 0x403447
mov ecx, dword [esp + 0xc]
push str.DisableRegistryTools
push ecx
call edi
test eax, eax
jne 0x403447
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 0x403473
mov ecx, dword [esp + 0xc]
push str.DisableRegistryTools
push ecx
call edi
test eax, eax
jne 0x403473
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 0x40349f
mov ecx, dword [esp + 0xc]
push str.DisableTaskMgr
push ecx
call edi
test eax, eax
jne 0x40349f
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 0x4034cb
mov ecx, dword [esp + 0xc]
push str.DisableTaskMgr
push ecx
call edi
test eax, eax
jne 0x4034cb
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 0x4034f7
mov ecx, dword [esp + 0xc]
push str.DisableCMD
push ecx
call edi
test eax, eax
jne 0x4034f7
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 0x403523
mov ecx, dword [esp + 0xc]
push str.DisableCMD
push ecx
call edi
test eax, eax
jne 0x403523
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 0x40357d
cmp cl, bl
je 0x403579
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40357d
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403559
xor eax, eax
jmp 0x403582
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4035eb
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 0x403616
cmp cl, bl
je 0x403612
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403616
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4035f2
xor eax, eax
jmp 0x40361b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403684
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, 0x415574
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4036af
cmp cl, bl
je 0x4036ab
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4036af
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40368b
xor eax, eax
jmp 0x4036b4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40371d
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 0x403748
cmp cl, bl
je 0x403744
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403748
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403724
xor eax, eax
jmp 0x40374d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4037b6
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 0x4037e1
cmp cl, bl
je 0x4037dd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4037e1
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4037bd
xor eax, eax
jmp 0x4037e6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403986
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0040a860
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.0040a855
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.0040a855
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.0040a855
add esp, 0x14
inc di
cmp di, 0x3b
mov word [esp + 0x2a], di
jbe 0x4038a7
inc bp
mov word [esp + 0x2a], bx
mov word [esp + 0x28], bp
cmp bp, 0x17
jbe 0x4038b9
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 0x41a698
call esi
mov esi, dword [esp + 0x5cc]
push esi
call fcn.00403a90
add esp, 0x14
push 0x309
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 0x401c10
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