Function at 0x4053c0
Capabilities:
Create process on windows
Create thread
Inject dll
Inject thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a743
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x438080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x439100]
xorps xmm0, xmm0
mov edi, 0x7fffffff
movlpd qword [ebp - 0x98], xmm0
mov eax, edi
movlpd qword [ebp - 0x90], xmm0
sub eax, ecx
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x9c], 0x44
movups xmmword [ebp - 0xac], xmm0
cmp eax, 0xb
jb 0x405951
cmp dword [0x439104], 0xf
mov eax, 0x4390f0
push 0xb
cmova eax, dword [0x4390f0]
push str.gta_sa.exe
push ecx
push eax
push ecx
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x40]
call fcn.00413150
mov dword [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 6
jb 0x405956
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 6
cmova eax, dword [ebp - 0x40]
push str._c__n
push ecx
push eax
push ecx
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xe8]
call fcn.00413150
push 0x439110
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call fcn.0040c2d0
mov dword [ebp - 0xbc], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0xb8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xcc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xbc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xb8]
mov eax, edx
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
push 0x19
push str.__h_15.235.205.31__p_7777
cmp eax, 0x19
jb 0x40555c
cmp edx, 0xf
lea esi, [ebp - 0xcc]
lea eax, [ecx + 0x19]
cmova esi, dword [ebp - 0xcc]
add esi, ecx
mov dword [ebp - 0xbc], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x19], 0
lea eax, [ebp - 0xcc]
jmp 0x405576
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0xcc]
push dword [ebp - 0xb4]
push 0x19
call fcn.00411690
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb8]
cmp ecx, 0xf
jbe 0x4055e7
mov edx, dword [ebp - 0xcc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4055dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405632
push ecx
push edx
call fcn.004294df
add esp, 8
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0xf
mov byte [ebp - 0xcc], 0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xd4]
cmp ecx, 0xf
jbe 0x405642
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405638
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405638
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
cmp dword [0x439104], 0xf
lea esi, [ebp - 0xac]
push esi
mov ecx, 0x4390f0
mov dword [ebp - 0xd8], 0
cmova ecx, dword [0x4390f0]
lea esi, [ebp - 0x9c]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
push esi
cmova edx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
push ecx
cmova eax, dword [ebp - 0x40]
push 0
push 0xc
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058a1
mov ecx, dword [0x439100]
sub edi, ecx
cmp edi, 9
jb 0x40595b
cmp dword [0x439104], 0xf
mov eax, 0x4390f0
push 9
cmova eax, dword [0x4390f0]
push str._samp.dll
push ecx
push eax
push ecx
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x58]
call fcn.00413150
mov byte [ebp - 4], 6
lea esi, [ebp - 0x58]
push dword [ebp - 0xa4]
cmp dword [ebp - 0x44], 0xf
push 0
cmova esi, dword [ebp - 0x58]
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405828
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, esi
mov dword [ebp - 0xb0], eax
lea eax, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x405740
push 4
push 0x3000
sub edx, eax
push edx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, esi
mov dword [ebp - 0xb4], eax
lea ecx, [edx + 1]
mov dword [ebp - 0xd0], ecx
nop dword [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x405770
sub edx, dword [ebp - 0xd0]
push 0
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push dword [ebp - 0xb4]
push dword [ebp - 0xb0]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0xb0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4057b6
push 0x8000
sub esi, ecx
push esi
push dword [ebp - 0xb4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0xb0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Started_gta_sa.exe_with_PID
call fcn.0040f4e0
push dword [ebp - 0xa4]
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___unsigned_long_int_]
mov edx, str._and_injected_samp.dll
mov ecx, eax
call fcn.0040f4e0
push 0x40f700
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_____]
jmp 0x405859
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_injecting_samp.dll
call fcn.0040f4e0
push 0x40f700
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 0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xac]
call esi
push dword [ebp - 0xa8]
call esi
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x4058be
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405895
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405895
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
jmp 0x4058be
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_creating_process_for_gta_sa.exe
call fcn.0040f4e0
push 0x40f700
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 ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4058ee
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4058e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405926
push ecx
push edx
call fcn.004294df
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x405936
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40592c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40592c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret
call fcn.00401470
call fcn.00401470
call fcn.00401470
int3