Function at 0x1801bc3a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0xc], edx
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x88]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1801bc94
call fcn.1801baa5
mov ebx, eax
jmp 0x1801bec9
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1801bcae
mov ebx, 0x80070057
jmp 0x1801bec9
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1800a0ba
add eax, 0x10
mov dword [esp + 0x30], 0x44
push 0x40
mov dword [esp + 0x80], eax
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.18132f50
xor eax, eax
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x2c]
mov esi, ebx
stosd dword es:[edi], eax
add esp, 0xc
mov dword [esp + 0x84], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ebx
xor ebx, ebx
inc ebx
mov dword [esp + 0x80], edi
cmp dword [esp + 0x10], esi
je 0x1801bd96
lea edx, [esp + 0x80]
lea ecx, [esp + 0x84]
call fcn.1801921f
mov ebx, eax
test ebx, ebx
jns 0x1801bd5d
cmp dword [esp + 0x80], esi
je 0x1801bd36
push dword [esp + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x84], esi
je 0x1801bd4c
push dword [esp + 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
jmp 0x1801bec9
push 0xfffffffffffffff6
mov dword [esp + 0x60], 0x100
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [esp + 0x80]
push 0xfffffffffffffff4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [esp + 0x84]
xor ebx, ebx
inc ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0xc], ebx
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push 0
push dword [esp + 0x18]
mov dword [esp + 0x88], 0x20
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1801bdd3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], 0x420
mov dword [esp + 0x84], eax
jmp 0x1801bde0
xor edx, edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x7c]
mov edx, 0x104
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edx
or ebx, ecx
jge 0x1801be06
push edx
lea ecx, [esp + 0x80]
call fcn.1800771c
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
push ecx
xor ecx, ecx
push ecx
push dword [esp + 0x90]
push dword [esp + 0x90]
push dword [esp + 0x20]
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [esp + 0x80]
mov ebx, eax
call fcn.18009eb8
test ebx, ebx
jne 0x1801be6b
call fcn.1801baa5
push 0
mov ebx, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x1801be5d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1801bd4c
push esi
jmp 0x1801bd46
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x1801be89
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801be8f
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1801be9d
mov eax, esi
xor esi, esi
mov dword [ecx], eax
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x1801beb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1801bebb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
xor ebx, ebx
cmp dword [esp + 0x88], 0
je 0x1801bee0
push dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x8c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e2a8
mov esp, ebp
pop ebp
ret