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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov eax, dword [0x43500c]
mov esi, dword [ebp + 0xc]
mov edi, ecx
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 0x4281a2
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
cmp dword [ecx + 0x44], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [edi + 0x1c], 0
je 0x4281e0
lea esi, [ebx + 0x1000000]
call fcn.0040c550
cmp eax, 5
cmovl ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea edi, [esp + 0x54]
mov esi, eax
push dword [ebp + 0x1c]
push eax
push edi
call fcn.004057c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp dword [esp + 0x68], 7
jbe 0x42820b
mov edi, dword [esp + 0x54]
movzx eax, byte [ebp + 0x10]
xorps xmm0, xmm0
lea esi, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
push esi
push dword [ebp + 0x14]
push 0
push edi
push ebx
push eax
push 0
push 0
mov ebx, dword [esp + 0x30]
push ebx
push dword [ebp + 8]
mov edi, dword [esp + 0x40]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x428256
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov edi, 0x12
mov dword [ecx], eax
jmp 0x42830b
lea ecx, [esp + 0x20]
push esi
call fcn.0040ba00
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x428294
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x428294
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 0x428302
mov ecx, dword [edi + 0x14]
mov esi, dword [ebp + 0x20]
lea eax, [ecx + 1]
cmp eax, 2
jae 0x42833c
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0040bb10
test al, al
je 0x4282e9
push dword [esp + 0x20]
call fcn.0042a420
add esp, 4
test eax, eax
mov dword [edi + 0x28], eax
jne 0x4283a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x428302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
lea ecx, [esp + 0x20]
call fcn.0040bab0
lea ecx, [esp + 0x54]
call fcn.00401890
test ebx, ebx
je 0x428322
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.0042da80
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 0
push eax
push 8
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4283c1
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x428515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x1c]
call fcn.004061d0
mov edi, 0x15
jmp 0x428302
lea esi, [esp + 0x6c]
lea ecx, [esp + 0x20]
push esi
call fcn.0040bbd0
mov ecx, edi
push esi
call fcn.0040ba40
xor edi, edi
jmp 0x428302
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
call fcn.00406170
mov esi, dword [esp + 0x48]
push 0x48
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x6c], eax
add eax, 0x48
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x50]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
push eax
push 0x48
push ebx
push 0x1f
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ecx, ecx
test eax, eax
mov eax, 0
je 0x4284b4
mov esi, dword [ebx]
xor ecx, ecx
mov eax, 0
test esi, esi
je 0x4284b4
push 0x44
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, eax
mov ebx, eax
push esi
call fcn.004266e0
mov ecx, ebx
mov al, 1
lea esi, [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ebx, eax
mov ecx, esi
call fcn.004036b0
lea ecx, [esp + 0x48]
call fcn.004061d0
test bl, bl
je 0x42852b
lea eax, [edi + 0x30]
mov ecx, esi
push eax
mov ebx, esi
mov esi, dword [esp + 0x18]
push esi
call fcn.00425420
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ebx
push 0
push dword [esp + 0x20]
call fcn.00422c30
add esp, 0x18
test eax, eax
lea ecx, [esp + 0x6c]
sete bl
call fcn.00425570
mov eax, esi
mov esi, dword [ebp + 0x20]
test eax, eax
jne 0x428538
jmp 0x428541
lea ecx, [edi + 0x14]
call fcn.004061d0
lea ecx, [esp + 0x1c]
call fcn.004061d0
jmp 0x4282a6
mov esi, dword [ebp + 0x20]
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
je 0x428541
push eax
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
je 0x428361
mov ecx, dword [esp + 0x1c]
jmp 0x428361