Function at 0x100031e0
Capabilities:
Create process on windows
Enumerate processes
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x10042040]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003241
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003d038
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
jmp 0x100035a3
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10003572
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
nop word [eax + eax]
mov eax, str.explorer.exe
lea ecx, [esp + 0x94]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100032a6
test dx, dx
je 0x100032a2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100032a6
add ecx, 4
add eax, 4
test dx, dx
jne 0x10003280
xor eax, eax
jmp 0x100032ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x100032c0
lea eax, [esp + 0x70]
push eax
push esi
call edi
test eax, eax
jne 0x10003270
jmp 0x1000359c
mov edi, dword [esp + 0x78]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
je 0x100035a3
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10003329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x1003d0d4
mov ecx, 0x10043430
call fcn.100079f0
mov edx, str.explorer.exe
mov ecx, eax
call fcn.100079f0
push ecx
mov edx, 0x1003d0c4
mov ecx, eax
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
jmp 0x100035be
push 0x48
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push 0
push eax
call fcn.10016630
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], 0x48
mov word [esp + 0x48], ax
lea eax, [esp + 0x14]
mov dword [esp + 0x44], 1
push eax
push 0
push 1
push 0
call ebx
push dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x100033d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003d0ec
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push dword [esp + 0x10]
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
push 0
push 1
push eax
call ebx
test eax, eax
jne 0x10003436
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003d110
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push dword [esp + 0x5c]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
push 0
push 0
push 4
lea eax, [esp + 0x1c]
push eax
push 0x20000
push 0
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x100034b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003d130
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push dword [esp + 0x5c]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x80000
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000350c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x1003d150
mov ecx, 0x10043430
call fcn.100079f0
mov edx, ebx
mov ecx, eax
call fcn.100079f0
push ecx
mov edx, 0x1003d0c4
mov ecx, eax
jmp 0x10003468
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push dword [esp + 0x5c]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call esi
push dword [esp + 0x60]
call esi
push dword [esp + 0x64]
call esi
mov edx, 0x1003d168
mov ecx, 0x10043338
call fcn.100079f0
mov edx, str.explorer.exe
mov ecx, eax
call fcn.100079f0
push eax
call fcn.10007c90
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003d07c
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.gb0R6r_vz:
mov ecx, 0x10043430
call fcn.100079f0
mov edx, str.explorer.exe
mov ecx, eax
call fcn.100079f0
push eax
call fcn.10007c90
mov ecx, dword [esp + 0x2a8]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret