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

Disassembly:
mov eax, 0x4854bb
call fcn.004847e4
sub esp, 0x728
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x78], 5
je 0x40916d
xor ebx, ebx
cmp dword [esi + 0x74], 2
jne 0x408db2
lea edi, [esi + 0xa0]
cmp dword [edi + 0x14], 8
jb 0x408c0c
mov eax, dword [edi]
jmp 0x408c0e
mov eax, edi
push eax
push str.Waiting_on_process__ls
call fcn.004089ae
pop ecx
pop ecx
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00416760
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x28], 0
sete al
test al, al
je 0x408c8b
push 0x495748
lea ecx, [ebp - 0x70]
call fcn.00406124
push str.Please_select_executable_to_wait_for_n
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00406124
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
lea ecx, [ebp - 0x58]
push dword [eax]
push 1
call fcn.0040490e
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402c21
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00402c21
mov esi, 0xc0000225
jmp 0x408da0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 3
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
sete al
test al, al
je 0x408cbc
push ecx
push ecx
lea edx, [ebp - 0x38]
call fcn.0041efa0
pop ecx
pop ecx
lea ecx, [esi + 0xc0]
mov byte [esi + 0xbc], 1
lea edi, [esi + 0xcc]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
sete al
test al, al
lea eax, [ebp - 0x20]
jne 0x408d02
push eax
call fcn.0040a62b
mov eax, dword [esi + 0xb8]
mov ecx, edi
cmp eax, dword [esi + 0x84]
jae 0x408d45
inc eax
mov dword [esi + 0xb8], eax
lea eax, [ebp + 0xc]
push dword [edi]
push eax
call fcn.0040a5c5
jmp 0x408d2c
push ecx
push eax
lea edx, [ebp - 0x38]
call fcn.0041efa0
push dword [edi]
lea ecx, [ebp - 0x40]
push edi
push dword [esi + 0xc4]
push dword [esi + 0xc0]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0040add3
add esp, 0x20
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0xbc], 0
je 0x408d88
lea ecx, [esi + 0xc0]
jmp 0x408cc9
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esi + 0x90], eax
lea eax, [ebp + 8]
push dword [edi]
push eax
call fcn.0040a5c5
push dword [esi + 0x90]
push str.Got_process__d
call fcn.004089cc
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0040a8db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
push ebx
push 1
call fcn.00402c21
jmp 0x408fcc
push str.Process_wait_canceled_by_user
call fcn.00408990
pop ecx
lea ecx, [ebp - 0x20]
mov esi, 0x4c7
call fcn.0040a8db
lea ecx, [ebp - 0x38]
push ebx
push 1
call fcn.00402c21
mov eax, esi
jmp 0x40916f
cmp dword [esi + 0x74], 1
jne 0x408fcf
push 0x40
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.004663d0
add esp, 0xc
mov dword [ebp - 0x164], 0x44
cmp dword [esi + 0x38], 8
jb 0x408de3
mov ecx, dword [esi + 0x24]
jmp 0x408de6
lea ecx, [esi + 0x24]
lea edi, [esi + 0xa0]
cmp dword [edi + 0x14], 8
jb 0x408df6
mov eax, dword [edi]
jmp 0x408df8
mov eax, edi
push ecx
push eax
push str.Creating_new_process__ls_with_arguments__ls
call fcn.004089ae
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov edx, edi
call fcn.00416810
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x408e1e
mov ecx, dword [ecx]
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 8
jb 0x408e29
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x408e31
mov edi, dword [edi]
push dword [ebp + 0xc]
lea edx, [ebp - 0x164]
push edx
push ecx
push ebx
push 4
push ebx
push ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
lea ecx, [ebp - 0xd0]
neg ebx
sbb bl, bl
xor edi, edi
push edi
push 1
call fcn.00402c21
add bl, 1
je 0x408f03
push 0x495804
lea ecx, [ebp - 0x88]
call fcn.00406124
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x100]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xbf4]
call fcn.00416de0
push eax
mov edx, str.Failed_to_create_new_process._n
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe8]
call fcn.00406b2e
pop ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
push dword [ecx]
mov ecx, eax
push edi
call fcn.0040490e
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0xe8]
call fcn.00402c21
push edi
push 1
lea ecx, [ebp - 0x100]
call fcn.00402c21
push edi
push 1
lea ecx, [ebp - 0x88]
call fcn.00402c21
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
jmp 0x40916f
cmp byte [esi + 0x8c], 0
je 0x408f5e
push 0x495850
call fcn.004089ae
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov dword [esp], 0x1000
add ebx, 8
mov ecx, ebx
push dword [eax + 8]
call fcn.0041eb60
mov edi, eax
test edi, edi
js 0x408f56
push 0x1d7b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00404983
mov ecx, eax
call fcn.00418040
mov edi, eax
test edi, edi
jns 0x408f8d
push edi
push 0x495874
jmp 0x408f82
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
push 0x1fffff
add ebx, 8
push dword [eax + 8]
mov ecx, ebx
call fcn.0041eb60
mov edi, eax
test edi, edi
jns 0x408f8d
push edi
push str.Failed_to_attach_to_process__status_0x_X
call fcn.00408954
pop ecx
pop ecx
test edi, edi
js 0x408f94
mov ecx, ebx
call fcn.0041eca0
cmp dword [esi + 0x78], 2
jb 0x408fc4
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x90], eax
call fcn.0041eba0
cmp dword [esi + 0x78], 3
jne 0x408fc4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov byte [esi + 0x88], bl
mov edi, dword [ebp - 0x14]
cmp dword [esi + 0x78], 2
jae 0x40916d
cmp dword [esi + 0x74], 1
je 0x40916d
cmp byte [esi + 0x8c], 0
je 0x409042
push str.Escalating_process_handle_access
call fcn.004089ae
mov dword [esp], 0x1000
add edi, 8
push dword [esi + 0x90]
mov ecx, edi
call fcn.0041eb60
mov esi, eax
test esi, esi
js 0x409033
push 0x1d7b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00404983
mov ecx, eax
call fcn.00418040
mov esi, eax
test esi, esi
jns 0x40905d
push esi
push str.Failed_to_escalate_process_handle_access__status_0x_X
call fcn.00408954
pop ecx
pop ecx
jmp 0x409059
push 0xd7b
push dword [esi + 0x90]
add edi, 8
mov ecx, edi
call fcn.0041eb60
mov esi, eax
test esi, esi
js 0x409070
mov ecx, edi
call fcn.0041eea0
test al, al
mov ecx, 0xc000010a
cmove esi, ecx
test esi, esi
je 0x4090f6
mov edx, esi
lea ecx, [ebp - 0x118]
call fcn.00416de0
push eax
mov edx, str.Can_not_attach_to_the_process._n
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xb8]
call fcn.00406b2e
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 9
call fcn.00402c21
push 0x495934
lea ecx, [ebp - 0xa0]
call fcn.00406124
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
lea ecx, [ebp - 0xb8]
push dword [eax]
push ebx
call fcn.0040490e
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00402c21
lea ecx, [ebp - 0xb8]
jmp 0x408da3
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 0x10]
cmp byte [esi + 0xd], 0
je 0x409131
push 0x248
lea eax, [ebp - 0x3ac]
push ebx
push eax
call fcn.004663d0
mov eax, dword [esi]
lea ecx, [ebp - 0x3ac]
add esp, 0xc
push ecx
mov ecx, esi
call dword [eax + 0x3c]
cmp dword [ebp - 0x3a0], 0
setne bl
jmp 0x409162
push 0x388
lea eax, [ebp - 0x734]
push ebx
push eax
call fcn.004663d0
mov eax, dword [esi]
lea ecx, [ebp - 0x734]
add esp, 0xc
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [ebp - 0x71c]
or eax, dword [ebp - 0x718]
jne 0x40916d
test bl, bl
jne 0x40916d
mov ecx, edi
call fcn.0041eca0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8