Function at 0x407813
Capabilities:
Create process on windows
Create process suspended
Enumerate processes on remote desktop session host
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.004192a2
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
push 0x48
call fcn.004192a2
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
push 0x10
call fcn.004192a2
add esp, 4
mov dword [ebp - 0x4c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0x10], 0
jne 0x40792b
mov eax, 0x2c25cd7
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407925
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0
xor eax, eax
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesA]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x40796b
push 0xa6
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407f92
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x407f8f
dec dword [ebp - 0x14]
mov dword [ebp - 0x50], esp
push 0x10
push dword [ebp - 0x10]
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x4079cf
push 0x1ba
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0041a940
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0xc
mov dword [ebp - 0x54], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0041a940
add esp, 0x10
mov dword [ebp - 0x58], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0041a940
add esp, 0x10
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], esp
mov eax, 0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
push dword [ebx]
push dword [ebp - 0x50]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
nop
nop
cmp dword [ebp - 0x60], esp
je 0x407a86
push 0x245
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x407a96
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x407aa6
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x407ab6
push ebx
call fcn.0041929c
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x407f83
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0041b1a0
add esp, 0x10
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407af5
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0041b1a0
add esp, 0x10
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407b2e
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0041a940
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0xc
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esp
mov eax, 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x54]
push dword [ebx]
push dword [ebp - 0x50]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
nop
nop
cmp dword [ebp - 0x58], esp
je 0x407ba7
push 0x352
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x407bba
push ebx
call fcn.0041929c
add esp, 4
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], eax
push 0x2c25cd9
push dword [ebp - 0x24]
call fcn.00402655
add esp, 8
cmp eax, 0
jne 0x407f83
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp - 0x50]
push dword [ebx]
call fcn.00408049
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x407f83
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0x34]
push eax
push 2
push dword [ebp - 0x2c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x407c2e
push 0x4e9
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x407f83
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x80
push 5
mov ebx, 0xc8
call fcn.0041b1e0
add esp, 0x40
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esp
lea eax, [ebp - 0x38]
push eax
push 1
push 2
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x34]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
nop
nop
cmp dword [ebp - 0x54], esp
je 0x407cce
push 0x58f
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x407f83
push dword [ebp + 8]
call fcn.0040812b
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x407cfa
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push dword [ebp + 0xc]
call fcn.0040812b
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x407d1d
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
push 0x80000005
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
mov ebx, 0xc
mov eax, 0x4201c0
call fcn.00419960
add esp, 0x10
mov dword [ebp - 0x50], eax
push 0x80000005
push 0
lea eax, [ebp - 0x40]
push eax
push 1
mov ebx, 0xc
mov eax, 0x4201c0
call fcn.00419960
add esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esp
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
push eax
push 0x44
call fcn.004192a2
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push 0
push dword [ebp - 0x38]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
nop
nop
cmp dword [ebp - 0x58], esp
je 0x407e85
push 0x6e5
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x5c]
push ebx
mov edi, dword [ebp - 0x60]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0041929c
add esp, 4
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], esp
push dword [ebp - 0x2c]
xor eax, eax
call dword [0x2c264c6]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x407f7b
push 0x75d
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov eax, dword [ebp - 0x44]
jmp 0x407fc9
add dword [ebp - 0x10], 0x10
pop eax
pop ebx
pop ecx
jmp 0x40798a
add esp, 0xc
mov dword [ebp - 0x50], esp
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
nop
cmp dword [ebp - 0x50], esp
je 0x407fbf
push 0x860
push 0x4018aa5
push 6
call fcn.004192a8
add esp, 0xc
mov eax, 0
jmp 0x407fc9
push eax
mov ebx, dword [ebp - 0x18]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x407fe1
push ebx
call fcn.0041929c
add esp, 4
pop ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407ffa
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40800a
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40801a
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40802a
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.0041929c
add esp, 4
mov ebx, dword [ebp - 0x4c]
push ebx
call fcn.0041929c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc