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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ebx, ecx
lea edi, [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.00548928
add esp, 4
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x5c], ebx
mov dword [ebx + 0x28], eax
test ecx, ecx
je 0x4d8c76
push ecx
call fcn.0043d890
add esp, 4
mov edi, dword [edi]
push esi
call fcn.00548928
add esp, 4
mov dword [ebp - 0x54], eax
xor eax, eax
xor ebx, ebx
cmp dword [edi + 0x5c], eax
setne byte [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov ecx, edi
call fcn.004d870c
test al, al
je 0x4d8cee
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4d8e0a
mov esi, eax
lea eax, [ebp - 0x3c]
push 0x575aa0
push 7
push esi
push eax
call fcn.004d8f1e
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
movq xmm0, qword [ecx]
movq qword [ebp - 0x2c], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov dl, byte [ebp - 0x21]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x28]
jmp 0x4d8cf9
mov dword [ebp - 0x60], 0
xor ecx, ecx
xor edx, edx
mov al, byte [ebp - 0x58]
mov bl, al
shl ebx, 0x13
or ebx, 0x40c
movzx eax, byte [edi + 0x10]
mov dword [ebp - 0x58], eax
add edi, 0x18
pxor xmm0, xmm0
test dl, dl
movzx edx, dl
cmovs edx, ecx
lea esi, [ebp - 0x2c]
cmovs esi, dword [ebp - 0x60]
lea eax, [ebp - 0x3c]
movdqu xmmword [eax], xmm0
test edx, edx
cmove esi, edx
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0x10]
call fcn.0043a430
lea ecx, [ebp - 0x3c]
push ecx
push edi
xor ecx, ecx
push ecx
push esi
push ebx
push dword [ebp - 0x58]
push ecx
push ecx
mov ebx, dword [ebp - 0x54]
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4d8dd5
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x4c]
movdqu xmmword [esi], xmm0
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.004d8750
mov eax, dword [esi + 4]
lea edi, [ebp - 0x50]
mov dword [edi], eax
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0x14]
call fcn.0043a430
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x4d8dea
mov eax, dword [ebp - 0x48]
xor ecx, ecx
dec ecx
lea ebx, [ebp - 0x20]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
push 0
push 1
push eax
push ebx
call fcn.004c44b0
add esp, 0x10
cmp byte [ebx], 0
je 0x4d8e17
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.004c4e30
cmp byte [edi - 4], 0
je 0x4d8e1c
mov ecx, edi
mov byte [ebp - 0x58], al
call fcn.00402e10
cmp byte [ebp - 0x58], 0
jmp 0x4d8e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov esi, 0x12
lea edi, [ebp + 0x10]
jmp 0x4d8e47
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 esi, 0x15
lea edi, [ebp + 0x10]
jmp 0x4d8e3f
mov esi, 0x46
lea edi, [ebp + 0x10]
mov ebx, dword [ebp - 0x54]
jmp 0x4d8e58
lea edi, [ebp + 0x10]
jmp 0x4d8e23
test al, al
lea edi, [ebp + 0x10]
je 0x4d8e84
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x542
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x15
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
call fcn.004d88a0
cmp byte [ebp - 0x21], 0
jns 0x4d8e58
push dword [ebp - 0x2c]
call fcn.005327b0
add esp, 4
test ebx, ebx
je 0x4d8e65
push ebx
call fcn.0043d890
add esp, 4
mov ecx, edi
push 0
call fcn.004d95f8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
push esi
call fcn.004d8970
test al, al
je 0x4d8ec6
push dword [ebp - 0x4c]
call fcn.004f8232
add esp, 4
mov esi, dword [ebp - 0x5c]
mov dword [esi + 0x24], eax
test eax, eax
je 0x4d8ee6
lea eax, [esi + 0x24]
cmp dword [eax], 0x400000
je 0x4d8f06
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x41
jmp 0x4d8e3c
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 esi, 0x17
jmp 0x4d8e3c
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 esi, 0x2b
jmp 0x4d8e3c
lea ecx, [ebp - 0x4c]
push ebx
call fcn.004d8a70
mov ecx, esi
push ebx
call fcn.004d8770
xor esi, esi
jmp 0x4d8e3c