Function at 0x407050
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, 0xd0
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 0x4074c7
push ebx
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov dword [ebp - 0xd8], 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 - 0xcc], edi
je 0x4070cc
call fcn.0040fea0
mov eax, dword [0x4390b4]
lea ecx, [ebx + 0x1000000]
cmp dword [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.00409c80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp dword [edi + 0x14], 8
jb 0x4070fa
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
push dword [ebp - 0xd8]
push dword [ebp + 8]
mov edi, dword [ebp - 0xcc]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4074d6
lea ecx, [ebp - 0xbc]
push esi
call fcn.00407620
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x407162
push dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4074eb
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc8], eax
inc eax
cmp eax, 2
jb 0x40728f
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 0x407571
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 0x40750e
mov edi, dword [esi]
xor ebx, ebx
mov dword [ebp - 0xc4], 0
test edi, edi
jne 0x4075f0
push 0x48
push esi
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov eax, dword [ebp - 0x9c]
inc eax
cmp eax, 2
jae 0x4073c9
cmp byte [ebp - 0xc4], 0
jne 0x40751f
test ebx, ebx
mov edi, dword [ebp - 0xcc]
jne 0x407611
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x7c]
mov dword [ecx], eax
push dword [ebp - 0xc8]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x40757c
lea esi, [edi + 0x14]
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40743e
mov eax, dword [ebp - 0xc0]
inc eax
cmp eax, 2
jae 0x407350
test ebx, ebx
je 0x40759a
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0xbc]
push eax
call fcn.00407660
test al, al
je 0x4075a4
push dword [ebp - 0xbc]
call fcn.00407780
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x4075c7
lea esi, [ebp - 0x7c]
lea ecx, [ebp - 0xbc]
push esi
call fcn.00404bc0
mov ecx, edi
push esi
call fcn.00407720
xor esi, esi
lea ecx, [ebp - 0xbc]
call fcn.00404c90
mov eax, dword [ebp - 0x80]
cmp eax, 8
jb 0x407323
mov ecx, dword [ebp - 0x94]
lea edi, [eax + eax]
add edi, 2
cmp edi, 0x1000
jb 0x407319
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4075ea
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x407337
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417da0
mov eax, esi
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
call fcn.00401780
mov dword [ebp - 0xc4], eax
mov esi, dword [ebp + 4]
lea eax, [ebp - 0xc0]
mov ecx, dword [eax]
mov dword [ebp - 0xd0], ecx
call fcn.00401790
mov edi, eax
mov eax, dword [eax]
mov dword [ebp - 0xc8], ebx
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0xc4]
push esi
lea esi, [ebp - 0xc0]
push esi
push dword [ebp - 0xd0]
call ebx
mov esi, dword [esi]
call fcn.00401790
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
mov edi, dword [ebp - 0xcc]
push esi
call ebx
mov ebx, dword [ebp - 0xc8]
jmp 0x407287
call fcn.00401780
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd0], ebx
mov ebx, dword [ebp + 4]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xd4], eax
call fcn.00401790
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0xdc]
push ebx
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xd4]
call edi
mov ebx, dword [ebp - 0x9c]
call fcn.00401790
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push ebx
mov ebx, dword [ebp - 0xd0]
call edi
jmp 0x40722b
call fcn.00401780
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0xd4], eax
mov eax, dword [esi]
mov dword [ebp - 0xc4], eax
call fcn.00401790
mov edi, eax
mov eax, dword [eax]
mov dword [ebp - 0xc8], ebx
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
push esi
push dword [ebp - 0xc4]
call ebx
mov eax, dword [esi]
mov dword [ebp - 0xc4], eax
call fcn.00401790
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
mov edi, dword [ebp - 0xcc]
push dword [ebp - 0xc4]
call ebx
mov ebx, dword [ebp - 0xc8]
mov dword [esi], 0
jmp 0x407277
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x407088
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov esi, 0x12
jmp 0x4072e3
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 esi, 0x14
jmp 0x4072d8
mov dword [ebp - 0xc4], 0
xor ebx, ebx
jmp 0x407210
mov eax, dword [ebp - 0xcc]
add eax, 0x30
lea edi, [ebp - 0x7c]
mov ecx, edi
push eax
push ebx
call fcn.0042cb30
lea eax, [ebp - 0xc0]
xor ecx, ecx
push eax
push ecx
push ecx
push edi
push ecx
push dword [ebp - 0xc8]
call fcn.0042b0b0
add esp, 0x18
mov esi, eax
mov ecx, edi
call fcn.0042cd20
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
test esi, esi
jne 0x407571
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov edi, dword [ebp - 0xcc]
jmp 0x407246
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]
jmp 0x407277
mov esi, 0x15
jmp 0x4072d8
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 esi, 0x17
jmp 0x4072d8
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 esi, 0x2b
jmp 0x4072d8
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.00416cf0
mov al, 1
mov dword [ebp - 0xc4], eax
jmp 0x407210
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x407246