Function at 0x406ec0
Capabilities:
Create process on windows
Delete file
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408ead
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x40e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], edx
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call esi
push 0x11
call esi
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x40f9f8
push 0x40f928
push 0
mov dword [0x40f920], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40f924], eax
test eax, eax
jne 0x406f5e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004078bc
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40f924]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x40f924]
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x40fae4]
mov dword [0x40f9f0], eax
push dword [ecx - 0xc]
push ecx
push 0x14
push 0x14
push eax
call dword [sym.imp.GDI32.dll_TextOutW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00401660
mov ecx, eax
test ecx, ecx
je 0x40753e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push str._.1s:__MyEdge.dll
push eax
call fcn.004027d0
mov esi, dword [ebp - 0x220]
mov edx, str.Edge
push esi
mov ecx, 0x82
call fcn.00401c10
add esp, 0xc
mov dword [ebp - 0x224], 0
xorps xmm0, xmm0
mov dword [ebp - 0x460], esp
mov edi, esp
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x21c], edi
call fcn.00401660
mov ecx, eax
test ecx, ecx
je 0x407548
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x40a498
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004023b0
test al, al
jne 0x407078
push 1
push 0x40a498
mov ecx, edi
call fcn.004025f0
push ecx
mov byte [ebp - 4], 2
mov edi, esp
mov dword [ebp - 0x21c], edi
call fcn.00401660
mov ecx, eax
test ecx, ecx
je 0x407552
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004023b0
test al, al
jne 0x4070d8
test ebx, ebx
jne 0x4070b6
xor ecx, ecx
jmp 0x4070cf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.004025f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.00401cf0
add esp, 8
mov byte [ebp - 4], 4
xor edi, edi
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x22c]
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x40712d
nop dword [eax]
lea eax, [eax + edi*4]
push eax
lea ecx, [edi*4 + 0x40fad0]
call fcn.00402260
inc edi
cmp edi, ebx
jae 0x40712d
mov eax, dword [ebp - 0x22c]
jmp 0x407110
push dword [0x40fad8]
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
call ebx
add esp, 4
push eax
push dword [0x40fad4]
call ebx
mov dword [ebp - 0x21c], esp
mov edi, dword [0x40fad0]
mov dword [ebp - 0x45c], eax
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp dword [edi - 4], 0
mov ecx, eax
lea eax, [edi - 4]
jl 0x407179
cmp ecx, dword [edi - 0x10]
jne 0x407179
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x4071a6
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x407539
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
lea edx, [ecx + ecx]
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004012d0
add esp, 8
mov ecx, dword [ebp - 0x21c]
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x45c]
mov dword [ecx], eax
call fcn.004051a0
add esp, 8
or ebx, 0xffffffff
test al, al
jne 0x4074f6
push str.Edge__
call fcn.00401af0
add esp, 4
mov ecx, 0x40fae4
push 0x11
push str.Edge__...
call fcn.004025f0
push str.EdgeRunTime.exe
mov edx, 0x40aa1c
mov ecx, 0x81
call fcn.00401c10
add esp, 4
push 0
push 0
push 0
push str.EdgeRunTime.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], eax
call fcn.00401660
mov ecx, eax
test ecx, ecx
je 0x40753e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
push str.EdgeRunTime.exe
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 5
call fcn.004023b0
test al, al
jne 0x40726a
push 0xf
push str.EdgeRunTime.exe
lea ecx, [ebp - 0x45c]
call fcn.004025f0
xor ebx, ebx
mov byte [ebp - 4], 6
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x460], edi
test edi, edi
je 0x4073a7
push 0x228
lea eax, [ebp - 0x454]
mov dword [ebp - 0x458], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4073a7
nop
call fcn.00401660
test eax, eax
je 0x40753e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x21c]
call fcn.004023b0
test al, al
jne 0x407322
lea eax, [ebp - 0x434]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407300
sub eax, edx
lea ecx, [ebp - 0x21c]
sar eax, 1
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.004025f0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x40753e
mov ecx, dword [ebp - 0x21c]
mov edx, ecx
nop dword [eax]
mov di, word [edx]
cmp di, word [eax]
jne 0x407366
test di, di
je 0x407362
mov di, word [edx + 2]
cmp di, word [eax + 2]
jne 0x407366
add edx, 4
add eax, 4
test di, di
jne 0x407340
xor eax, eax
jmp 0x40736b
sbb eax, eax
or eax, 1
test eax, eax
lea edx, [ecx - 0x10]
cmove ebx, dword [ebp - 0x450]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40738c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4072c0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4073c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x407411
mov eax, dword [0x40fae4]
push dword [eax - 0xc]
push eax
push 0x14
push 0x14
push dword [0x40f9f0]
call dword [sym.imp.GDI32.dll_TextOutW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], eax
call fcn.00401660
mov ecx, eax
test ecx, ecx
jne 0x407232
jmp 0x40753e
push 5
push 0x40aa30
mov ecx, 0x40fae4
call fcn.004025f0
mov eax, dword [0x40fae4]
push dword [eax - 0xc]
push eax
push 0x14
push 0x14
push dword [0x40f9f0]
call dword [sym.imp.GDI32.dll_TextOutW]
push 0x40aa3c
call fcn.00401af0
push dword [0x40fad8]
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
call edi
add esp, 8
push eax
push dword [0x40fad4]
call edi
mov dword [ebp - 0x460], esp
mov edi, dword [0x40fad0]
mov dword [ebp - 0x21c], eax
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp dword [edi - 4], 0
mov ecx, eax
lea eax, [edi - 4]
jl 0x407491
cmp ecx, dword [edi - 0x10]
jne 0x407491
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x4074be
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x407539
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
lea edx, [ecx + ecx]
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004012d0
add esp, 8
mov ecx, dword [ebp - 0x460]
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x21c]
mov dword [ecx], eax
call fcn.004051a0
add esp, 8
test al, al
jne 0x4074e8
push 0x40aa48
call fcn.00401af0
add esp, 4
push str.EdgeRunTime.exe
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or ebx, 0xffffffff
push dword [0x40f9f0]
push dword [0x40f924]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0x22c]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40752f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x406f42
call fcn.004025e0
push 0x80004005
call fcn.004013b0
push 0x80004005
call fcn.004013b0
push 0x80004005
call fcn.004013b0
int3