Function at 0x405000
Capabilities:
Create process on windows
Create process suspended
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408c93
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
call fcn.00404ef0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jne 0x40504b
mov esi, 1
jmp 0x40543d
mov byte [ebp - 0xb0], 0
lea edx, [ebp - 0x40]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x58]
call fcn.004057e0
add esp, 4
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00404300
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00403780
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb4]
cmp ecx, 8
jb 0x4050cf
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4050c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4050c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407a0b
add esp, 8
xor eax, eax
mov dword [ebp - 0xb8], 0
mov word [ebp - 0xc8], ax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xb4], 7
push eax
call fcn.00402780
push ecx
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00403780
mov ecx, dword [0x40d500]
cmp ecx, 0x10
jb 0x405143
mov eax, dword [0x40d4ec]
inc ecx
cmp ecx, 0x1000
jb 0x405139
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051b2
mov eax, edx
push ecx
push eax
call fcn.00407a0b
add esp, 8
movups xmm0, xmmword [ebp - 0xe0]
mov byte [ebp - 0xe0], 0
movups xmmword [0x40d4ec], xmm0
movq xmm0, qword [ebp - 0xd0]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xe4]
movq qword [0x40d4fc], xmm0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
cmp ecx, 8
jb 0x4051c2
mov edx, dword [ebp - 0xf8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4051b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4051b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407a0b
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Selected_Executable_Path:
call fcn.004019f0
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov ecx, eax
call fcn.00403f90
add esp, 4
mov ecx, eax
push 0x401c10
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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Parent_Directory:
call fcn.004019f0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403f90
add esp, 4
mov ecx, eax
push 0x401c10
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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Selected_Filename:
call fcn.004019f0
cmp dword [0x40d500], 0x10
mov edx, 0x40d4ec
push dword [0x40d4fc]
cmovae edx, dword [0x40d4ec]
mov ecx, eax
call fcn.00403f90
add esp, 4
mov ecx, eax
push 0x401c10
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_____]
push 0x40
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push edx
cmovae ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x9c]
push edx
push eax
push 0
push 4
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4052fd
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_process._Error:
call fcn.004019f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
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___unsigned_long_int_]
push 0x401c10
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_____]
mov esi, 1
jmp 0x4053ad
push dword [ebp - 0xa8]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xac]
call fcn.00402870
test al, al
jne 0x40535f
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_find_module_base_address._Exiting.
call fcn.004019f0
push 0x401c10
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_____]
push dword [ebp - 0xa8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xac]
call esi
mov esi, 1
jmp 0x4053ad
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
call fcn.004043b0
push dword [ebp - 0xa8]
call esi
push dword [ebp - 0xa8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xac]
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Target_process_resumed_successfully.
call fcn.004019f0
push 0x401c10
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_____]
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4053e1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4053d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405463
push ecx
push edx
call fcn.00407a0b
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 8
jb 0x405429
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40541f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405463
push ecx
push edx
call fcn.00407a0b
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x405473
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405469
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405469
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407a0b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004079cd
mov esp, ebp
pop ebp
ret