Function at 0x402df0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Move file
Resume thread
Set console window title
Set registry value
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41824f
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1a
lea eax, [ebp - 0x580]
push eax
call fcn.00402bd0
add esp, 8
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x500]
mov dword [ebp - 0x4a0], ecx
mov edx, dword [ebp - 0x4a0]
mov dword [ebp - 0x4c4], edx
mov eax, dword [ebp - 0x4a0]
cmp dword [eax + 0x14], 0x10
jb 0x402e62
mov dword [ebp - 0x4c0], 1
jmp 0x402e6c
mov dword [ebp - 0x4c0], 0
mov cl, byte [ebp - 0x4c0]
mov byte [ebp - 0x481], cl
movzx edx, byte [ebp - 0x481]
test edx, edx
je 0x402e9d
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [eax]
mov dword [ebp - 0x504], ecx
mov edx, dword [ebp - 0x504]
mov dword [ebp - 0x4c4], edx
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x50c], ecx
mov edx, dword [ebp - 0x50c]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea ecx, [ebp - 0x580]
call fcn.004019b0
push 0x14
lea eax, [ebp - 0x598]
push eax
call fcn.00402c90
add esp, 8
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x560]
mov dword [ebp - 0x4d0], ecx
mov edx, dword [ebp - 0x510]
mov dword [ebp - 0x4a4], edx
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4a4]
cmp dword [ecx + 0x14], 0x10
jb 0x402f20
mov dword [ebp - 0x4c8], 1
jmp 0x402f2a
mov dword [ebp - 0x4c8], 0
mov dl, byte [ebp - 0x4c8]
mov byte [ebp - 0x482], dl
movzx eax, byte [ebp - 0x482]
test eax, eax
je 0x402f5b
mov ecx, dword [ebp - 0x4a4]
mov edx, dword [ecx]
mov dword [ebp - 0x514], edx
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x4d0], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x51c], eax
mov ecx, dword [ebp - 0x4d0]
push ecx
mov edx, dword [ebp - 0x51c]
push edx
call fcn.0040a4c8
add esp, 8
lea ecx, [ebp - 0x598]
call fcn.004019b0
push str._GM__Searching_for_MTA..._n
call fcn.00402050
add esp, 4
push 0xc
call fcn.004048a4
add esp, 4
mov dword [ebp - 0x4a8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x4a8], 0
je 0x403004
xor eax, eax
mov ecx, dword [ebp - 0x4a8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 0
push str.SOFTWAREWOW6432NodeMulti_Theft_Auto:_San_Andreas_All1.6
push 0x80000002
mov ecx, dword [ebp - 0x4a8]
call fcn.00401610
mov dword [ebp - 0x4d4], eax
jmp 0x40300e
mov dword [ebp - 0x4d4], 0
mov edx, dword [ebp - 0x4d4]
mov dword [ebp - 0x520], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x4038a6
push 0
push str.Last_Run_Location
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x4ac]
call fcn.004017d0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x134], 0
jne 0x40306f
mov dword [ebp - 0x4d8], 1
jmp 0x403079
mov dword [ebp - 0x4d8], 0
mov dl, byte [ebp - 0x4d8]
mov byte [ebp - 0x483], dl
movzx eax, byte [ebp - 0x483]
test eax, eax
je 0x4030b0
push str._ERROR__Can_t_find_installed_game__n
call fcn.00402050
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00403910
mov byte [ebp - 4], 2
mov dword [ebp - 0x494], str.Multi_Theft_Auto.exe
mov edx, dword [ebp - 0x494]
add edx, 1
mov dword [ebp - 0x524], edx
mov eax, dword [ebp - 0x494]
mov cl, byte [eax]
mov byte [ebp - 0x484], cl
add dword [ebp - 0x494], 1
cmp byte [ebp - 0x484], 0
jne 0x4030df
mov edx, dword [ebp - 0x494]
sub edx, dword [ebp - 0x524]
mov dword [ebp - 0x548], edx
mov eax, dword [ebp - 0x548]
mov dword [ebp - 0x528], eax
mov ecx, dword [ebp - 0x528]
mov dword [ebp - 0x538], ecx
mov edx, dword [ebp - 0x538]
push edx
push str.Multi_Theft_Auto.exe
lea ecx, [ebp - 0x144]
call fcn.00403d10
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x498], eax
cmp dword [ebp - 0x498], 0
je 0x403193
mov ecx, dword [ebp - 0x564]
mov dword [ebp - 0x4dc], ecx
mov ecx, dword [ebp - 0x498]
call fcn.00401640
mov edx, 1
and edx, 1
je 0x403185
push 0xc
mov eax, dword [ebp - 0x498]
push eax
call fcn.004048d9
add esp, 8
mov ecx, dword [ebp - 0x498]
mov dword [ebp - 0x4dc], ecx
jmp 0x40319d
mov dword [ebp - 0x4dc], 0
lea edx, [ebp - 0x144]
mov dword [ebp - 0x4b0], edx
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp - 0x4b0]
cmp dword [ecx + 0x14], 0x10
jb 0x4031cd
mov dword [ebp - 0x4fc], 1
jmp 0x4031d7
mov dword [ebp - 0x4fc], 0
mov dl, byte [ebp - 0x4fc]
mov byte [ebp - 0x485], dl
movzx eax, byte [ebp - 0x485]
test eax, eax
je 0x403208
mov ecx, dword [ebp - 0x4b0]
mov edx, dword [ecx]
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x540]
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp - 0x4f8]
mov dword [ebp - 0x544], ecx
mov edx, dword [ebp - 0x544]
mov dword [ebp - 0x54c], edx
mov eax, dword [ebp - 0x54c]
push eax
push str._GM__Found:__s_n_GM__Starting_Multi_Theft_Auto.exe..._n
call fcn.00402050
add esp, 8
mov dword [ebp - 0x1a0], 0x44
push 0x40
push 0
lea ecx, [ebp - 0x19c]
push ecx
call fcn.00405cf0
add esp, 0xc
push 0x100
push 0
push 0x4223b0
call fcn.00405cf0
add esp, 0xc
lea edx, [ebp - 0x144]
mov dword [ebp - 0x4b4], edx
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4b4]
cmp dword [ecx + 0x14], 0x10
jb 0x403295
mov dword [ebp - 0x4f4], 1
jmp 0x40329f
mov dword [ebp - 0x4f4], 0
mov dl, byte [ebp - 0x4f4]
mov byte [ebp - 0x486], dl
movzx eax, byte [ebp - 0x486]
test eax, eax
je 0x4032d0
mov ecx, dword [ebp - 0x4b4]
mov edx, dword [ecx]
mov dword [ebp - 0x550], edx
mov eax, dword [ebp - 0x550]
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4e0]
mov dword [ebp - 0x554], ecx
mov edx, dword [ebp - 0x554]
mov dword [ebp - 0x558], edx
mov eax, dword [ebp - 0x558]
push eax
push str.__s__upd
push 0x4223b0
call fcn.004020b0
add esp, 0xc
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x4b8], ecx
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4e8], edx
mov eax, dword [ebp - 0x4b8]
cmp dword [eax + 0x14], 0x10
jb 0x403331
mov dword [ebp - 0x4f0], 1
jmp 0x40333b
mov dword [ebp - 0x4f0], 0
mov cl, byte [ebp - 0x4f0]
mov byte [ebp - 0x487], cl
movzx edx, byte [ebp - 0x487]
test edx, edx
je 0x40336c
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [eax]
mov dword [ebp - 0x55c], ecx
mov edx, dword [ebp - 0x55c]
mov dword [ebp - 0x4e8], edx
mov eax, dword [ebp - 0x4e8]
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
mov dword [ebp - 0x530], ecx
lea edx, [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x530]
push ecx
push 0
push 4
push 1
push 0
push 0
push 0x4223b0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
je 0x403871
push 0x2cc
push 0
lea edx, [ebp - 0x47c]
push edx
call fcn.00405cf0
add esp, 0xc
mov dword [ebp - 0x47c], 0x1003f
lea eax, [ebp - 0x47c]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
je 0x403841
push str._GM__Saving_entry_point_instruction..._n
call fcn.00402050
add esp, 4
mov dword [ebp - 0x124], 0
push 4
push 0x3000
push 5
push 0
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0
jne 0x403471
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_allocate_memory_for_DLL_data__Error:__d__n
call fcn.00402050
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x49c]
push eax
push str._GM__Allocated_data_region_at_address:_0x_X_n
call fcn.00402050
add esp, 8
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x124]
push ecx
push 5
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x3cc]
push eax
mov ecx, dword [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
jne 0x4034f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_read_memory__Last_Error_Code:___d__n
call fcn.00402050
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x124]
push edx
push 5
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
je 0x40382b
push 0xc
call fcn.004048a4
add esp, 4
mov dword [ebp - 0x4bc], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x4bc], 0
je 0x403570
xor eax, eax
mov ecx, dword [ebp - 0x4bc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 1
push str.SoftwareGasMask
push 0x80000001
mov ecx, dword [ebp - 0x4bc]
call fcn.00401610
mov dword [ebp - 0x4e4], eax
jmp 0x40357a
mov dword [ebp - 0x4e4], 0
mov edx, dword [ebp - 0x4e4]
mov dword [ebp - 0x534], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], 0
je 0x403829
mov ecx, dword [ebp - 0x49c]
push ecx
push str.StoredData
mov ecx, dword [ebp - 0x490]
call fcn.00401880
mov edx, dword [ebp - 0x3cc]
push edx
push str.SpinLock
mov ecx, dword [ebp - 0x490]
call fcn.00401880
mov eax, dword [ebp - 0x1a4]
push eax
push str.Thread
mov ecx, dword [ebp - 0x490]
call fcn.00401880
push str._GM__Instruction_writed_to_allocated_memory__n
call fcn.00402050
add esp, 4
mov ecx, dword [ebp - 0x3cc]
mov dword [ebp - 0x48c], ecx
mov byte [ebp - 0x20], 0xe9
mov byte [ebp - 0x1f], 0x90
mov byte [ebp - 0x1e], 0x90
mov byte [ebp - 0x1d], 0x90
mov byte [ebp - 0x1c], 0x90
mov edx, dword [ebp - 0x48c]
push edx
push str._GM__Address_of_OEP_for_spinlock:_0x_X_n
call fcn.00402050
add esp, 8
mov eax, dword [ebp - 0x48c]
sub eax, dword [ebp - 0x48c]
sub eax, 5
mov dword [ebp - 0x12c], eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x12c]
mov dword [ebp + ecx - 0x20], edx
mov dword [ebp - 0x128], 0
lea eax, [ebp - 0x128]
push eax
push 0x40
push 5
mov ecx, dword [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
jne 0x4036af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41eef8
call fcn.00402050
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._GM__Writing_spinlock_shellcode_to_process..._n
call fcn.00402050
add esp, 4
lea eax, [ebp - 0x124]
push eax
push 5
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
je 0x403815
push str._GM__Spinlock_shellcode_successfully_placed__n
call fcn.00402050
add esp, 4
push 0x100
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.00405cf0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x120]
push edx
call fcn.0040ac94
add esp, 8
push 0
lea eax, [ebp - 0x120]
push eax
push str.HomeDir
mov ecx, dword [ebp - 0x490]
push ecx
call fcn.00401660
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x128]
push eax
push 5
mov ecx, dword [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
jne 0x40379e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError:_Unable_to_change_memory_access__Last_Error_Code:___d__n
call fcn.00402050
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x568], esp
push str.GasMaskAgent.dll
call fcn.004018e0
mov eax, dword [ebp - 0x1b0]
push eax
call fcn.00402390
mov ecx, dword [ebp - 0x490]
mov dword [ebp - 0x4ec], ecx
cmp dword [ebp - 0x4ec], 0
je 0x4037e9
push 1
mov ecx, dword [ebp - 0x4ec]
call fcn.004038e0
mov dword [ebp - 0x53c], eax
jmp 0x4037f3
mov dword [ebp - 0x53c], 0
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GM__2_Can_t_write_to_process_:__Last_Error_Code:__d_n
call fcn.00402050
add esp, 8
jmp 0x40383f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GM__1_Can_t_write_to_process_:__Last_Error_Code:__d_n
call fcn.00402050
add esp, 8
jmp 0x403855
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GM__Can_t_obtain_thread_context._Last_Error_Code:__d_n
call fcn.00402050
add esp, 8
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403885
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GM__Cannot_create_process_:__Last_Error_Code:__d_n
call fcn.00402050
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.004019b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.004019b0
mov edx, 1
test edx, edx
je 0x4038b9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4038a6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404891
mov esp, ebp
pop ebp
ret