Function at 0x407c70
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 0x452a01
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f0
mov eax, dword [0x46f074]
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 0x465228
mov dword [ebp - 0x488], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x484], eax
test eax, eax
je 0x40834f
push 0x46523c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x465260
push dword [ebp - 0x484]
mov dword [ebp - 0x4f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46527c
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 0x40834f
cmp dword [ebp - 0x4f4], edi
je 0x40834f
test eax, eax
je 0x40834f
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 0x407ddc
push ecx
mov ecx, dword [ebp - 0x488]
mov edx, str.SeDebugPrivilege
call fcn.00404df0
add esp, 4
push dword [ebp - 0x488]
test al, al
je 0x407dd6
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 0x407de7
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408354
cmp dword [ebp - 0x464], 0
mov dword [ebp - 0x4f8], 0
jbe 0x4082af
xor ecx, ecx
mov dword [ebp - 0x4ec], ecx
test esi, esi
jne 0x408297
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 0x407e46
test dx, dx
je 0x407e42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407e46
add eax, 4
add ecx, 4
test dx, dx
jne 0x407e20
xor eax, eax
jmp 0x407e4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40826f
push 0x48
push eax
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.00437410
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 0x407ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408215
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x408215
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 0x407f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408215
cmp word [ebp - 0x228], 0
jne 0x407f12
xor ecx, ecx
jmp 0x407f2f
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040b780
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
je 0x408215
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 0x407f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408215
push 0x5c
push 1
lea ecx, [ebp - 0x47c]
call fcn.00409670
cmp word [ebp - 0x228], 0
jne 0x407fae
xor ecx, ecx
jmp 0x407fc6
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407fb7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040b780
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 [0x4562d4]
call edi
push dword [ebp - 0x480]
call fcn.0043b6f7
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 [0x4562d4]
call edi
test eax, eax
jne 0x40805f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408215
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 [0x4562d4]
call edi
test eax, eax
jne 0x40809a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x408215
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 0x408201
cmp word [ebp - 0x438], 0
jne 0x4080ec
xor eax, eax
jmp 0x408104
lea eax, [ebp - 0x438]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4080f5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x460]
call fcn.0040b560
cmp dword [ebp - 0x450], 0
jbe 0x408159
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
cmp word [eax], 0x22
je 0x408159
push 1
sub esp, 8
lea ecx, [ebp - 0x460]
call fcn.0040b410
push 0x22
push 1
lea ecx, [ebp - 0x460]
call fcn.00409670
push 1
push 0x465198
lea ecx, [ebp - 0x460]
call fcn.0040b780
xor ecx, ecx
mov eax, 0xc
cmp word [0x464890], cx
cmove eax, ecx
lea ecx, [ebp - 0x460]
push eax
push 0x464890
call fcn.0040b780
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 0x4081dd
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x448]
call fcn.004091a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44c]
cmp eax, 8
jb 0x408215
inc eax
lea ecx, [ebp - 0x460]
push eax
push dword [ebp - 0x460]
call fcn.0040ca00
jmp 0x408215
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
mov esi, 2
call fcn.00409720
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x40823e
mov edi, dword [ebp - 0x43c]
mov ecx, edi
push eax
call dword [0x4562d4]
call edi
push dword [ebp - 0x4a4]
call fcn.0043b268
add esp, 4
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x40824f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x408260
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0
call fcn.00409720
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 0x407e06
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 0x408320
push 0xffffffffffffffff
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, edi
cmp edi, dword [ebp - 0x444]
je 0x408320
mov eax, dword [ebp - 0x4fc]
mov edi, dword [esi]
cmp dword [eax], 0
jne 0x408308
lea eax, [ebp - 0x43c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x408308
mov eax, dword [ebp - 0x43c]
test eax, 0xc0000000
jne 0x408308
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 0x4082d4
mov edi, dword [ebp - 0x448]
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x408331
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test edi, edi
je 0x408347
mov eax, dword [ebp - 0x4ec]
sub eax, edi
sar eax, 2
push eax
push edi
call fcn.0040c690
mov eax, dword [ebp - 0x480]
jmp 0x408354
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.0041d21a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret