Function at 0x10007ede
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1780]
mov eax, 0x1800
call fcn.1000ad30
mov eax, dword [0x1001a144]
xor eax, ebp
mov dword [ebp + 0x177c], eax
push ebx
push esi
mov esi, dword [ebp + 0x1788]
push edi
call fcn.1000733a
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.10006eed
pop ecx
pop ecx
test al, al
je 0x100080f9
cmp dword [ebp - 0x14], ebx
je 0x100080f9
lea eax, [ebp - 0x18]
push eax
push 1
push 2
push ebx
push 0x2000000
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x100080e8
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100080c9
mov edi, 0x1001c598
push edi
call fcn.10009fc0
pop ecx
test eax, eax
jbe 0x10008000
push 0xbb7
lea eax, [ebp + 0xd]
push ebx
push eax
mov byte [ebp + 0xc], bl
call fcn.1000aae0
push esi
push str._noframemerging___s_
mov esi, 0xbb8
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.1000ad5b
lea eax, [ebp + 0xc]
push eax
push edi
push str.__s___s
lea eax, [ebp + 0xbc4]
push esi
push eax
call fcn.1000ad5b
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.1000aae0
xor eax, eax
inc eax
mov word [ebp - 0x50], ax
lea eax, [ebp + 0xbc4]
push eax
mov dword [ebp - 0x54], 0x20
call fcn.10009fc0
add esp, 0x40
lea eax, [ebp + eax + 0xbc4]
jmp 0x1000804e
push esi
push 0x10015588
lea eax, [ebp + 0xbc4]
push 0xbb8
push eax
call fcn.1000ad5b
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.1000aae0
xor eax, eax
inc eax
mov word [ebp - 0x50], ax
lea eax, [ebp + 0xbc4]
push eax
mov dword [ebp - 0x54], 0x20
call fcn.10009fc0
add esp, 0x20
lea eax, [ebp + eax + 0xbc4]
push eax
lea eax, [ebp + 0xbc4]
push eax
lea ecx, [ebp - 0x10]
call fcn.10007eb3
cmp dword [ebp + 8], 8
mov eax, dword [ebp - 0xc]
jae 0x1000806a
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push ebx
push eax
push ebx
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x10008096
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push ebx
push 1
lea ecx, [ebp - 0x10]
call fcn.10007b04
cmp dword [ebp - 0x2c], ebx
je 0x100080b5
cmp dword [ebp - 0x2c], 0xffffffff
je 0x100080b5
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x100080c9
cmp dword [ebp - 0x28], 0xffffffff
je 0x100080c9
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x100080d7
push dword [ebp - 0x1c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x18], ebx
je 0x100080e8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
je 0x100080f9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100073b2
mov ecx, dword [ebp + 0x177c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a7f9
add ebp, 0x1780
leave
ret