Function at 0x4084d0
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4decc5
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x2fc], eax
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x30c]
mov dword fs:[0], eax
mov dword [esp + 0x314], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4085b0
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x40896d
mov dword [esp + 0x80], 4
mov dword [esp + 0x84], 0x4ed20c
push 0x30
mov byte [esp + 0x318], 1
call fcn.004c0c97
add esp, 4
mov dword [esp + 0x70], eax
mov byte [esp + 0x314], 2
test eax, eax
je 0x40858e
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.00403670
jmp 0x408590
xor eax, eax
mov dword [esp + 0x88], eax
mov byte [esp + 0x314], 3
lea ecx, [esp + 0x88]
push str.CreateToolhelp32Snapshot_Error_n
jmp 0x408954
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408602
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x40896d
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 4
push str.Process32First_Error_n
jmp 0x408951
lea eax, [esp + 0xb0]
push str.winlogon.exe
push eax
call fcn.004d61f7
add esp, 8
test eax, eax
jne 0x40863f
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40863f
cmp dword [esp + 0x78], edi
je 0x408703
lea eax, [esp + 0x8c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408602
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x68]
push eax
push edi
call sub.WTSAPI32.dll_WTSQueryUserToken
push 0x44
lea eax, [esp + 0x10]
mov dword [esp + 0x7c], 0x30
push 0
push eax
call fcn.004c2280
add esp, 0xc
mov dword [esp + 0xc], 0x44
cmp dword [esp + 0x320], 0
mov ecx, str.winsta0winlogon
mov eax, str.winsta0default
xorps xmm0, xmm0
cmovne eax, ecx
push esi
push 0
push 0x2000000
mov dword [esp + 0x20], eax
movdqu xmmword [esp + 0x5c], xmm0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], eax
push ecx
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40875b
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x40896d
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 6
push str.Process_token_open_Error_n
jmp 0x408951
mov esi, dword [esp + 0x94]
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 2
jg 0x408655
push 2
lea ecx, [esp + 0x84]
call fcn.00403550
push str.Process32First_find_success_n
lea ecx, [eax + 8]
mov byte [esp + 0x318], 5
call fcn.004037f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x314], 0
call fcn.004058d0
jmp 0x408655
lea eax, [esp + 0x60]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4087a6
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x40896d
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 7
push str.Lookup_Privilege_value_Error_n
jmp 0x408951
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2bc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c0], eax
lea eax, [esp + 0x7c]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x80]
mov dword [esp + 0x2d0], 1
mov dword [esp + 0x2dc], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x2cc]
push str.DuplicateTokenEx:__d
push eax
call fcn.004c256f
add esp, 0xc
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x408858
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x314], 8
push ecx
lea ecx, [eax + 8]
call fcn.004037f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x314], 0
call fcn.004058d0
push 4
push edi
push 0xc
push dword [esp + 0x88]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
call esi
push eax
lea eax, [esp + 0x2cc]
push str.SetTokenInformation:__d
push eax
call fcn.004c256f
add esp, 0xc
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x4088cd
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x314], 9
push ecx
lea ecx, [eax + 8]
call fcn.004037f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x314], 0
call fcn.004058d0
push 0
push 0
push 0x10
lea eax, [esp + 0x2c4]
push eax
push 0
push dword [esp + 0x90]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40891c
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x40896d
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 0xa
push str.Adjust_Privilege_value_Error_n
jmp 0x408951
call esi
cmp eax, 0x514
jne 0x408975
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 4
jg 0x40896d
push 4
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 0xb
push str.Token_does_not_have_the_provilege_n
lea ecx, [eax + 8]
call fcn.004037f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x314], 0
call fcn.004058d0
or esi, 0xffffffff
jmp 0x408ace
push 1
push dword [esp + 0x80]
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 0
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4089ca
mov dword [esp + 0x78], 0x430
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 1
jg 0x408a1a
push 1
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 0xc
push str.CreateEnvironmentBlock_UNICODE_n
jmp 0x4089fe
mov dword [esp + 0x74], 0
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 1
jg 0x408a1a
push 1
lea ecx, [esp + 0x84]
call fcn.00403550
mov byte [esp + 0x314], 0xd
push str.CreateEnvironmentBlock_ASCII_n
lea ecx, [eax + 8]
call fcn.004037f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x314], 0
call fcn.004058d0
mov eax, dword [esp + 0x31c]
mov ecx, dword [eax + 0xc]
add ecx, eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x80]
push dword [esp + 0x88]
push 0
push 0
push 0
push 0
push ecx
push dword [esp + 0xa4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
call fcn.00405b00
mov ecx, eax
call fcn.00405b80
cmp eax, 1
jg 0x408aae
push 1
lea ecx, [esp + 0x84]
call fcn.00403550
mov esi, eax
mov byte [esp + 0x314], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Result_Of_CreateProcessAsUser
lea ecx, [esi + 8]
call fcn.004037f0
mov ecx, eax
call fcn.00406e90
lea ecx, [esp + 0x80]
mov byte [esp + 0x314], 0
call fcn.004058d0
push dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x68]
call esi
push dword [esp + 0x7c]
call esi
push dword [esp + 0x6c]
call esi
xor esi, esi
mov eax, dword [esp + 0x31c]
mov ecx, dword [eax]
test ecx, ecx
je 0x408af5
cmp ecx, 0xffffffff
je 0x408b02
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x408b02
mov eax, dword [esp + 0x31c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2fc]
xor ecx, esp
call fcn.004c17c4
add esp, 0x30c
ret 8