Function at 0x4028c0
Capabilities:
Create thread
Enumerate processes
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405b92
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
push 0x4063e8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
call fcn.00403350
cmp dword [ebp + 8], 2
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x268], 0
push dword [ebp - 0x268]
jne 0x402ad5
lea edx, [esi + 4]
call fcn.00404280
add esp, 4
mov dword [ebp - 0x284], 0
xor eax, eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x29c]
mov dword [ebp - 0x274], 0
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
mov dword [ebp - 0x268], 8
call fcn.00402330
test eax, eax
jne 0x402ee6
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004030d0
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403020
mov ecx, dword [ebp - 0x2ac]
cmp ecx, 8
jb 0x402a30
mov edx, dword [ebp - 0x2c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402acf
push ecx
push edx
call fcn.00404995
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x270]
cmp ecx, 8
jb 0x402a70
mov edx, dword [ebp - 0x284]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402acf
push ecx
push edx
call fcn.00404995
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
cmp ecx, 8
jb 0x402bdd
mov edx, dword [ebp - 0x29c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402bd3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.004042c0
add esp, 4
mov dword [ebp - 0x284], 0
xor eax, eax
mov byte [ebp - 4], 7
lea edx, [ebp - 0x29c]
mov dword [ebp - 0x274], 0
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
mov dword [ebp - 0x268], 0x40
call fcn.00402330
test eax, eax
jne 0x402ef4
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004030d0
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403020
mov ecx, dword [ebp - 0x2ac]
cmp ecx, 8
jb 0x402b8c
mov edx, dword [ebp - 0x2c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402acf
push ecx
push edx
call fcn.00404995
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x270]
cmp ecx, 8
jb 0x402a70
mov edx, dword [ebp - 0x284]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402acf
jmp 0x402a66
push ecx
push edx
call fcn.00404995
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x284], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov byte [ebp - 4], 2
push dword [ebp - 0x1c]
mov word [ebp - 0x284], cx
lea ecx, [ebp - 0x284]
push eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
call fcn.00403350
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
call fcn.00402750
test al, al
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x270]
sete bl
cmp ecx, 8
jb 0x402c7a
mov edx, dword [ebp - 0x284]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402acf
push ecx
push edx
call fcn.00404995
add esp, 8
test bl, bl
jne 0x402f02
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f2a
push 0x228
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402f23
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
nop word [eax + eax]
mov ecx, str.hl2.exe
lea eax, [ebp - 0x234]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402d16
test dx, dx
je 0x402d12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402d16
add eax, 4
add ecx, 4
test dx, dx
jne 0x402cf0
xor eax, eax
jmp 0x402d1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x402d33
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
je 0x402f23
jmp 0x402ce0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x402f2a
push eax
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, eax
mov dword [ebp - 0x25c], ecx
test ecx, ecx
je 0x402f4b
mov eax, dword [ebp - 0x1c]
push 4
push 0x3000
add eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
mov dword [ebp - 0x260], edx
test edx, edx
je 0x402f6c
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 8
push 0
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edx
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402f8d
push 0
push 0
push dword [ebp - 0x260]
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x402fae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403750
push 0x403960
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 eax, dword [ebp - 0x260]
test eax, eax
je 0x402e22
push 0x8000
push 0
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x402e2f
push eax
call esi
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x402e3c
push eax
call esi
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x1f4
mov dword [ebp - 0x268], 0
call fcn.00403990
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x402e95
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402acf
push ecx
push edx
call fcn.00404995
add esp, 8
xor eax, eax
jmp 0x402eca
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404952
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x29c]
mov edx, eax
push ecx
call fcn.00402240
lea ecx, [ebp - 0x29c]
mov edx, eax
push ecx
call fcn.00402240
push str.Failed_to_find_target_file
lea ecx, [ebp - 0x2d0]
call fcn.00401170
push 0x407368
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Target_process_isnt_open
lea ecx, [ebp - 0x30c]
call fcn.00401170
push 0x407368
lea eax, [ebp - 0x30c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_open_process_handle
lea ecx, [ebp - 0x2dc]
call fcn.00401170
push 0x407368
lea eax, [ebp - 0x2dc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_allocate_memory_for_file_path
lea ecx, [ebp - 0x2e8]
call fcn.00401170
push 0x407368
lea eax, [ebp - 0x2e8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_write_dll_path_into_process
lea ecx, [ebp - 0x2f4]
call fcn.00401170
push 0x407368
lea eax, [ebp - 0x2f4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_open_remote_thread
lea ecx, [ebp - 0x300]
call fcn.00401170
push 0x407368
lea eax, [ebp - 0x300]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3