Function at 0x4019bd
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete file
Enumerate processes
Execute command
Extract resource via kernel32 functions
Move file
Persist via lnk shortcut
Persist via run registry key
Query environment variable
Self delete
Set registry value
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x920
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x34], 0x4000
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
call eax
sub esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0xf
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x264], 0x22c
lea eax, [ebp - 0x264]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._Process32FirstW_8
sub esp, 8
mov dword [ebp - 0xc], eax
jmp 0x401ae0
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x10], eax
je 0x401ac5
mov dword [esp + 4], str.e_wings.exe
lea eax, [ebp - 0x264]
add eax, 0x24
mov dword [esp], eax
call sym._wcscmp
test eax, eax
jne 0x401ac5
mov eax, dword [ebp - 0x25c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
call eax
sub esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x401ac5
mov dword [esp + 4], 9
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
sub esp, 8
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], 0x7d0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
lea eax, [ebp - 0x264]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._Process32NextW_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401a34
mov dword [esp], str.USERPROFILE
call sym._getenv
mov dword [ebp - 0x18], eax
mov dword [esp + 4], 1
mov dword [esp], 0x104
call sym._calloc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s.e_wings
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0x368], 0
lea edx, [ebp - 0x364]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._se_wings.exe
lea eax, [ebp - 0x368]
mov dword [esp], eax
call sym._sprintf
mov dword [ebp - 0x46c], 0
lea edx, [ebp - 0x468]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x46c]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call eax
sub esp, 0xc
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
lea eax, [ebp - 0x46c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401c52
lea eax, [ebp - 0x368]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call eax
sub esp, 4
test eax, eax
je 0x401c11
lea eax, [ebp - 0x368]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
lea eax, [ebp - 0x46c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileA]
call eax
sub esp, 8
test eax, eax
jne 0x401c52
lea eax, [ebp - 0x368]
mov dword [esp + 8], eax
lea eax, [ebp - 0x46c]
mov dword [esp + 4], eax
mov dword [esp], str.__s_____s__FAILED_TO_MOVE_FILE__n
call sym._printf_1
mov dword [esp], str.APPDATA
call sym._getenv
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x570], 0
lea edx, [ebp - 0x56c]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sMicrosoftWindowsStart_MenuProgramsStartupe_wings.lnk
lea eax, [ebp - 0x570]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x570]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sDesktope_wings.lnk
lea eax, [ebp - 0x570]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x570]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
mov dword [ebp - 0x574], 0
lea eax, [ebp - 0x574]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call eax
sub esp, 0xc
lea eax, [ebp - 0x368]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x574]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x368]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.e_Wings
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov dword [ewEnv.notificationWav], 0
lea edx, [ewEnv.lockedNotificationWav]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sDesktope_wings.exe
lea eax, [ewEnv.notificationWav]
mov dword [esp], eax
call sym._sprintf
lea eax, [ewEnv.notificationWav]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call eax
sub esp, 4
test eax, eax
jne 0x401e16
mov dword [esp + 8], 0
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
lea eax, [ewEnv.notificationWav]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkA]
call eax
sub esp, 0xc
test al, al
jne 0x401e16
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x368]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42d18b
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
mov eax, 0
jmp 0x402574
mov dword [esp + 8], 0x60
mov dword [esp + 4], 0
lea eax, [ebp - 0x6d8]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x6d8]
mov dword [0x438044], eax
mov eax, dword [0x438044]
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [0x438044]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x190
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x10
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0xc], eax
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x190
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x19
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0x10], eax
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x190
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x14
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0x14], eax
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x2bc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x18
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0x18], eax
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x2bc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x19
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0x1c], eax
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x2bc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x23
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0x20], eax
mov ebx, dword [0x438044]
mov dword [esp + 0x34], str.Arial
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x2bc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x19
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [ebx + 0x24], eax
mov ebx, dword [0x438044]
mov dword [esp + 4], 0x4c
mov dword [esp], 1
call sym._calloc
mov dword [ebx + 8], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
test eax, eax
jne 0x402215
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.eboros_env_init
test eax, eax
je 0x402263
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d19e
mov dword [esp + 4], str.Init_failed_
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [eax + 0x24], str.0.2.4
mov dword [ebp - 0x6dc], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
lea edx, [ebp - 0x6dc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_IsWow64Process]
call eax
sub esp, 8
mov eax, dword [ebp - 0x6dc]
cmp eax, 1
sete dl
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
movzx edx, dl
mov word [eax + 0x2c], dx
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [eax + 0x28], 0x42d1ca
mov dword [esp], str.cd__UserProfile_.e_wings__del_installer.exe__rmdir__s__q_e_wings
call sym._system
call dbg.ew_win_login_init
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
jne 0x402334
mov dword [esp], 0x438044
call dbg.ew_win_login_show
test eax, eax
je 0x402334
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d19e
mov dword [esp + 4], str.Login_failed_
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call dbg.eboros_env_updateApplication
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x4023eb
cmp dword [ebp - 0x28], 1
jne 0x4023eb
mov dword [ebp - 0x8dc], 0
lea edx, [ebp - 0x8d8]
mov eax, 0
mov ecx, 0x7f
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str._se_wings_new.exe
lea eax, [ebp - 0x8dc]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x42d245
lea eax, [ebp - 0x8dc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
mov eax, 0
jmp 0x402574
lea eax, [ebp - 0x6d8]
mov dword [esp], eax
call dbg.ew_ctrl_init
test eax, eax
je 0x402430
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d19e
mov dword [esp + 4], str.Failed_to_register_ew_controls
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [0x438044]
mov eax, dword [eax]
mov dword [esp + 8], str.WAVE
mov dword [esp + 4], str.notification
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindResourceW]
call eax
sub esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x402490
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d19e
mov dword [esp + 4], str.Failed_to_load_notification_sound__n
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [0x438044]
mov eax, dword [eax]
mov ebx, dword [0x438044]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
call eax
sub esp, 8
mov dword [ebx + 0x58], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 0x58]
test eax, eax
jne 0x4024f3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d19e
mov dword [esp + 4], str.Failed_to_load_notification_sound__n
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [0x438044]
mov eax, dword [eax + 0x58]
mov ebx, dword [0x438044]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LockResource]
call eax
sub esp, 4
mov dword [ebx + 0x5c], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [eax + 0x40], dbg.playNotificationSound
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [eax + 0x44], dbg.stopNotificationSound
call dbg.ew_win_dashboard_show
test eax, eax
je 0x402568
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d19e
mov dword [esp + 4], str.Failed_to_show_dashboard
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402574
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10