Function at 0x1801bb1e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x181c600c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
xor ebx, ebx
lea ecx, [esp + 0xb]
push edi
mov byte [esp + 0xf], bl
call fcn.1800d6f5
test eax, eax
jns 0x1801bb5c
lfence
jmp 0x1801be2d
cmp byte [esp + 0xf], bl
jne 0x1801bb6c
mov eax, 0x80004005
jmp 0x1801be2d
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], ebx
call fcn.1801c071
mov ebx, eax
test ebx, ebx
js 0x1801be14
mov ecx, dword [esp + 0x88]
call fcn.1801b77e
mov ebx, eax
test ebx, ebx
js 0x1801be14
cmp byte [esp + 0xf], 0
mov eax, dword [esp + 0x88]
sete byte [esp + 0xf]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1801bbc3
mov ebx, 0x80070057
jmp 0x1801be14
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.1800a175
add eax, 0x10
mov dword [esp + 0x30], 0x44
push 0x40
mov dword [esp + 0x80], eax
lea eax, [esp + 0x38]
push 0
push eax
call fcn.1812c700
and dword [esp + 0x1c], 0
lea edi, [esp + 0x2c]
xor eax, eax
xor ebx, ebx
stosd dword es:[edi], eax
xor esi, esi
add esp, 0xc
mov dword [esp + 0x84], esi
inc ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x80], edi
cmp dword [esp + 0x18], esi
je 0x1801bcad
lea edx, [esp + 0x80]
lea ecx, [esp + 0x84]
call fcn.18018eb4
mov ebx, eax
test ebx, ebx
jns 0x1801bc74
cmp dword [esp + 0x80], esi
je 0x1801bc4d
push dword [esp + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x84], esi
je 0x1801bc63
push dword [esp + 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
lea ecx, [ecx - 0x10]
call fcn.18007012
jmp 0x1801be14
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 + 0x10], 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 0x1801bce3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], 0x420
jmp 0x1801bce9
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x84], eax
mov edx, 0x104
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edx
cmp byte [esp + 0xf], 0
je 0x1801bd48
or ebx, ecx
jge 0x1801bd1d
push edx
lea ecx, [esp + 0x80]
call fcn.180077dc
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 + 0x24]
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x1801bd8a
or ebx, ecx
jge 0x1801bd5d
push edx
lea ecx, [esp + 0x80]
call fcn.180077dc
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 + 0x24]
push ecx
push ecx
push eax
push ecx
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [esp + 0x80]
mov ebx, eax
call fcn.18009f73
test ebx, ebx
jne 0x1801bdc6
call fcn.1801b6cc
push 0
mov ebx, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x1801bdb8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1801bc63
push esi
jmp 0x1801bc5d
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1801bde8
mov eax, esi
xor esi, esi
mov dword [ecx], eax
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x1801bdfb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1801be06
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
lea ecx, [ecx - 0x10]
call fcn.18007012
xor ebx, ebx
cmp dword [esp + 0x88], 0
je 0x1801be2b
push dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18117a58
mov esp, ebp
pop ebp
ret