Function at 0x1000f080
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov ebx, 0x1004b298
push edi
push str.NtQueryInformationProcess
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1000f2c1
push str.RtlEnterCriticalSection
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f2c1
push str.RtlLeaveCriticalSection
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000f2c1
push str.RtlInitUnicodeString
push ebx
call esi
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x1000f2c1
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
xor edi, edi
push edi
push 0x438
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000f2c1
push edi
push 0x18
lea eax, [ebp - 0x34]
push eax
push edi
push esi
call dword [ebp - 8]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call edi
test eax, eax
je 0x1000f2c1
push 0
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push esi
call edi
test eax, eax
je 0x1000f2c1
push 0x208
lea eax, [ebp - 0x240]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x240]
call fcn.1000e0f6
push str.explorer.exe
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x104
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
lea ecx, [ebp - 0x240]
mov dword [ebp - 8], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1c]
call dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ecx + 0x10]
add eax, 0x38
push eax
call ebx
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [eax + 0x10]
add eax, 0x40
push eax
call ebx
push 0x208
lea eax, [ebp - 0x448]
push 0
push eax
call sub.ntdll.dll_memset
push 0x208
lea eax, [ebp - 0x650]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0x18
lea eax, [ebp - 0x650]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
push 0
push 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call edi
test eax, eax
je 0x1000f2c1
mov ecx, dword [ebp - 0xc]
push 0
movzx eax, word [ecx + 0x26]
push eax
lea eax, [ebp - 0x448]
push eax
push dword [ecx + 0x28]
push esi
call edi
test eax, eax
je 0x1000f2c1
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.ntdll.dll__wcsicmp]
pop ecx
test eax, eax
mov eax, dword [ebp - 0xc]
pop ecx
je 0x1000f27a
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jne 0x1000f21f
jmp 0x1000f28e
mov edi, dword [ebp - 8]
add eax, 0x24
push edi
push eax
call ebx
mov eax, dword [ebp - 0xc]
push edi
add eax, 0x2c
push eax
call ebx
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
call dword [ebp - 0x1c]
test esi, esi
je 0x1000f2a2
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.ntdll.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f2c1
xor eax, eax
inc eax
jmp 0x1000f2c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret