Function at 0x402370
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Create process on windows
Create thread
Execute shellcode via indirect call
Get common file path
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423020
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d0
mov eax, dword [0x434068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.kernel32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x44
mov esi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1e0]
push edi
push eax
movups xmmword [ebp - 0xd4], xmm0
call fcn.00408a20
xor eax, eax
mov dword [ebp - 0x68], edi
add esp, 0xc
mov dword [ebp - 0x64], 7
lea ecx, [ebp - 0x78]
mov word [ebp - 0x78], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 7
push eax
push 0x104
mov word [ebp - 0x48], ax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call fcn.00402d70
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
push eax
lea ecx, [ebp - 0x78]
call fcn.00402d70
push str._samp.dll
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.00404f70
add esp, 4
lea ecx, [ebp - 0x48]
push eax
call fcn.00402e70
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x4024b1
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c85
push edx
push ecx
call fcn.00406aa4
add esp, 8
push str.imrp.dll
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.00404f70
add esp, 4
lea ecx, [ebp - 0x90]
push eax
call fcn.00402e70
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x40250a
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402500
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8a
push edx
push ecx
call fcn.00406aa4
add esp, 8
push str.gta_sa.exe
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.00404f70
add esp, 4
lea ecx, [ebp - 0xa8]
push eax
call fcn.00402e70
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x402563
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402559
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8f
push edx
push ecx
call fcn.00406aa4
add esp, 8
test esi, esi
je 0x402a03
push str.LoadLibraryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x402a03
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x1e0]
push eax
push 0
push 0
push 0xc
push 0
push 0
lea esi, [ebp - 0xa8]
cmovae esi, dword [ebp - 0xa8]
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402a03
mov eax, dword [ebp - 0x38]
push 0x40
push 0x3000
lea eax, [eax*2 + 2]
push eax
push 0
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x402677
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 0
cmovae ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
push eax
push ecx
push esi
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402659
push 0
push 4
push esi
push dword [ebp - 0xc4]
push 0
push 0
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x402659
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402661
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 0x8000
push 0
push esi
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40267f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x190]
cmovae eax, dword [ebp - 0x90]
sub esp, 0xc
push eax
call fcn.004044f0
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x194], eax
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x184], 6
je 0x402737
push 0x10
push str.Error
push str.failed1
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x184]
push str.Opening_the_file_failed:__X_n
call fcn.00401740
add esp, 8
lea ecx, [ebp - 0x190]
call fcn.00403090
push str.PAUSE
call fcn.0040ce9f
add esp, 4
lea ecx, [ebp - 0x190]
mov edi, 0xfffffffb
call fcn.00402cc0
jmp 0x402b2e
mov ecx, dword [ebp + ecx - 0x158]
test ecx, ecx
je 0x402747
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0x190]
call fcn.00404b80
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x184], 6
jne 0x40278d
mov ecx, dword [ebp + ecx - 0x158]
lea edx, [ebp - 0x30]
push 1
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x190]
jmp 0x4027a9
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x158]
test ecx, ecx
je 0x4027bc
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x2c]
test ecx, ecx
jg 0x40282a
jl 0x4027dc
cmp eax, 0x1000
jae 0x40282a
push 0x10
push str.Error
push str.failed2
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.Filesize_invalid._n
call fcn.00401740
add esp, 4
lea ecx, [ebp - 0x190]
call fcn.00403090
push str.PAUSE
call fcn.0040ce9f
add esp, 4
lea ecx, [ebp - 0x190]
mov edi, 0xfffffffa
call fcn.00402cc0
jmp 0x402b2e
push eax
call fcn.00406ab2
mov esi, eax
add esp, 4
test esi, esi
jne 0x402884
push 0x10
push str.Error
push str.failed3
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.Cant_allocate_dll_file._n
call fcn.00401740
add esp, 4
lea ecx, [ebp - 0x190]
call fcn.00403090
push str.PAUSE
call fcn.0040ce9f
add esp, 4
lea ecx, [ebp - 0x190]
lea edi, [esi - 7]
call fcn.00402cc0
jmp 0x402b2e
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x190]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ebp + eax - 0x184]
and edx, 0xfffffffe
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.004021a0
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x158]
test ecx, ecx
je 0x4028cc
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0x190]
call fcn.00404b80
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x184], 6
jne 0x402941
mov ecx, dword [ebp + ecx - 0x158]
lea edx, [ebp - 0x60]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
adc eax, dword [ebp - 0x54]
and ecx, eax
cmp ecx, 0xffffffff
jne 0x402941
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x190]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004021a0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x158]
test ecx, ecx
je 0x402961
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
adc eax, dword [ebp - 0x2c]
push eax
push ecx
push esi
lea ecx, [ebp - 0x190]
call fcn.00403aa0
lea ecx, [ebp - 0x190]
call fcn.00403090
mov ecx, dword [ebp - 0xd4]
sub esp, 0x1c
mov edx, esi
call fcn.00401050
add esp, 0x1c
push esi
test al, al
jne 0x4029d6
call fcn.00406a6f
add esp, 4
push 0x10
push str.Error
push str.failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x190]
mov edi, 0xfffffff8
call fcn.00402cc0
jmp 0x402b2e
call fcn.00406a6f
add esp, 4
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x190]
call fcn.00402cc0
jmp 0x402a0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x402b2e
xor eax, eax
mov dword [ebp - 0xb0], 0
push eax
push eax
mov word [ebp - 0xc0], ax
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc4]
push eax
push 0x400
push edi
push 0
push 0x1300
mov dword [ebp - 0xac], 7
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
xor ecx, ecx
mov dword [ebp - 0x20], 0
push eax
push dword [ebp - 0xc4]
mov word [ebp - 0x30], cx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
call fcn.00404260
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402e70
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x402abe
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ab4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c94
push edx
push ecx
call fcn.00406aa4
add esp, 8
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xac], 8
lea eax, [ebp - 0xc0]
push 0x10
cmovae eax, dword [ebp - 0xc0]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x402b2e
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c99
push edx
push ecx
call fcn.00406aa4
add esp, 8
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x402b6b
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c9e
push edx
push ecx
call fcn.00406aa4
add esp, 8
mov edx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp edx, 8
jb 0x402bc2
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca3
push edx
push ecx
call fcn.00406aa4
add esp, 8
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp edx, 8
jb 0x402c19
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca8
push edx
push ecx
call fcn.00406aa4
add esp, 8
mov edx, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x402c63
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cad
push edx
push ecx
call fcn.00406aa4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406a5e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
call fcn.0040dd24
int3