Function at 0x4f6bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x2c]
push edi
mov dword [esp + 0x54], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4f6c56
push esi
call sym.SystemInformer.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x24], esi
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push edi
push eax
call sym.SystemInformer.exe_PhCreateString3
mov ecx, dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x20], edi
or ebx, 0xffffffff
test ecx, ecx
je 0x4f6c90
push ecx
call sym.SystemInformer.exe_PhCountStringZ
mov ecx, dword ds:[esp + 0xc]
add eax, eax
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x1c], ecx
call sym.SystemInformer.exe_PhCreateString3
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x4f6dd6
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call sym.SystemInformer.exe_PhParseCommandLineFuzzy
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4f6cb2
cmp dword [esi], 0
jne 0x4f6cfa
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4f6cc2
call sym.SystemInformer.exe_PhReferenceEmptyString
nop
jmp 0x4f6cdc
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x2c], ecx
call sym.SystemInformer.exe_PhCreateString3
mov ecx, esi
mov esi, eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x4f6cfa
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f6cfa
call fcn.004fbd80
push 0x630ba0
lea eax, [esp + 0x10]
push eax
push 0x630ba0
call sym.SystemInformer.exe_PhConcatStringRef3
cmp dword [esp + 0x34], 0
mov dword [esp + 0xc], eax
je 0x4f6d4c
lea ecx, [esp + 0x34]
push ecx
push 0x630bb8
push eax
call sym.SystemInformer.exe_PhConcatStringRef3
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x4f6d4c
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f6d48
call fcn.004fbd80
mov eax, dword [esp + 0xc]
mov ecx, edi
mov edi, eax
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x4f6d6a
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f6d6a
call fcn.004fbd80
test esi, esi
je 0x4f6dd6
mov ecx, dword [esi + 4]
lea edx, [esp + 0xa0]
call fcn.0051aa60
lea ecx, [ecx]
test eax, eax
jns 0x4f6dd6
cmp eax, 0xc0000043
je 0x4f6dd6
cmp eax, 0xc0000022
je 0x4f6dd6
mov ecx, dword [esi + 4]
mov edx, str..exe
call fcn.004f9f00
nop
test eax, eax
je 0x4f6db5
mov ecx, esi
mov esi, eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x4f6dd6
add ecx, 0xfffffff8
jmp 0x4f6dc7
mov eax, esi
xor esi, esi
mov dword [esp + 0x14], esi
test eax, eax
je 0x4f6dd6
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f6dd6
call fcn.004fbd80
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4f6e07
push eax
call sym.SystemInformer.exe_PhCountStringZ
mov edx, dword ds:[esp + 0x28]
add eax, eax
push 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x44], edx
call sym.SystemInformer.exe_PhCreateString3
jmp 0x4f6e16
test esi, esi
je 0x4f6e1a
cmp dword [esi], 0
je 0x4f6e1a
push esi
call sym.SystemInformer.exe_PhGetBaseDirectory
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
shr ecx, 5
and ecx, 1
mov edx, ecx
or edx, 2
test byte [ebp + 0x1c], 0x40
cmove edx, ecx
mov ecx, edx
or ecx, 4
test byte [ebp + 0x1c], 4
cmove ecx, edx
mov edx, ecx
or edx, 0x10
test byte [ebp + 0x1c], 0x10
cmove edx, ecx
mov ecx, edx
or ecx, 0x400
test byte [ebp + 0x1c], 2
cmove ecx, edx
mov edx, ecx
or edx, 0x80000
test byte [ebp + 0x1c], 0x80
cmove edx, ecx
mov ecx, edx
or ecx, 0x1000000
test byte [ebp + 0x1c], 8
cmove ecx, edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0xc], ecx
or dword [esp + 0xc], 0x4000000
test edx, 0x100
mov eax, dword [esp + 0xc]
cmove eax, ecx
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
jne 0x4f6f3c
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x58], 0x44
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
je 0x4f6fb5
test eax, eax
je 0x4f6f54
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
jmp 0x4f6f5c
mov dword [esp + 0x28], 0
lea esp, [esp]
test edi, edi
je 0x4f6f69
mov edi, dword [edi + 4]
jmp 0x4f6f6b
xor edi, edi
test esi, esi
je 0x4f6f74
mov ecx, dword [esi + 4]
jmp 0x4f6f76
xor ecx, ecx
cmp dword [esp + 0x18], 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x5c]
cmovne eax, dword [esp + 0x1c]
and edx, 1
push eax
push dword [esp + 0x30]
push dword [esp + 0x3c]
push dword [esp + 0x1c]
push edx
push 0
push 0
push edi
push ecx
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4f7018
xor edi, edi
jmp 0x4f703f
test eax, eax
je 0x4f6fc2
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jmp 0x4f6fca
mov dword [esp + 0x2c], 0
test edi, edi
je 0x4f6fd3
mov edi, dword [edi + 4]
jmp 0x4f6fd5
xor edi, edi
test esi, esi
je 0x4f6fde
mov ecx, dword [esi + 4]
jmp 0x4f6fe0
xor ecx, ecx
cmp dword [esp + 0x18], 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x5c]
cmovne eax, dword [esp + 0x1c]
and edx, 1
push eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x1c]
push edx
push 0
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4f7018
xor edi, edi
jmp 0x4f703f
cmp dword [0x62dbb0], 0xffffffff
nop
jae 0x4f7031
mov eax, dword fs:[0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [eax + 0x34]
jmp 0x4f7037
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov edi, eax
nop
test esi, esi
je 0x4f7056
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f7056
call fcn.004fbd80
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4f7070
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f7070
call fcn.004fbd80
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f7088
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x4f7088
call fcn.004fbd80
test edi, edi
js 0x4f70cc
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4f70a1
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
test ecx, ecx
je 0x4f70b1
mov dword [ecx], eax
jmp 0x4f70bc
test eax, eax
je 0x4f70bc
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
test ecx, ecx
je 0x4f70df
mov dword [ecx], eax
jmp 0x4f70eb
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4f70db
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x40]
nop
test eax, eax
je 0x4f70eb
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0xcc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0x28