Function at 0x422860
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, ecx
mov ecx, dword [0x549954]
push esi
mov esi, edx
mov dword [esp + 0x14], ebx
push edi
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], esi
cmp dword [ebx], ecx
jne 0x4228c5
cmp eax, 0xfffffdd8
jne 0x4228aa
push 0
push 0
push 0x130b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x54993c], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffdd9
jne 0x4228a1
mov ecx, dword [0x54993c]
call fcn.004240d0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffe02
jne 0x422aff
mov eax, dword [0x549920]
cmp eax, 1
jne 0x422a60
mov esi, dword [ebx + 0xc]
push esi
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
call sym.ProcessHacker.exe_PhParseCommandLineFuzzy
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
test esi, esi
jne 0x422963
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x42292b
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x422963
push dword [0x54b7b4]
lea eax, [edi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esp + 0x10], esi
mov dword [esi + 4], eax
mov dword [esi], edi
mov word [eax + edi], cx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x422963
push edi
push eax
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x422978
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x4229b4
push dword [0x54b7b4]
lea eax, [edi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [esp + 0x14], ecx
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov word [eax + edi], dx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4229b4
push edi
push eax
push dword [ecx + 4]
call fcn.004dd620
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [ebx + 0x14]
lea eax, [esp + 0x40]
mov edi, dword [ecx + 4]
mov esi, dword [esi + 4]
push 0x38
push 0
push eax
mov dword [esp + 0x48], 0x3c
call fcn.004dce30
mov eax, dword [sym.ProcessHacker.exe_PhMainWndHandle]
add esp, 0xc
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
push eax
mov dword [esp + 0x44], 0x440
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x422a1b
push dword [esp + 0x74]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 1
jmp 0x422a20
mov eax, 2
mov ecx, dword [esp + 0xc]
or esi, 0xffffffff
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x422a3f
call fcn.004a2a20
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x422dc1
call fcn.004a2a20
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4228a1
lea eax, [esp + 0x14]
mov edx, 0x600cb
push eax
or ecx, 0xffffffff
call fcn.004ad290
mov edi, eax
test edi, edi
js 0x422adc
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.0049e950
mov edi, eax
test edi, edi
js 0x422abe
mov esi, dword [esp + 0x18]
push 0
push 0
push 0
push esi
push 0
push 0
push 0
push 0
push dword [ebx + 0xc]
push 0
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [esp + 0xc]
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x422adc
mov eax, 1
mov dword [esi], eax
mov al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push str.Unable_to_execute_the_program.
push dword [sym.ProcessHacker.exe_PhMainWndHandle]
call sym.ProcessHacker.exe_PhShowStatus
mov eax, 2
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffe01
jne 0x4228a1
push str.wdc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x34], eax
test eax, eax
je 0x422dc1
push 0
mov edx, str.WdcRunTaskAsInteractiveUser
mov ecx, eax
call fcn.004a20e0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x422db7
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov edi, dword [ecx + 0xc]
push edi
call sym.ProcessHacker.exe_PhCountStringZ
mov esi, eax
add esi, esi
jne 0x422b5d
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x422b95
push dword [0x54b7b4]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
xor edx, edx
mov dword [esp + 0x14], ecx
lea eax, [ecx + 8]
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov word [eax + esi], dx
test edi, edi
je 0x422b95
push esi
push edi
push dword [ecx + 4]
call fcn.004dd620
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x422d75
mov esi, dword [eax]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422bb6
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x14], eax
lea eax, [ecx*2 + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor edx, edx
mov eax, dword [esp + 0x10]
lea ecx, [edi + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov word [ecx + eax], dx
test esi, esi
je 0x422c04
push eax
push esi
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
or esi, 0xffffffff
test al, al
jne 0x422c47
mov ecx, dword [edi + 4]
lea eax, [edi - 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004a1420
mov ecx, dword [esp + 0x10]
test al, al
je 0x422d3f
mov edi, dword [esp + 0x1c]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x422c47
call fcn.004a2a20
test edi, edi
je 0x422d5e
push 0x523054
push dword [edi + 4]
push 0x523054
push 3
call sym.ProcessHacker.exe_PhConcatStrings
mov ebx, eax
lea ecx, [edi - 8]
add esp, 0x10
mov dword [esp + 0x24], ebx
mov edx, esi
lock xadd dword [ecx + 4], edx
dec edx
jne 0x422c7e
call fcn.004a2a20
cmp dword [esp + 0x20], 2
jne 0x422d51
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, eax
mov dword [esp + 0x10], eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422ca0
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x20], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, dword [esp + 0x1c]
mov edi, eax
lea ecx, [edi + 8]
xor eax, eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov word [ecx + edx], ax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x422cee
push edx
push eax
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
push 0x523054
push dword [edi + 4]
push 0x523054
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov dword [esp + 0x10], eax
lea ecx, [edi - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x422d1d
call fcn.004a2a20
mov eax, dword [esp + 0x10]
push dword [eax + 4]
push 0x523058
push dword [ebx + 4]
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov ebx, eax
push dword [esp + 0x10]
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x422d55
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x422d5e
call fcn.004a2a20
jmp 0x422d5e
lock inc dword [ebx - 4]
push dword [esp + 0x24]
call sym.ProcessHacker.exe_PhDereferenceObject
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x422d75
cmp dword [ebx], 0
je 0x422d75
xor al, al
jmp 0x422d77
mov al, 1
test al, al
jne 0x422d99
mov esi, dword [esp + 0x2c]
mov ecx, esi
push 0
push 0
push dword [ebx + 4]
call dword [0x4fe8dc]
call esi
neg eax
sbb eax, eax
neg eax
inc eax
jmp 0x422d9e
mov eax, 2
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test ebx, ebx
je 0x422dae
push ebx
call sym.ProcessHacker.exe_PhDereferenceObject
push dword [esp + 0x14]
call sym.ProcessHacker.exe_PhDereferenceObject
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret