Function at 0x401620
Capabilities:
Check if file exists
Create thread
Enumerate processes
Get file attributes
Inject dll
Inject thread
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
push 4
call fcn.00402352
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [eax], 0x4012b0
push ecx
push 0
push eax
push 0x4022f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
je 0x4019d9
push str.t6sp_mod.dll
lea ecx, [esp + 0x14]
call fcn.00401a60
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4016a3
test al, 0x10
jne 0x4016a3
xor bl, bl
jmp 0x4016a5
mov bl, 1
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4016e3
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402382
add esp, 8
test bl, bl
je 0x401716
push str.t6sp_mod.dll_not_found
lea ecx, [esp + 0x14]
call fcn.00401a60
push 0
push str.Error
lea ecx, [esp + 0x18]
call fcn.004019f0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.004012e0
test eax, eax
je 0x401744
cmp dword [esp + 0x2c], 0
jne 0x4018dd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00402344
mov esp, ebp
pop ebp
ret 0x10
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017c3
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4018fc
nop dword [eax]
lea eax, [esp + 0x54]
push str.t6sp.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x40182f
lea eax, [esp + 0x30]
push eax
push esi
call ebx
test eax, eax
jne 0x401780
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401761
push str.t6sp_mod_failed_to_launch._Error:__2
lea ecx, [esp + 0x14]
call fcn.00401a60
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
push 0
cmova eax, dword [esp + 0x14]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x40199a
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401990
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [esp + 0x38]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
push 0xd
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push 0xd
push 0x404240
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push str.LoadLibraryA
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x402150
push edi
push 0x401170
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401f40
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [esp + 0x2c], 0
je 0x4018e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00402344
mov esp, ebp
pop ebp
ret 0x10
push str.t6sp_mod_failed_to_launch._Error:__3
lea ecx, [esp + 0x14]
call fcn.00401a60
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
push 0
cmova eax, dword [esp + 0x14]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x40196d
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401963
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401963
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402382
add esp, 8
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
cmp dword [esp + 0x2c], eax
je 0x4019bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push ecx
push edx
call fcn.00402382
add esp, 8
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
cmp dword [esp + 0x2c], eax
je 0x4019bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [esp + 0x264]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402344
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3