Function at 0x4172f0
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0x5f9e74]
xor eax, esp
mov dword [esp + 0x188], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41755f
call eax
mov esi, eax
mov ebx, 0x30
push 0x44
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], esi
push 0
push eax
call fcn.0056ecf0
add esp, 0xc
mov dword [esp + 0x38], 0x44
lea eax, [esp + 0x10]
mov dword [esp + 0x40], str.winsta0default
mov dword [esp + 0x1c], 0
push eax
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4173f7
call edi
push 0x100
mov esi, eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.0056ecf0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x9c]
add esp, 0xc
mov dword [esp + 0x90], 0x4c505845
mov dword [esp + 0x94], 0x5245524f
mov dword [esp + 0x98], 0x4558452e
call fcn.004171a0
mov dword [esp + 0x10], eax
test eax, eax
je 0x41751b
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x13
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x417420
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
jmp 0x4174cd
lea eax, [esp + 0x30]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x417517
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], eax
lea eax, [esp + 0xc]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x24]
mov dword [esp + 0x98], 1
mov dword [esp + 0xa4], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x417517
push 4
lea eax, [esp + 0x1c]
push eax
push 0xc
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4174ab
call edi
mov esi, eax
cmp esi, 0x522
jne 0x41751b
push 0
push 0
push 0x10
lea eax, [esp + 0x8c]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x417517
mov eax, dword [esp + 0xc]
push 1
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4174ea
mov eax, dword [esp + 0x14]
mov ebx, 0x430
jmp 0x4174f0
xor eax, eax
mov dword [esp + 0x14], eax
push dword [esp + 0x24]
xor esi, esi
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
push ebx
push esi
push esi
push esi
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x41751b
call edi
mov esi, eax
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41752c
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417537
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417546
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 4