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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov ebx, ecx
lea edi, [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.0053e5b8
add esp, 4
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x70], ebx
mov dword [ebx + 0x28], eax
test ecx, ecx
je 0x4e7a17
push 0
push ecx
push 0x587578
call fcn.00497f20
add esp, 0xc
mov ebx, dword [edi]
push esi
call fcn.0053e5b8
add esp, 4
mov esi, eax
xor eax, eax
cmp dword [ebx + 0x60], eax
setne cl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
cmp byte [ebx + 0x11], 0
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x55], cl
je 0x4e7b7f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4e7c9b
mov dword [ebp - 0x54], esi
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x6c], ecx
movzx eax, word [ecx]
test ax, ax
je 0x4e7b4a
lea edi, [ebp - 0x3c]
mov esi, dword [ebp - 0x6c]
mov edx, esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
test ax, ax
je 0x4e7a9d
movzx eax, ax
cmp eax, 0x3d
je 0x4e7a9d
movzx eax, word [edx + ebx*2 + 2]
inc ebx
add esi, 2
jmp 0x4e7a85
mov ecx, edi
push ebx
mov dword [ebp - 0x78], edx
push edx
call fcn.00430c7c
inc ebx
cmp word [esi], 0
lea esi, [esi + 2]
jne 0x4e7aa9
movzx edx, byte [ebp - 0x31]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x7c], edx
test dl, dl
jns 0x4e7ad0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x74], eax
mov ecx, 0x58ba00
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], ecx
cmp dword [ecx + 4], eax
jne 0x4e7b05
cmp dword [ebp - 0x60], 0
je 0x4e7b15
mov eax, dword [ebp - 0x68]
mov edi, dword [eax]
xor edx, edx
movzx eax, word [edi + edx*2]
mov ecx, dword [ebp - 0x64]
cmp ax, word [ecx + edx*2]
jne 0x4e7b05
inc edx
cmp dword [ebp - 0x60], edx
jne 0x4e7af0
jmp 0x4e7b15
mov ecx, dword [ebp - 0x68]
add ecx, 8
cmp ecx, str.Path
jne 0x4e7ad8
jmp 0x4e7b2a
cmp dword [ebp - 0x68], str.Path
je 0x4e7b2a
lea ecx, [ebp - 0x4c]
push ebx
push dword [ebp - 0x78]
call fcn.0044e692
cmp byte [ebp - 0x7c], 0
jns 0x4e7b3b
push dword [ebp - 0x74]
call fcn.00528424
add esp, 4
movzx eax, word [esi]
test ax, ax
lea edi, [ebp - 0x3c]
jne 0x4e7a78
lea edi, [ebp - 0x4c]
mov ecx, edi
push 0
call fcn.0044e8a6
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], eax
movsd xmm0, qword [edi]
movsd qword [ebp - 0x2c], xmm0
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov dl, byte [ebp - 0x21]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x5c]
jmp 0x4e7b8f
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x64], 0
xor ecx, ecx
xor edx, edx
mov esi, ebx
xor ebx, ebx
mov al, byte [ebp - 0x55]
mov bl, al
shl ebx, 0x13
or ebx, 0x40c
movzx eax, byte [esi + 0x10]
mov dword [ebp - 0x60], eax
xorps xmm0, xmm0
test dl, dl
movzx edx, dl
cmovs edx, ecx
lea ecx, [ebp - 0x2c]
cmovs ecx, dword [ebp - 0x64]
lea edi, [ebp - 0x3c]
movups xmmword [edi], xmm0
test edx, edx
cmove ecx, edx
lea eax, [esi + 0x1c]
push edi
push eax
xor eax, eax
push eax
push ecx
push ebx
push dword [ebp - 0x60]
push eax
push eax
push dword [ebp - 0x54]
push dword [ebp + 8]
mov edi, dword [ebp - 0x70]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4e7c83
lea esi, [ebp - 0x4c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.004e7550
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x50]
mov dword [ecx], eax
push dword [edi + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x4e7ca2
mov eax, dword [ebp - 0x48]
xor ecx, ecx
dec ecx
lea esi, [ebp - 0x20]
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov dword [esi], ecx
push 0
push 1
push eax
push esi
call fcn.0048c170
add esp, 0x10
cmp byte [esi], 0
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp + 0x18]
je 0x4e7c68
lea ebx, [ebp - 0x1c]
mov ecx, ebx
call fcn.0048cd20
mov ecx, ebx
mov ebx, eax
cmp byte [ecx - 4], 0
je 0x4e7c5d
call fcn.0042e300
test bl, bl
mov ebx, dword [ebp - 0x5c]
je 0x4e7d1a
mov dword [edi], 0x542
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x15
mov esi, dword [ebp - 0x54]
jmp 0x4e7cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edi, 0x12
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x5c]
jmp 0x4e7ccb
mov edi, 0x46
jmp 0x4e7cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x15
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x4c]
call fcn.004e7680
cmp byte [ebp - 0x21], 0
jns 0x4e7cdc
push dword [ebp - 0x2c]
call fcn.00528424
add esp, 4
test esi, esi
je 0x4e7cf0
push 0
push esi
push 0x587578
call fcn.00497f20
add esp, 0xc
test ebx, ebx
je 0x4e7d04
mov ecx, ebx
call fcn.004e6fd4
push ebx
call fcn.00528424
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, edi
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.004e7720
test al, al
je 0x4e7d5b
push dword [ebp - 0x4c]
call fcn.00501315
add esp, 4
mov edi, dword [ebp - 0x70]
mov dword [edi + 0x24], eax
test eax, eax
je 0x4e7d78
cmp eax, 0x400000
je 0x4e7d98
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x4e7c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x4e7c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x4e7c7e
lea ecx, [ebp - 0x4c]
push esi
call fcn.004e7820
mov ecx, edi
push esi
call fcn.004e7550
xor edi, edi
jmp 0x4e7c7e