Function at 0x4d7b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557f1f
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov bl, cl
lea eax, [ebp + 8]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x138]
call fcn.00409940
mov byte [ebp - 4], 3
test bl, bl
je 0x4d7fc9
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
call dword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x16c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4d7f7c
push ecx
mov ecx, dword [ebp - 0x16c]
call fcn.004d7ab0
add esp, 4
test eax, eax
je 0x4d7f7c
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x4d7f7c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x170], 0
push eax
push 4
lea eax, [ebp - 0x170]
mov dword [ebp - 0x164], 0
push eax
push 0x13
push dword [ebp - 0x168]
mov dword [ebp - 0x120], 4
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4d7c79
lea eax, [ebp - 0x164]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4d7fbb
push 4
lea eax, [ebp - 0x11c]
push eax
push 0xc
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4d7fbb
xorps xmm0, xmm0
mov dword [ebp - 0x1bc], 0
xor eax, eax
movlpd qword [ebp - 0x1b4], xmm0
push 8
push str.calc.exe
lea ecx, [ebp - 0x150]
movlpd qword [ebp - 0x1ac], xmm0
movlpd qword [ebp - 0x1a4], xmm0
movlpd qword [ebp - 0x19c], xmm0
movlpd qword [ebp - 0x188], xmm0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x1c0], 0x44
mov dword [ebp - 0x194], 1
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x1b8], str.winsta0default
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], al
call fcn.00409ab0
push 0x104
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.00517340
push 0x577dd4
lea edx, [ebp + 8]
lea ecx, [ebp - 0x22c]
call fcn.00409c80
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x214]
call fcn.00409d40
mov edx, dword [ebp - 0x200]
add esp, 0x14
mov esi, dword [eax + 0x10]
cmp edx, 0x10
jb 0x4d7daa
mov ecx, dword [ebp - 0x214]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7da0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d815a
push edx
push ecx
call fcn.005150f8
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0xf
mov byte [ebp - 0x214], 0
cmp edx, 0x10
jb 0x4d7e03
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7df9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d815f
push edx
push ecx
call fcn.005150f8
add esp, 8
push 0x577dd0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x22c]
call fcn.00409c80
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x214]
call fcn.00409d40
add esp, 8
cmp dword [eax + 0x10], esi
mov edx, esi
cmovb edx, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x4d7e3f
mov eax, dword [eax]
cmp edx, esi
ja 0x4d815a
push edx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00516840
mov edx, dword [ebp - 0x200]
add esp, 0xc
cmp edx, 0x10
jb 0x4d7e92
mov ecx, dword [ebp - 0x214]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7e88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8164
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0xf
mov byte [ebp - 0x214], 0
cmp edx, 0x10
jb 0x4d7ee7
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7edd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8169
push edx
push ecx
call fcn.005150f8
add esp, 8
push 0
push dword [ebp - 0x164]
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4d7f36
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x1c0]
push eax
push 0
push dword [ebp - 0x174]
lea eax, [ebp - 0x118]
push 0x8000400
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x4d7f7c
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d7f72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d816e
push edx
push ecx
call fcn.005150f8
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x4d8066
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d805c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8173
jmp 0x4d805c
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4d7f7c
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
mov dword [ebp - 0x1fc], 0x3c
cmovae eax, dword [ebp + 0x38]
cmp dword [ebp - 0x124], 0x10
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x1ec], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x1fc]
push eax
mov dword [ebp - 0x1f8], 0x8440
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x4d7f7c
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessId]
mov esi, eax
jmp 0x4d7f7e
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp edx, 0x10
jb 0x4d80b5
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d80ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8178
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4d80fb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d80f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d817d
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x4d813d
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d8133
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8182
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
int3