Function at 0x416cc0
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
sub esp, 0xc4
mov edi, ecx
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], 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
jne 0x416fa1
push ebx
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov dword [ebp - 0xc8], eax
xor ebx, ebx
cmp dword [esi + 0x48], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [edi + 0x1c], 0
mov dword [ebp - 0xc4], edi
je 0x416d37
call fcn.004043d0
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
lea edi, [ebp - 0x94]
push dword [ebp + 0x1c]
push eax
push edi
call fcn.00409b40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp dword [edi + 0x14], 8
jb 0x416d65
mov edi, dword [ebp - 0x94]
xorps xmm0, xmm0
lea esi, [ebp - 0xac]
movups xmmword [esi], xmm0
mov edx, dword [ebp + 0x14]
add edx, 4
movzx eax, byte [ebp + 0x10]
xor ecx, ecx
push esi
push edx
push ecx
push edi
push ebx
push eax
push ecx
push ecx
mov ebx, dword [ebp - 0xc8]
push ebx
push dword [ebp + 8]
mov edi, dword [ebp - 0xc4]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x416fb0
lea ecx, [ebp - 0xbc]
push esi
call fcn.00417110
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x416dce
push dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x416fc5
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xd0], eax
inc eax
cmp eax, 2
jb 0x416ee6
mov dword [ebp - 0xc0], 0
lea eax, [ebp - 0x98]
push eax
push 8
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x417049
mov eax, dword [ebp - 0x98]
xor ebx, ebx
lea esi, [ebp - 0x9c]
mov dword [esi], ebx
mov ecx, esi
push eax
call fcn.004016a0
mov edi, dword [esi]
mov eax, 0x48
push eax
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
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 + 0x44], ebx
mov dword [eax + 0x40], ebx
lea eax, [ebp - 0x7c]
push eax
mov eax, 0x48
push eax
push esi
push 0x1f
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x416fe8
mov edi, dword [esi]
xor ebx, ebx
mov dword [ebp - 0xcc], 0
test edi, edi
jne 0x4170d4
push 0x48
push esi
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
lea ecx, [ebp - 0x9c]
call fcn.00404350
cmp byte [ebp - 0xcc], 0
jne 0x416ff7
test ebx, ebx
mov edi, dword [ebp - 0xc4]
jne 0x4170f5
mov ebx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x7c]
mov dword [ecx], eax
push dword [ebp - 0xd0]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x41705a
lea ecx, [edi + 0x14]
call fcn.00404350
lea ecx, [ebp - 0xc0]
call fcn.00404350
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0xbc]
push eax
call fcn.00417130
test al, al
je 0x417088
push dword [ebp - 0xbc]
call fcn.00417170
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x4170ab
lea esi, [ebp - 0x7c]
lea ecx, [ebp - 0xbc]
push esi
call fcn.004045f0
mov ecx, edi
push esi
call fcn.00407370
xor edi, edi
lea ecx, [ebp - 0xbc]
call fcn.00404c40
mov eax, dword [ebp - 0x80]
cmp eax, 8
jb 0x416f7a
mov ecx, dword [ebp - 0x94]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x416f70
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4170ce
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
test ebx, ebx
je 0x416f88
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, edi
add esp, 0xc4
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x416cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x416f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x416f2f
mov dword [ebp - 0xcc], 0
jmp 0x416e7c
mov eax, dword [ebp - 0xc4]
add eax, 0x30
lea edi, [ebp - 0x7c]
mov ecx, edi
push eax
push ebx
call fcn.0042c2a0
lea eax, [ebp - 0xc0]
xor ecx, ecx
push eax
push ecx
push ecx
push edi
push ecx
push dword [ebp - 0xd0]
call fcn.0042a700
add esp, 0x18
mov esi, eax
mov ecx, edi
call fcn.0042c490
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
test esi, esi
jne 0x417049
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd0], eax
mov ebx, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xc4]
jmp 0x416eb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0xc0]
call fcn.00404350
mov edi, 0x15
jmp 0x416f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x416f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x416f2f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x44
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
call fcn.00413b60
mov al, 1
mov dword [ebp - 0xcc], eax
jmp 0x416e7c
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x416ead