Function at 0x40a2b0
Capabilities:
Create process on windows
Impersonate user
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor eax, eax
push esi
push edi
xor edi, edi
push 0x40
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x4a0]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x45c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x4a4], edi
call fcn.00550f40
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x424]
xor eax, eax
push ecx
push edx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, eax
cmp esi, edi
je 0x40a5c0
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
push 1
push 1
push edi
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, edi
je 0x40a5c0
mov eax, dword [ebp - 0x420]
push 4
lea edx, [ebp + 8]
push edx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x40a5c0
push 0x206
lea edx, [ebp - 0x212]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x214], cx
call fcn.00550f40
push 0x206
lea ecx, [ebp - 0x41a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x41c], ax
call fcn.00550f40
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x424]
call fcn.00409fc0
mov esi, eax
add esp, 0x20
cmp esi, edi
jne 0x40a410
push str.GetTokenUserInfo_failed__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a5c0
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x454], eax
lea edx, [ebp - 0x45c]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x424]
push edx
lea ecx, [ebp - 0x214]
push eax
mov dword [ebp - 0x45c], 0x20
mov dword [ebp - 0x454], ecx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov ecx, dword [ebp - 0x424]
push 1
push ecx
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0x44
lea eax, [ebp - 0x4a4]
push edi
push eax
call fcn.00550f40
add esp, 0xc
or dword [ebp - 0x478], 0x81
xor eax, eax
lea edx, [ebp - 0x43c]
push edx
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x4a4]
push eax
push edi
mov ecx, 5
mov word [ebp - 0x474], cx
mov ecx, dword [ebp - 0x428]
push ecx
push 0x430
push edi
push edi
push edi
push ebx
push edi
push edx
mov dword [ebp - 0x4a4], 0x44
mov dword [ebp - 0x49c], str.WinSta0Default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
cmp esi, edi
jne 0x40a5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x40a5c0
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x420], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x42c]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x40a5c0
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x420]
push edx
push 1
push 1
push edi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, edi
je 0x40a5c0
mov edx, dword [ebp - 0x420]
push 4
lea ecx, [ebp + 8]
push ecx
push 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x40a5c0
mov edx, dword [ebp - 0x428]
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x4a4]
push ecx
push edi
push edx
push 0x430
push edi
push edi
push edi
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp - 0x440]
cmp eax, edi
je 0x40a5d8
mov ecx, dword [ebp - 0x424]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x428]
cmp eax, edi
je 0x40a5e9
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x42c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x40a5fc
push eax
call ebx
mov eax, dword [ebp - 0x420]
cmp eax, edi
je 0x40a609
push eax
call ebx
mov eax, dword [ebp - 0x424]
cmp eax, edi
je 0x40a616
push eax
call ebx
mov eax, dword [ebp - 0x43c]
cmp eax, edi
je 0x40a623
push eax
call ebx
mov eax, dword [ebp - 0x438]
cmp eax, edi
je 0x40a630
push eax
call ebx
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054bd91
mov esp, ebp
pop ebp
ret