Function at 0x42af80
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x12a8
call fcn.00421710
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0x1280], esp
mov dword [esp], str.Request_to_display_toast_notification___s_..._r_n
mov dword [esp + 4], eax
mov esi, eax
call dbg.logEvent
cmp dword [0x44f360], 0
jne 0x42afc8
mov dword [esp], str.Unable_to_display_toast_notification_as_WTSQueryUserToken_not_loaded____Vista___r_n
call dbg.logEvent
jmp 0x42b28a
call sym._WTSGetActiveConsoleSessionId_0
mov dword [ebp - 0x127c], eax
inc eax
jne 0x42afe7
mov dword [esp], str.No_session_attached_to_physical_console__so_unable_to_display_toast_notification_r_n
call dbg.logEvent
jmp 0x42b28a
lea ebx, [ebp - 0x1220]
mov dword [esp + 8], 0x104
mov dword [esp], str._TEMP__remotely_icon.png
mov dword [esp + 4], ebx
call sym._ExpandEnvironmentStringsA_12
sub esp, 0xc
mov edx, ebx
mov ecx, 1
mov dword [esp], 0
mov eax, str.https:__imagesoft.co.uk_remotely_img_icon.png
call sym._downloadFile
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x1018]
mov dword [esp + 0x10], esi
mov dword [esp + 8], str.Function_New_DotNetToast____cmdletBinding_____Param___Parameter_Mandatory__Position__0____String____Title____Parameter_Mandatory_Position__1_____String____Message____Parameter_Position__2____String____Logo____s_____XmlString____toast__visual__binding_templateToastGeneric__text__Title__text__text__Message__text__image_src_Logo_placementappLogoOverride_hint_cropcircle_____binding___visual__audio_srcms_winsoundevent:Notification.Default_____toast_____AppId__1AC14E77_02E7_4E5D_B744_2EB1AE5198B7WindowsPowerShell_v1.0powershell.exe___null___Windows.UI.Notifications.ToastNotificationManager__Windows.UI.Notifications__ContentType__WindowsRuntime____null___Windows.Data.Xml.Dom.XmlDocument__Windows.Data.Xml.Dom.XmlDocument__ContentType__WindowsRuntime____ToastXml___Windows.Data.Xml.Dom.XmlDocument_::new_____ToastXml.LoadXml__XmlString____Toast___Windows.UI.Notifications.ToastNotification_::new__ToastXml____Windows.UI.Notifications.ToastNotificationManager_::CreateToastNotifier__AppId_.Show__Toast___New_DotNetToast__Remotely_Client____s_
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
mov edi, ebx
call sym.___mingw_snprintf
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + ecx]
lea edx, [ecx - 1]
mov esi, ecx
add eax, 0x10
mov dword [ebp - 0x1284], edx
shr eax, 4
shl eax, 4
call fcn.00421710
sub esp, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x10], edi
mov dword [esp], 0
call sym._MultiByteToWideChar_24
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x1284]
jne 0x42b0c2
call sym._GetLastError_0
mov dword [esp], str.Call_to_MultiByteToWideChar_failed_in_displayToastNotification___with_error_code__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x42b28a
lea ebx, [esi*4 + 0x100]
lea eax, [ebx + 0xf]
shr eax, 4
shl eax, 4
mov esi, eax
call fcn.00421710
sub esp, eax
add edx, edx
lea eax, [esp + 0x2c]
mov dword [ebp - 0x1284], eax
mov dword [esp], ebx
mov eax, edi
mov ecx, dword [ebp - 0x1284]
call dbg.base64encode
test eax, eax
je 0x42b28a
lea edi, [ebp - 0x111c]
mov dword [esp + 8], 0x104
mov dword [esp], str._SystemRoot__system32WindowsPowerShell_v1.0powershell.exe
mov dword [esp + 4], edi
call sym._ExpandEnvironmentStringsA_12
mov eax, esi
sub esp, 0xc
call fcn.00421710
sub esp, eax
mov eax, dword [ebp - 0x1284]
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._s__EncodedCommand__s
mov dword [esp + 0x10], eax
mov dword [esp], esi
call sym.___mingw_snprintf
mov dword [esp + 4], esi
mov dword [esp], str.Displaying_toast_notification:__s_r_n
call dbg.logEvent
lea eax, [ebp - 0x1278]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x127c]
mov dword [esp], eax
call dword [0x44f360]
test eax, eax
push ebx
push ebx
jne 0x42b198
call sym._GetLastError_0
mov dword [esp], str.Call_to_WTSQueryUserToken_failed_with_error_code__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x42b28a
lea ebx, [ebp - 0x1264]
xor eax, eax
mov ecx, 0x11
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1274]
mov dword [ebp - 0x1264], 0x44
mov dword [ebp - 0x125c], str.winsta0default
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x8000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1278]
mov dword [esp], eax
call sym._CreateProcessAsUserA_44
mov ebx, eax
mov eax, dword [ebp - 0x1278]
sub esp, 0x2c
mov dword [esp], eax
call sym._CloseHandle_4
test ebx, ebx
push ecx
jne 0x42b244
call sym._GetLastError_0
mov dword [esp], str.Call_to_CreateProcessAsUserA_failed_with_error_code__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x42b28a
mov eax, dword [ebp - 0x126c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1274]
mov dword [esp], str.Toast_process_HANDLE___d__PID___d_successfully_launched._Closing_handles..._r_n
mov dword [esp + 4], eax
call dbg.logEvent
mov eax, dword [ebp - 0x1274]
mov dword [esp], eax
call sym._CloseHandle_4
push eax
mov eax, dword [ebp - 0x1270]
mov dword [esp], eax
call sym._CloseHandle_4
push edx
mov esp, dword [ebp - 0x1280]
jmp 0x42b290
mov esp, dword [ebp - 0x1280]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret