Function at 0x416060
Capabilities:
Create process on windows
Create process suspended
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0xd8], eax
push dword [ebp + 8]
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x4160a2
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x48], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [edi + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
je 0x4160e0
call fcn.00413870
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov edi, eax
lea esi, [esp + 0x50]
push dword [ebp + 0x1c]
push eax
push esi
call fcn.00410140
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
cmp dword [esi + 0x14], 7
jbe 0x41610a
mov esi, dword [esp + 0x50]
xorps xmm0, xmm0
lea edi, [esp + 0x30]
movaps xmmword [edi], xmm0
mov edx, dword [ebp + 0x14]
add edx, 4
movzx eax, byte [ebp + 0x10]
xor ecx, ecx
push edi
push edx
push ecx
push esi
push ebx
push eax
push ecx
push ecx
mov esi, dword [esp + 0x34]
push esi
push dword [ebp + 8]
mov ebx, dword [esp + 0x40]
push dword [ebx + 0x10]
call dword [sym.imp.advapi32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4161c5
lea ecx, [esp + 0x20]
push edi
call fcn.004131a0
mov eax, dword [ebx + 0x1c]
test eax, eax
mov edi, ebx
je 0x41616b
push dword [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_AssignProcessToJobObject]
test eax, eax
je 0x416289
mov ebx, dword [edi + 0x14]
lea eax, [ebx + 1]
cmp eax, 2
jae 0x41622d
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.00413250
test al, al
je 0x4161d7
push dword [esp + 0x20]
call fcn.0042d4e0
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
mov ebx, dword [ebp + 0x20]
je 0x4162aa
mov ebx, edi
mov edi, esi
lea esi, [esp + 0x68]
lea ecx, [esp + 0x20]
push esi
call fcn.00413310
mov ecx, ebx
push esi
mov esi, edi
call fcn.004131c0
xor edi, edi
jmp 0x4161f3
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x4161fc
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, 0x17
lea ecx, [esp + 0x20]
call fcn.00413220
lea ecx, [esp + 0x50]
call fcn.004027f0
test esi, esi
je 0x416213
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x48]
push eax
push 8
push dword [esp + 0x28]
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
jne 0x4162e1
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x68]
mov dword [ecx], eax
push ebx
push ecx
call dword [sym.imp.advapi32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x4162c8
lea ecx, [edi + 0x14]
call fcn.004065e0
lea ecx, [esp + 0x1c]
call fcn.004065e0
test ebx, ebx
jne 0x41617a
mov edi, 0x15
jmp 0x4161f3
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x4161f3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x4161f3
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
jmp 0x41626e
mov eax, dword [esp + 0x48]
xor esi, esi
lea ecx, [esp + 0x44]
mov dword [ecx], esi
push eax
call fcn.00403330
lea eax, [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov edi, 0x48
push edi
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x68], eax
lea ecx, [eax + edi]
mov dword [esp + 0x70], ecx
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm0
mov dword [eax + 0x40], esi
mov dword [esp + 0xc], 0
mov dword [eax + 0x44], esi
mov esi, eax
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x4c]
push eax
push edi
mov edi, dword [esp + 0x20]
push esi
push 0x1f
push dword [esp + 0x20]
call dword [sym.imp.advapi32.dll_GetTokenInformation]
mov edx, 0
test eax, eax
je 0x416391
mov esi, dword [esi]
mov dword [esp + 0xc], 0
test esi, esi
je 0x41638c
push 0x44
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
push esi
call fcn.00413a90
test esi, esi
setne dl
lea ecx, [esp + 0x68]
mov esi, edx
call fcn.0040e270
lea ecx, [esp + 0x44]
call fcn.004065e0
mov eax, esi
test al, al
je 0x416403
lea eax, [edi + 0x30]
lea ecx, [esp + 0x68]
push eax
mov esi, dword [esp + 0x10]
push esi
call fcn.00413fa0
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
push ecx
push ecx
lea eax, [esp + 0x74]
push eax
push ecx
push ebx
call fcn.00414060
add esp, 0x18
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x68]
call fcn.00414280
push esi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x14]
jne 0x41624e
mov ebx, dword [esp + 0x1c]
jmp 0x41624e
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x41624e
push eax
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x41624e