Function at 0x40f3f0
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 0x435f20
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.0040b850
push str.Encrypt.dat
push eax
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.00401bf0
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 0x40f45d
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.0040b850
push str.Encrypt.back
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 3
call fcn.00401bf0
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 0x40f49f
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.0041a6e2
add esp, 8
test eax, eax
je 0x40f4c6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x43a48c
mov ecx, esi
call fcn.0042b74f
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 [0x448270], eax
call fcn.0040b850
push str.update
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00401bf0
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 0x40f523
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 0x40f53c
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 0x40f559
push 0xb
push str.update.zip
lea ecx, [ebp - 0x14]
call fcn.00404330
jmp 0x40f5d3
push 0x439a20
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00401bf0
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.00401bf0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00401b80
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 0x40f5b2
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 0x40f5d3
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.0041a6e2
add esp, 8
test eax, eax
je 0x40f69e
call fcn.004276cb
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.0040c670
cmp eax, edi
je 0x40f62f
mov ecx, dword [esi + 0x168]
lea edx, [ebp - 0x14]
push edx
call fcn.00401480
cmp eax, dword [esi + 0x160]
je 0x40f67d
lea eax, [ebp - 0x14]
push eax
call fcn.0040fc70
add esp, 4
cmp eax, edi
je 0x40f649
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.0040c670
cmp eax, edi
jne 0x40f67d
mov edi, dword [ebp - 0x18]
push 0
push 0x437690
push edi
mov ecx, esi
call fcn.00428f30
mov ecx, esi
call fcn.0040d450
lea eax, [edi - 0x10]
jmp 0x40fa6d
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 0x40f69e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004276cb
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.0040b850
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00401b80
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 0x40f6ed
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.00403310
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.00401b80
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 0x40f730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.EPHONE.exe
lea ecx, [ebp - 0x24]
xor ebx, ebx
call fcn.00404850
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.0040c060
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 0x40f771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, 0xffffffff
je 0x40f77b
mov ebx, 1
mov eax, dword [esi + 0x164]
test eax, eax
je 0x40f9aa
test ebx, ebx
je 0x40f7b7
push 4
push 0x437690
push 0x43a434
mov ecx, esi
call fcn.00428f30
cmp eax, 6
mov ecx, esi
jne 0x40fa62
call fcn.0040d310
mov ecx, esi
call fcn.0040d3b0
mov eax, dword [esi + 0x16c]
push str.UpateExE
push eax
call fcn.0041a6e2
add esp, 8
test eax, eax
je 0x40f7da
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040ebb0
mov ecx, esi
call fcn.0040e240
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040b850
push str.update
push eax
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 0x11
call fcn.00401bf0
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 0x40f823
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.0040cd70
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 0x40f84f
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 0x40f870
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 0x40f908
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.0040b850
push str.ECPViewWeb.exe
push eax
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 0x15
call fcn.00401bf0
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 0x40f8d0
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 0x40f908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0040bfb0
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 0x40f953
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 0x40f971
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 0x40fada
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 0x43a40c
lea ecx, [esi + 0xf4]
call fcn.0042b74f
test ebx, ebx
je 0x40f9e8
push 4
push 0x437690
push 0x43a3e0
mov ecx, esi
call fcn.00428f30
cmp eax, 6
mov ecx, esi
jne 0x40fa62
call fcn.0040d310
mov ecx, esi
call fcn.0040d3b0
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 0x40fa19
mov ecx, esi
call fcn.0040d450
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x150]
mov ecx, dword [0x448270]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esp, [esp]
mov edx, dword [0x448270]
push 0x1f4
push edx
call edi
cmp eax, 0x102
jne 0x40f7e1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.ecp_setup.exe
call fcn.00404850
mov ecx, esi
call fcn.0040b1b0
jmp 0x40fa30
call fcn.0040ad00
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 0x40fa88
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 0x40faa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
jmp 0x40f956
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret