Function at 0x401f30
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x424a61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
mov ebx, dword [esp + 0x230]
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + ebx*4]
mov eax, dword [0x42f48c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x234], 0
mov dword [esp + 0x10], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [edx + 0x10]
mov byte [esp + 0x234], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00419904
mov eax, dword [esp + 0x240]
mov byte [esp + 0x234], 2
test eax, eax
je 0x401fc4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00418822
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
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, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsA]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call fcn.00419a1f
push 0x42f338
lea ecx, [esp + 0x14]
call fcn.00418d71
push 0x42f338
lea ecx, [esp + 0x14]
call fcn.00418d1e
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
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, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call fcn.00419a1f
push 0
push ebx
mov ecx, ebp
call fcn.00401a70
mov eax, dword [esp + 0x10]
push eax
push str.exe_path:__s
call fcn.00403230
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push str..backup
push ecx
push edx
call fcn.00419ac5
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push eax
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x1c]
call fcn.004198da
mov ecx, dword [ebp + 0x30]
push ecx
push str.own_exe_path:__s
call fcn.00403230
mov eax, dword [ebp + 0x30]
add esp, 8
push 0
mov edx, dword [esp + 0x14]
push edx
push eax
call esi
mov eax, dword [ebp + 0x30]
push eax
push str.delete_own_exe_path:__s
call fcn.00403230
mov eax, dword [ebp + 0x30]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, ebp
call fcn.00401a10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.daemon.dat
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, [esp + 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x128]
push edx
push str.daemon.dat_path:__s
call fcn.00403230
add esp, 4
lea eax, [esp + 0x12c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00419904
push ebx
mov ecx, ebp
call fcn.00401eb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 1
call fcn.004198da
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 0
call fcn.004198da
lea ecx, [esp + 0x18]
mov dword [esp + 0x234], 0xffffffff
call fcn.004198da
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x228
ret 8