Function at 0x407cf0
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes on remote desktop session host
Self delete

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453731
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f0
mov eax, dword [0x471078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x4fc], eax
xor esi, esi
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [ebp - 0x480], esi
xor eax, eax
movq qword [ebp - 0x448], xmm0
xor edi, edi
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 4], eax
push 0x466298
mov dword [ebp - 0x488], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x484], eax
test eax, eax
je 0x4083cf
push 0x4662ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4662d0
push dword [ebp - 0x484]
mov dword [ebp - 0x4f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4662ec
push dword [ebp - 0x484]
mov dword [ebp - 0x4f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x4f0], edi
je 0x4083cf
cmp dword [ebp - 0x4f4], edi
je 0x4083cf
test eax, eax
je 0x4083cf
lea eax, [ebp - 0x488]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407e5c
push ecx
mov ecx, dword [ebp - 0x488]
mov edx, str.SeDebugPrivilege
call fcn.00404e80
add esp, 4
push dword [ebp - 0x488]
test al, al
je 0x407e56
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x48c]
push eax
push 1
push edi
push edi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
jne 0x407e67
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4083d4
cmp dword [ebp - 0x464], 0
mov dword [ebp - 0x4f8], 0
jbe 0x40832f
xor ecx, ecx
mov dword [ebp - 0x4ec], ecx
test esi, esi
jne 0x408317
mov edi, dword [ebp - 0x48c]
add edi, ecx
mov ecx, str.explorer.exe
mov eax, dword [edi + 8]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407ec6
test dx, dx
je 0x407ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ea0
xor eax, eax
jmp 0x407ecb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4082ef
push 0x48
push eax
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.00438180
xorps xmm0, xmm0
mov dword [ebp - 0x468], 7
xor eax, eax
mov dword [ebp - 0x46c], 0
add esp, 0xc
mov word [ebp - 0x47c], ax
movups xmmword [ebp - 0x49c], xmm0
mov byte [ebp - 4], 1
push dword [edi + 4]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x484], eax
test eax, eax
jne 0x407f3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408295
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x408295
xor ecx, ecx
mov word [ebp - 0x20], cx
mov word [ebp - 0x228], cx
lea ecx, [ebp - 0x480]
push ecx
push 0x208
lea ecx, [ebp - 0x228]
push ecx
push 2
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x407f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408295
cmp word [ebp - 0x228], 0
jne 0x407f92
xor ecx, ecx
jmp 0x407faf
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407fa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040b800
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
je 0x408295
xor ecx, ecx
mov word [ebp - 0x20], cx
mov word [ebp - 0x228], cx
lea ecx, [ebp - 0x480]
push ecx
push 0x208
lea ecx, [ebp - 0x228]
push ecx
push 2
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x408011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408295
push 0x5c
push 1
lea ecx, [ebp - 0x47c]
call fcn.004096f0
cmp word [ebp - 0x228], 0
jne 0x40802e
xor ecx, ecx
jmp 0x408046
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408037
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040b800
cmp dword [ebp - 0x468], 8
lea eax, [ebp - 0x47c]
mov edi, dword [ebp - 0x4f0]
mov ecx, edi
cmovae eax, dword [ebp - 0x47c]
mov dword [ebp - 0x4e0], eax
lea eax, [ebp - 0x480]
push eax
push 0
push 1
push 0
mov dword [ebp - 0x4e8], 0x48
mov dword [ebp - 0x480], 0
call dword [0x4572d8]
call edi
push dword [ebp - 0x480]
call fcn.0043c447
add esp, 4
mov dword [ebp - 0x4a4], eax
lea ecx, [ebp - 0x480]
push ecx
push 0
push 1
push eax
mov ecx, edi
call dword [0x4572d8]
call edi
test eax, eax
jne 0x4080df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408295
mov edi, dword [ebp - 0x4f4]
lea eax, [ebp - 0x484]
push 0
push 0
push 4
push eax
push 0x20000
push 0
push dword [ebp - 0x4a4]
mov ecx, edi
call dword [0x4572d8]
call edi
test eax, eax
jne 0x40811a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408295
xor eax, eax
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], 0
mov word [ebp - 0x460], ax
push 0x105
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408281
cmp word [ebp - 0x438], 0
jne 0x40816c
xor eax, eax
jmp 0x408184
lea eax, [ebp - 0x438]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408175
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x460]
call fcn.0040b5e0
cmp dword [ebp - 0x450], 0
jbe 0x4081d9
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
cmp word [eax], 0x22
je 0x4081d9
push 1
sub esp, 8
lea ecx, [ebp - 0x460]
call fcn.0040b490
push 0x22
push 1
lea ecx, [ebp - 0x460]
call fcn.004096f0
push 1
push 0x466208
lea ecx, [ebp - 0x460]
call fcn.0040b800
xor ecx, ecx
mov eax, 0xc
cmp word [0x465900], cx
cmove eax, ecx
lea ecx, [ebp - 0x460]
push eax
push 0x465900
call fcn.0040b800
cmp dword [ebp - 0x44c], 8
lea ecx, [ebp - 0x49c]
push ecx
lea ecx, [ebp - 0x4e8]
push ecx
push 0
push 0
push 0x80000
push 0
push 0
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40825d
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x448]
call fcn.00409220
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44c]
cmp eax, 8
jb 0x408295
inc eax
lea ecx, [ebp - 0x460]
push eax
push dword [ebp - 0x460]
call fcn.0040ca80
jmp 0x408295
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
mov esi, 2
call fcn.004097a0
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x4082be
mov edi, dword [ebp - 0x43c]
mov ecx, edi
push eax
call dword [0x4572d8]
call edi
push dword [ebp - 0x4a4]
call fcn.0043bfb8
add esp, 4
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x4082cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x4082e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0
call fcn.004097a0
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [ebp - 0x4ec]
inc eax
add ecx, 0x10
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4ec], ecx
cmp eax, dword [ebp - 0x464]
jb 0x407e86
mov eax, dword [ebp - 0x440]
mov edi, dword [ebp - 0x448]
mov dword [ebp - 0x480], esi
mov dword [ebp - 0x4ec], eax
mov eax, dword [ebp - 0x444]
sub eax, edi
sar eax, 2
test eax, eax
je 0x4083a0
push 0xffffffffffffffff
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, edi
cmp edi, dword [ebp - 0x444]
je 0x4083a0
mov eax, dword [ebp - 0x4fc]
mov edi, dword [esi]
cmp dword [eax], 0
jne 0x408388
lea eax, [ebp - 0x43c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x408388
mov eax, dword [ebp - 0x43c]
test eax, 0xc0000000
jne 0x408388
mov ecx, dword [ebp - 0x4fc]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, dword [ebp - 0x444]
jne 0x408354
mov edi, dword [ebp - 0x448]
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x4083b1
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test edi, edi
je 0x4083c7
mov eax, dword [ebp - 0x4ec]
sub eax, edi
sar eax, 2
push eax
push edi
call fcn.0040c710
mov eax, dword [ebp - 0x480]
jmp 0x4083d4
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e04a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret