Function at 0x4c7e15
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x725de0
call fcn.006db31c
sub esp, 0x160
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x34], ebx
mov esi, dword [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov dword [ebp - 4], ebx
mov byte [ebp + 0x3f], bl
mov dword [esi], ebx
test edi, edi
jne 0x4c8045
cmp byte [0x7ed364], bl
je 0x4c7e6a
lea ecx, [ebp + 0x3e]
call fcn.004c542a
mov esi, eax
mov ecx, esi
call fcn.004ba6bd
push esi
call fcn.004cbae5
mov esi, dword [ebp + 0x54]
pop ecx
mov eax, dword [0x7ed38c]
test eax, eax
je 0x4c7e7f
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x58]
push edi
push esi
push dword [ebp + 0x4c]
call fcn.004c7bdb
add esp, 0xc
test al, al
je 0x4c7ec9
cmp byte [0x7ed364], 0
je 0x4c7ebb
lea ecx, [ebp + 0x57]
call fcn.004bfef7
mov esi, eax
mov ecx, esi
call fcn.004cc4be
push dword [ebp + 0x4c]
push dword [edi]
push esi
call fcn.004cbae5
add esp, 0xc
push dword [ebp + 0x4c]
call fcn.004b985f
pop ecx
jmp 0x4c853b
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x4c]
call sub.WTSAPI32.dll_WTSQueryUserToken
mov edi, eax
test edi, edi
jne 0x4c7fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4c7f9c
mov dword [ebp + 0x30], ebx
cmp byte [0x7ed364], 0
je 0x4c7f18
lea ecx, [ebp + 0x3e]
call fcn.004c5acf
mov esi, eax
mov ecx, esi
call fcn.004cc57a
push dword [ebp + 0x4c]
push esi
call fcn.004cbae5
pop ecx
pop ecx
call fcn.004c6a48
push 0x2710
push dword [0x7ed36c]
call fcn.004caca5
pop ecx
pop ecx
test al, al
jne 0x4c7f98
call fcn.00453ea6
cmp byte [0x7ed364], 0
mov dword [ebp + 0x2c], eax
je 0x4c7f63
lea ecx, [ebp + 0x3e]
call fcn.004c54f6
mov esi, eax
mov ecx, esi
call fcn.004ba51b
push dword [ebp + 0x2c]
push esi
call fcn.004cbae5
mov eax, dword [ebp + 0x2c]
pop ecx
pop ecx
cmp eax, dword [ebp + 0x4c]
jne 0x4c7f98
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x4c]
call sub.WTSAPI32.dll_WTSQueryUserToken
mov edi, eax
cmp edi, 1
je 0x4c7f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4c7f98
mov eax, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x30], eax
cmp eax, 0xa
jl 0x4c7ef3
test edi, edi
jne 0x4c7fd3
cmp byte [0x7ed364], 0
je 0x4c7fc9
lea ecx, [ebp + 0x57]
call fcn.004c3f1d
mov esi, eax
mov ecx, esi
call fcn.004cc48f
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004cbae5
add esp, 0xc
call fcn.004c6a48
jmp 0x4c853e
call fcn.00453ea6
mov edi, eax
cmp edi, dword [ebp + 0x4c]
je 0x4c800f
cmp byte [0x7ed364], 0
je 0x4c853e
lea ecx, [ebp + 0x57]
call fcn.004bfab6
mov esi, eax
mov ecx, esi
call fcn.004ba671
push edi
push dword [ebp + 0x4c]
push esi
call fcn.004cbae5
add esp, 0xc
jmp 0x4c853e
lea ecx, [ebp + 0x30]
call fcn.004be431
push dword [ebp + 0x4c]
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 1
push str.LaunchProxy:_WTSQueryUserToken_succeeded._dwSessionId___d
push eax
call fcn.004c6c83
mov ecx, dword [ebp + 0x30]
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00452d37
mov edi, dword [ebp + 0x50]
jmp 0x4c8106
cmp edi, 1
jne 0x4c853e
lea eax, [ebp + 0x38]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4c8091
cmp byte [0x7ed364], al
je 0x4c853e
lea ecx, [ebp + 0x57]
call fcn.004bef20
mov esi, eax
mov ecx, esi
call fcn.004ba567
push esi
call fcn.004cbae5
pop ecx
jmp 0x4c853e
lea eax, [ebp + 0x34]
push eax
call fcn.004cd747
pop ecx
test eax, eax
jns 0x4c80ce
cmp byte [0x7ed364], 0
je 0x4c80c0
lea ecx, [ebp + 0x57]
call fcn.004c0cf6
mov esi, eax
mov ecx, esi
call fcn.004ba58d
push esi
call fcn.004cbae5
pop ecx
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c853e
push str.highint
push dword [ebp + 0x34]
call fcn.006deaab
pop ecx
pop ecx
test eax, eax
je 0x4c8106
cmp byte [0x7ed364], 0
mov byte [ebp + 0x3f], 1
je 0x4c8106
lea ecx, [ebp + 0x53]
call fcn.004c14c9
mov esi, eax
mov ecx, esi
call fcn.004cc180
push esi
call fcn.004cbae5
pop ecx
lea eax, [ebp + 0x40]
push eax
push 1
push ebx
push ebx
push 0x2000000
push dword [ebp + 0x38]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4c80c0
cmp byte [ebp + 0x3f], 0
jne 0x4c818d
push 0x2000
push dword [ebp + 0x40]
call fcn.004d7f68
pop ecx
pop ecx
test eax, eax
jne 0x4c816c
push dword [ebp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x38]
call esi
cmp byte [0x7ed364], 0
je 0x4c853e
lea ecx, [ebp + 0x57]
call fcn.004c4cbc
mov esi, eax
mov ecx, esi
call fcn.004ba6bd
jmp 0x4c8085
cmp byte [0x7ed364], 0
je 0x4c818d
lea ecx, [ebp + 0x53]
call fcn.004bf221
mov esi, eax
mov ecx, esi
call fcn.004cc180
push esi
call fcn.004cbae5
pop ecx
cmp edi, 1
jne 0x4c8209
push dword [ebp + 0x40]
call fcn.004d6b43
pop ecx
test eax, eax
jns 0x4c81d5
cmp byte [0x7ed364], 0
je 0x4c81c0
lea ecx, [ebp + 0x57]
call fcn.004c22d9
mov esi, eax
mov ecx, esi
call fcn.004ba567
push esi
call fcn.004cbae5
pop ecx
push dword [ebp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x38]
call esi
jmp 0x4c853e
push 4
lea eax, [ebp + 0x4c]
push eax
push 0xc
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4c82b4
cmp byte [0x7ed364], al
je 0x4c81c0
lea ecx, [ebp + 0x57]
call fcn.004c102b
mov esi, eax
mov ecx, esi
call fcn.004ba5d9
jmp 0x4c81b9
test edi, edi
jne 0x4c853e
call fcn.004c6015
push dword [ebp + 0x40]
lea eax, [ebp + 0x10]
push eax
call fcn.00453d56
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x4c8230
mov eax, dword [eax]
lea ecx, [ebp - 0x10c]
push 3
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x110]
push eax
call fcn.004b991c
push dword [ebp - 0x110]
mov ecx, 0x7e1014
mov byte [ebp - 4], 3
call fcn.004b6b96
lea eax, [ebp - 0x10c]
cmp dword [ebp - 0x110], eax
je 0x4c8278
push dword [ebp - 0x110]
call fcn.006e60fe
pop ecx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.00451984
lea eax, [ebp + 0x34]
push eax
call fcn.004cd56f
pop ecx
test eax, eax
jns 0x4c82b4
cmp byte [0x7ed364], 0
je 0x4c81c0
lea ecx, [ebp + 0x57]
call fcn.004c1654
mov esi, eax
mov ecx, esi
call fcn.004ba51b
jmp 0x4c81b9
push 0x44
pop esi
push esi
lea eax, [ebp - 0x16c]
push ebx
push eax
call fcn.006dca70
add esp, 0xc
mov dword [ebp - 0x16c], esi
lea eax, [ebp + 0x28]
mov dword [ebp - 0x164], str.winsta0default
push ebx
push dword [ebp + 0x40]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
mov eax, dword [ebp + 0x34]
lea ecx, [ebp - 0x10c]
mov dword [ebp + 0x50], eax
mov dword [ebp - 0x110], ecx
test eax, eax
jne 0x4c8305
mov eax, ebx
mov dword [ebp - 0x110], eax
jmp 0x4c834f
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4c830a
sub esi, ecx
lea eax, [ebp - 0x10c]
push 0x80
push eax
sar esi, 1
lea eax, [ebp - 0x110]
inc esi
push esi
push eax
call fcn.004b6dba
lea eax, [esi + esi]
push eax
push dword [ebp + 0x50]
push eax
push dword [ebp - 0x110]
call fcn.00452c6a
mov eax, dword [ebp - 0x110]
add esp, 0x20
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x16c]
push ecx
push ebx
push dword [ebp + 0x28]
push 0x420
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
lea eax, [ebp - 0x10c]
cmp dword [ebp - 0x110], eax
je 0x4c838d
push dword [ebp - 0x110]
call fcn.006e60fe
pop ecx
push dword [ebp + 0x28]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
jne 0x4c843c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [0x7ed364], 0
mov edi, vtable._com_error.0
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
je 0x4c8404
lea ecx, [ebp + 0x57]
call fcn.004c1c65
mov esi, eax
mov ecx, esi
call fcn.004ba5d9
push esi
call fcn.004cbae5
cmp byte [0x7ed364], 0
pop ecx
je 0x4c8404
lea ecx, [ebp + 0x57]
call fcn.004c0b82
mov esi, eax
mov ecx, esi
call fcn.004cbfde
lea ecx, [ebp + 0x18]
call fcn.004c6b3b
push eax
push dword [ebp + 0x1c]
push esi
call fcn.004cbae5
add esp, 0xc
push dword [ebp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x38]
call esi
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0x18], edi
test ecx, ecx
je 0x4c8424
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [ebp + 0x24], 0
je 0x4c853e
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4c853e
cmp byte [0x7ed364], 0
je 0x4c8461
lea ecx, [ebp + 0x53]
call fcn.004c1585
mov esi, eax
mov ecx, esi
call fcn.004cc23e
push dword [ebp + 8]
push esi
call fcn.004cbae5
pop ecx
pop ecx
test edi, edi
jne 0x4c8517
call fcn.004cc694
cmp dword [0x7e1040], 8
lea ecx, [ebp - 0x8c]
mov eax, 0x7e102c
mov dword [ebp - 0x90], ecx
cmovae eax, dword [0x7e102c]
lea ecx, [ebp - 0x90]
push 3
push eax
call fcn.004c7a39
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 4
push 0x7e0ffc
push eax
call fcn.004d6ae8
pop ecx
pop ecx
push 4
push str..exe
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00451c32
push eax
lea ecx, [ebp + 0x10]
call fcn.00451784
cmp dword [ebp + 0x24], 0x10
lea eax, [ebp + 0x10]
push dword [ebp - 0x90]
cmovae eax, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.004d828b
pop ecx
pop ecx
lea ecx, [ebp + 0x10]
call fcn.00451984
lea ecx, [ebp - 0x128]
call fcn.00451984
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x90], eax
je 0x4c8517
push dword [ebp - 0x90]
call fcn.006e60fe
pop ecx
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x4c852b
mov eax, dword [ebp + 8]
mov dword [ecx], eax
push dword [ebp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x38]
call esi
xor ebx, ebx
inc ebx
push dword [ebp + 0x34]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x44
leave
ret