Function at 0x4589b0
Capabilities:
Access peb ldr_data
Create process on windows
Get session information
Get session user name
Impersonate user

Disassembly:
push 0xffffffffffffffff
push 0x4827eb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov dword [esp + 0xa8], 1
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0xb0]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
push 5
push edi
push ebx
mov byte [esp + 0xbc], 2
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], 0x20
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov esi, eax
cmp esi, ebx
jne 0x458a93
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._ERROR_InTouchService:_WTSQuerySessionInformation_____d__n
call fcn.00401010
add esp, 8
call edi
push eax
push str.ERROR_InTouchService:_WTSQuerySessionInformation_____d__n
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x458c86
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x3c], edx
call sub.WTSAPI32.dll_WTSQueryUserToken
mov esi, eax
cmp esi, ebx
jne 0x458ad9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._ERROR_InTouchService:_WTSQueryUserToken_____d__n
call fcn.00401010
add esp, 8
call edi
push eax
push str.ERROR_InTouchService:_WTSQueryUserToken_____d__n
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x458c86
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 1
push 1
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
jne 0x458b26
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._ERROR_InTouchService:_DuplicateTokenEx_____d__n
call fcn.00401010
add esp, 8
call edi
push eax
push 0x486b28
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x458c86
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov esi, eax
cmp esi, ebx
jne 0x458b69
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._ERROR_InTouchService:_LoadUserProfile_____d__n
call fcn.00401010
add esp, 8
call edi
push eax
push str.ERROR_InTouchService:_LoadUserProfile_____d__n
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x458c86
mov edx, dword [esp + 0x14]
push 1
push edx
lea eax, [esp + 0x24]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
mov esi, eax
cmp esi, ebx
jne 0x458bad
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._ERROR_InTouchService:_CreateEnvironmentBlock_____d__n
call fcn.00401010
add esp, 8
call edi
push eax
push str.ERROR_InTouchService:_CreateEnvironmentBlock_____d__n
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x458c86
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edi, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push edi
push edx
lea eax, [esp + 0x2c]
push str.__s___s
push eax
call fcn.00448fb0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x60]
push edx
push ebx
push eax
push 0x400
push ebx
push ebx
push ebx
push ebp
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
cmp esi, ebx
jne 0x458c35
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._InTouchService:_ERROR_CreateProcessAsUser_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.InTouchService:_ERROR_CreateProcessAsUser_____d__n
push 2
call fcn.00448d80
add esp, 0xc
xor esi, esi
jmp 0x458c86
mov edx, dword [esp + 0xb4]
push edi
push edx
push str.____InTouchService:_CreateProcess_fileName___s__commandLine___s_n
call fcn.00401010
mov eax, dword [esp + 0xc0]
push edi
push eax
push str.InTouchService:_CreateProcess_fileName___s__commandLine___s_n
push ebx
call fcn.00448d80
add esp, 0x1c
cmp dword [esp + 0xbc], ebx
je 0x458c7b
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x458c98
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x458cb0
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x458cc2
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x458cd5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x458ce8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x10]
mov byte [esp + 0xa8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458d0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
mov byte [esp + 0xa8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458d36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x14