Function at 0x4286f4
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xc], edi
call esi
pop ecx
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x428720
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp + 0xc]
call esi
pop ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov esi, eax
mov edx, 0x40c
mov eax, 0x8040c
mov dword [ebp - 4], esi
cmp dword [ecx + 0x48], ebx
cmove eax, edx
mov ecx, eax
mov dword [ebp - 8], eax
cmp dword [edi + 0x1c], ebx
je 0x428766
mov dword [ebp + 0xc], eax
call fcn.0042e6c0
cmp eax, 5
jge 0x428763
mov eax, dword [ebp - 8]
or eax, 0x1000000
mov ecx, eax
jmp 0x428766
mov ecx, dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
add eax, 4
push eax
movzx eax, byte [ebp + 0x10]
push ebx
push ebx
push ecx
push eax
push ebx
push ebx
push esi
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4287ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push 0x12
pop ebx
mov dword [ecx], eax
jmp 0x428923
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042d800
cmp dword [edi + 0x1c], ebx
je 0x4287e8
push dword [ebp - 0x1c]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4287e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x14
jmp 0x428904
mov ecx, dword [edi + 0x14]
mov dword [ebp + 0x14], ecx
test ecx, ecx
je 0x4288b4
cmp ecx, 0xffffffff
je 0x4288b4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
lea eax, [edi + 0x30]
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.00428938
mov ecx, dword [ebp + 0x14]
add esp, 0x10
test al, al
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
cmovne ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x42887e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0x10], ebx
je 0x428877
cmp dword [ebp + 0x10], 0xffffffff
je 0x428877
call fcn.0042c440
push eax
push dword [ebp + 4]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
call fcn.0042c490
push dword [ebp + 0x10]
call fcn.0042c450
mov esi, dword [ebp - 4]
add esp, 0x14
push 0x15
jmp 0x428904
lea ecx, [edi + 0x14]
call fcn.00411123
cmp dword [ebp + 0x10], ebx
je 0x4288b4
cmp dword [ebp + 0x10], 0xffffffff
je 0x4288b4
call fcn.0042c440
push eax
push dword [ebp + 4]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
call fcn.0042c490
push dword [ebp + 0x10]
call fcn.0042c450
mov esi, dword [ebp - 4]
add esp, 0x14
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042daf0
test al, al
jne 0x4288dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x17
jmp 0x428904
push dword [ebp - 0x1c]
call fcn.00429e04
mov dword [edi + 0x28], eax
pop ecx
test eax, eax
jne 0x428907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x2b
pop ebx
jmp 0x42891b
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042dc70
push eax
mov ecx, edi
call fcn.0042db60
lea ecx, [ebp - 0x1c]
call fcn.0042d940
test esi, esi
je 0x42892f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18