Function at 0x4027f0
Capabilities:
Check mutex on windows
Copy file
Create process on windows
Delete file
Get common file path
Persist via lnk shortcut
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5e0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 0x8c
mov dword [ebp - 0x18], ebx
call fcn.00403f80
mov edx, dword [ebx + 0x5c]
add esp, 4
add eax, edx
mov ecx, ebx
push eax
call fcn.004100d1
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x402855
push 5
mov ecx, edi
call fcn.00410220
mov eax, dword [edi + 0x1c]
push 0x105
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call fcn.00403230
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041129a
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 4], esi
cmp eax, 0xa
ja case.default.0x402872
jmp dword [eax*4 + 0x4031c0]
push str.zzk_NCSTUDIO_7000F87C04A0_D4EA_11d4_88B8_0050FC09F3B0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4028a1
mov dword [ebx + 0x5c], 1
jmp 0x4031a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4031a0
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x41c938]
mov dword [ebp - 0x18], edx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x1dc]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1dc]
push eax
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
call fcn.00402310
lea edx, [ebp - 0x1dc]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040c8c5
mov al, byte [ebp - 0x1dc]
add esp, 0xc
test al, al
je 0x402929
mov ecx, dword [ebp - 0x18]
push esi
push 0x31
push ecx
call fcn.004137e8
cmp eax, 2
jne 0x402929
push eax
mov ecx, ebx
call fcn.0040d403
jmp 0x402942
mov edx, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0041122c
jmp 0x4031a0
lea eax, [ebp - 0x1c]
push str.setup.cfg
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.00411434
mov eax, dword [eax]
lea edx, [ebp - 0x2e0]
push eax
push 0x104
push edx
push 0x41db30
push str.BACKUPPATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x30]
call fcn.0041122c
lea eax, [ebp - 0x2e0]
lea ecx, [ebp - 0x14]
push eax
call fcn.0041129a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
call fcn.00403e10
add esp, 4
test al, al
jne 0x402b04
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], esi
je 0x402b04
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
jne 0x4029dd
mov edx, dword [ebp - 0x14]
push edx
call fcn.00403d10
add esp, 4
lea eax, [ebp - 0x84]
push eax
call fcn.0040ca5a
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push str.Naiky__Y__m__d__H_M_S_
push edx
lea ecx, [ebp - 0x24]
call fcn.0040ca6d
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.004113ce
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.00403d10
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call esi
test eax, eax
je 0x402aec
lea edx, [ebp - 0x1c]
push 0x41c408
lea eax, [ebp - 0x50]
push edx
push eax
call fcn.00411434
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x1dc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x50]
call fcn.0041122c
lea edi, [ebp - 0x1dc]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, esi
mov byte [ebp + ecx - 0x1db], al
jne 0x402a95
mov dword [ebp - 0x70], esi
jmp 0x402a9b
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1dc]
push 0x70
push ecx
mov dword [ebp - 0x6c], 2
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov word [ebp - 0x60], 0x214
mov dword [ebp - 0x5e], esi
mov dword [ebp - 0x5a], esi
mov dword [ebp - 0x56], str.Copy_files
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0041122c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0041122c
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x5c], 3
mov byte [ebp - 4], 0
call fcn.0041122c
jmp 0x4031a0
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x402b42
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004036a0
add esp, 4
call fcn.00403330
push eax
lea ecx, [ebp - 0x14]
call fcn.0041129a
lea ecx, [ebp - 0x14]
push str.Nc_studio.lnk
lea edx, [ebp - 0x44]
push ecx
push edx
mov byte [ebp - 4], 5
call fcn.00411434
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea ecx, [ebp - 0x44]
call fcn.0041122c
lea eax, [ebp - 0x14]
push str.Ncstudio.lnk
lea ecx, [ebp - 0x38]
push eax
push ecx
call fcn.00411434
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x38]
call fcn.0041122c
call fcn.00403430
push eax
lea ecx, [ebp - 0x14]
call fcn.00411369
lea edx, [ebp - 0x14]
push str.Nc_studio.lnk
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.00411434
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x3c]
call fcn.0041122c
lea ecx, [ebp - 0x14]
push str.Ncstudio.lnk
lea edx, [ebp - 0x4c]
push ecx
push edx
call fcn.00411434
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x4c]
call fcn.0041122c
mov eax, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x5c], 4
mov byte [ebp - 4], 0
call fcn.0041122c
jmp 0x4031a0
lea ecx, [ebp - 0x3e4]
push 0x104
push ecx
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x3e4]
push 0x40
push edx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.0041180d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00411c64
mov esi, eax
push esi
mov dword [ebp - 0x20], esi
call fcn.004107ce
add esp, 4
mov edi, eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x14], edi
push esi
push edi
call fcn.00411a87
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.004118ad
lea esi, [esi + edi - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, 6
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x94]
add ecx, 0xffffffe8
push eax
push ecx
push edx
mov dword [ebp - 4], 0
call fcn.00403620
add esp, 0xc
mov ecx, 4
lea edi, [ebp - 0x94]
lea esi, [ebp - 0x64]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x402d03
mov ecx, dword [0x41c938]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 9
call fcn.00402740
add esp, 8
call fcn.00402330
mov ecx, dword [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
mov ecx, ebx
call fcn.004031f0
mov edx, dword [ebp - 0x14]
push edx
call fcn.004107f7
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0041122c
jmp 0x4031a0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
sub eax, ecx
lea esi, [ebx + 0x74]
mov edi, ecx
sub eax, 0x18
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.004111b7
lea eax, [ebp - 0x1dc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x1dc]
lea edx, [ebp - 0x1dc]
push ecx
push 0
push 0x41c3d8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x1dc]
push 0x1001
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.0041180d
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add edi, edx
push ecx
push edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xb
call fcn.00411ac1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.004118ad
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.004107f7
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xd8]
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
mov dword [ebp - 0xd8], 0x44
mov dword [ebp - 0xac], 1
mov word [ebp - 0xa8], 5
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebx + 0x60]
lea eax, [ebp - 0xd8]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1dc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_SetTimer]
test edi, edi
jne 0x402e18
push str.ERR_203:_Create_a_process_failed_
jmp 0x403199
lea eax, [ebp - 0x1dc]
mov ecx, esi
push eax
call fcn.00411369
mov dword [ebx + 0x5c], 5
jmp 0x4031a0
mov eax, dword [ebx + 0x60]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4031a0
mov ecx, dword [ebx + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebx + 0x64]
push edx
call esi
mov eax, dword [ebx + 0x74]
lea esi, [ebx + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.004111b7
mov dword [ebx + 0x5c], 6
jmp 0x4031a0
lea eax, [ebp - 0x1c]
push str.setup.cfg
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.00411434
mov eax, dword [eax]
lea edx, [ebp - 0x3e4]
push eax
push 0x104
push edx
push 0x41db30
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x34]
call fcn.0041122c
lea eax, [ebp - 0x3e4]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.00411434
push str.langlang.ini
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
call fcn.00411434
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.0041122c
cmp dword [0x41db34], esi
jne 0x402f58
mov ecx, dword [ebp - 0x18]
push ecx
push 0x41c370
jmp 0x402f61
mov edx, dword [ebp - 0x18]
push edx
push 0x41c36c
push str.ActiveLang
push str.ActiveLang
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x5c], 7
mov byte [ebp - 4], 0
call fcn.0041122c
jmp 0x4031a0
mov eax, dword [ebx + 0x1c]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov cl, byte [0x41db30]
xor eax, eax
mov byte [ebp - 0x1dc], cl
mov ecx, 0x40
lea edi, [ebp - 0x1db]
lea edx, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.setup.cfg
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00411434
mov eax, dword [eax]
lea ecx, [ebp - 0x1dc]
push eax
push 0x104
push ecx
push 0x41db30
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x40]
call fcn.0041122c
lea edx, [ebp - 0x1dc]
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x20]
push eax
push ecx
call fcn.00411434
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0x10
push edx
call fcn.004038c0
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0041122c
mov eax, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 8
jmp 0x4031a0
lea ecx, [ebp - 0x1c]
push str.setup.cfg
lea edx, [ebp - 0x48]
push ecx
push edx
call fcn.00411434
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5ec]
push 0x104
push eax
push 0x41db30
push str.BACKUPPATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x48]
call fcn.0041122c
lea ecx, [ebp - 0x5ec]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041129a
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
push edx
call fcn.00403e10
mov eax, dword [ebp - 0x14]
add esp, 4
cmp dword [eax - 8], esi
je 0x403136
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4030bf
mov eax, dword [ebp - 0x14]
push eax
call fcn.00403d10
add esp, 4
lea ecx, [ebp - 0x2e0]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x2e0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x4e8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4e8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea edx, [ebp - 0x4e8]
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.00411434
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x2e0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x2c]
call fcn.0041122c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0041122c
mov dword [ebx + 0x5c], 9
jmp 0x4031a0
mov dword [ebx + 0x5c], 0xa
jmp 0x4031a0
mov eax, dword [ebx + 0x1c]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402370
push esi
push 0x31
push eax
call fcn.004137e8
cmp eax, 1
jne 0x403188
push 8
call fcn.004035a0
add esp, 4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc8]
jmp 0x4031a0
push str.Invalid_state_
mov ecx, ebx
call fcn.004031f0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041122c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret