Function at 0x437050
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 [0x448010]
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 0x437092
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 0x4370d0
lea esi, [ebx + 0x1000000]
call fcn.0041b4b0
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.00414730
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp dword [esp + 0x68], 7
jbe 0x4370fb
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 0x437146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov edi, 0x12
mov dword [ecx], eax
jmp 0x4371fb
lea ecx, [esp + 0x20]
push esi
call fcn.0041a960
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x437184
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x437184
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 0x4371f2
mov ecx, dword [edi + 0x14]
mov esi, dword [ebp + 0x20]
lea eax, [ecx + 1]
cmp eax, 2
jae 0x43722c
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0041aa70
test al, al
je 0x4371d9
push dword [esp + 0x20]
call fcn.00439310
add esp, 4
test eax, eax
mov dword [edi + 0x28], eax
jne 0x437294
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 0x4371f2
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.0041aa10
lea ecx, [esp + 0x54]
call fcn.0040dd20
test ebx, ebx
je 0x437212
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.0043c380
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 0x4372b1
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 0x437405
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.00415140
mov edi, 0x15
jmp 0x4371f2
lea esi, [esp + 0x6c]
lea ecx, [esp + 0x20]
push esi
call fcn.0041ab30
mov ecx, edi
push esi
call fcn.0041a9a0
xor edi, edi
jmp 0x4371f2
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
call fcn.004150e0
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 0x4373a4
mov esi, dword [ebx]
xor ecx, ecx
mov eax, 0
test esi, esi
je 0x4373a4
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.004355d0
mov ecx, ebx
mov al, 1
lea esi, [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ebx, eax
mov ecx, esi
call fcn.00412870
lea ecx, [esp + 0x48]
call fcn.00415140
test bl, bl
je 0x43741b
lea eax, [edi + 0x30]
mov ecx, esi
push eax
mov ebx, esi
mov esi, dword [esp + 0x18]
push esi
call fcn.00434310
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ebx
push 0
push dword [esp + 0x20]
call fcn.00431b20
add esp, 0x18
test eax, eax
lea ecx, [esp + 0x6c]
sete bl
call fcn.00434460
mov eax, esi
mov esi, dword [ebp + 0x20]
test eax, eax
jne 0x437428
jmp 0x437431
lea ecx, [edi + 0x14]
call fcn.00415140
lea ecx, [esp + 0x1c]
call fcn.00415140
jmp 0x437196
mov esi, dword [ebp + 0x20]
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
je 0x437431
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 0x437251
mov ecx, dword [esp + 0x1c]
jmp 0x437251