Function at 0x411ac0
Capabilities:
Check if file exists
Copy file
Create directory
Create process on windows
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4385c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
mov dword [ebp - 0x38], esi
mov dword [esi + 0x170], edi
call fcn.0040d8b0
push str.Encrypt.dat
push eax
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.00401c00
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411b2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040d8b0
push str.Encrypt.back
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 3
call fcn.00401c00
add esp, 0xc
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411b6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x16c]
push str.UpateExE
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
je 0x411b96
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x43c614
mov ecx, esi
call fcn.0042dbcd
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [ebp - 0x30]
push edx
mov ecx, esi
mov dword [0x44a2b0], eax
call fcn.0040d8b0
push str.update
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00401c00
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411bf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x411c0c
mov ecx, dword [ebp - 0x14]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esi + 0x164], edi
mov byte [ebp - 4], 9
je 0x411c29
push 0xb
push str.update.zip
lea ecx, [ebp - 0x14]
call fcn.00405510
jmp 0x411ca3
push 0x439e2c
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00401c00
add esp, 0xc
push str.ecp_setup.exe
push eax
lea ecx, [ebp - 0x24]
mov bl, 0xa
push ecx
mov byte [ebp - 4], bl
call fcn.00401c00
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00401b90
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411c82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ca3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x16c]
push str.UpateExE
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
je 0x411d6e
call fcn.00429b49
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.0040e620
cmp eax, edi
je 0x411cff
mov ecx, dword [esi + 0x168]
lea edx, [ebp - 0x14]
push edx
call fcn.00401490
cmp eax, dword [esi + 0x160]
je 0x411d4d
lea eax, [ebp - 0x14]
push eax
call fcn.00406d50
add esp, 4
cmp eax, edi
je 0x411d19
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040e620
cmp eax, edi
jne 0x411d4d
mov edi, dword [ebp - 0x18]
push 0
push 0x439690
push edi
mov ecx, esi
call fcn.0042b3ae
mov ecx, esi
call fcn.0040f9a0
lea eax, [edi - 0x10]
jmp 0x4120f2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00429b49
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0040d8b0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00401b90
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push str._S__D
push ecx
call fcn.004047f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.00401b90
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411e00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.ECP.exe
lea ecx, [ebp - 0x24]
xor ebx, ebx
call fcn.004057f0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.0040dfc0
mov edi, eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411e41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, 0xffffffff
je 0x411e4b
mov ebx, 1
mov eax, dword [esi + 0x164]
test eax, eax
je 0x41207a
test ebx, ebx
je 0x411e87
push 4
push 0x439690
push 0x43c5bc
mov ecx, esi
call fcn.0042b3ae
cmp eax, 6
mov ecx, esi
jne 0x4120e7
call fcn.0040f860
mov ecx, esi
call fcn.0040f900
mov eax, dword [esi + 0x16c]
push str.UpateExE
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
je 0x411eaa
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00411280
mov ecx, esi
call fcn.00410910
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040d8b0
push str.update
push eax
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 0x11
call fcn.00401c00
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x13
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040f2c0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x14c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x411fd8
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.0040d8b0
push str.ECPViewWeb.exe
push eax
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 0x15
call fcn.00401c00
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x14c]
mov edi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x1c]
push 1
push 0
push eax
push edi
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0040df10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x43c594
lea ecx, [esi + 0xf4]
call fcn.0042dbcd
test ebx, ebx
je 0x412139
push 4
push 0x439690
push 0x43c568
mov ecx, esi
call fcn.0042b3ae
cmp eax, 6
mov ecx, esi
jne 0x4120e7
call fcn.0040f860
mov ecx, esi
call fcn.0040f900
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x1c]
push 0
push 0
push ecx
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x41217a
push 0
push 0
push str.33333333
jmp 0x412162
call fcn.0040cca0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41210d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41212e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
jmp 0x412026
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x1c]
push 0
push 0
push ecx
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x41217a
push 0
push 0
push str.44444444
mov ecx, esi
call fcn.0042b3ae
mov ecx, esi
call fcn.0040f9a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x150]
mov ecx, dword [0x44a2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ecx]
mov edx, dword [0x44a2b0]
push 0x1f4
push edx
call edi
cmp eax, 0x102
jne 0x411eb1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.ecp_setup.exe
call fcn.004057f0
mov ecx, esi
call fcn.0040d130
jmp 0x412190
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret