Function at 0x40d9e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x421024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x40db75
cmp dword [ebp + 0x34], 0x10
lea esi, [ebp + 0x20]
cmovae esi, dword [ebp + 0x20]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x44], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], eax
cmp dword [edx + 0x14], 0x10
jb 0x40da59
mov eax, dword [edx]
jmp 0x40da5b
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x40da67
xor ecx, ecx
jmp 0x40da79
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da70
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00403080
mov byte [ebp - 4], 2
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae esi, dword [ebp + 8]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x40daae
mov eax, dword [edx]
jmp 0x40dab0
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x40dabc
xor ecx, ecx
jmp 0x40daca
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dac1
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00403080
mov byte [ebp - 4], 1
call fcn.0040dbf0
add esp, 0x30
test al, al
je 0x40db1f
cmp dword [ebp + 0x38], 0
je 0x40db95
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push str.Delete_file_:__s
push str.stealth_manager
call fcn.00401b30
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 0x10
jmp 0x40db95
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 8]
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
lea edx, [ebp + 8]
lea ecx, [ebp + 0x20]
sete al
cmp dword [ebp + 0x1c], 0x10
movzx eax, al
cmovae edx, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
push eax
cmovae ecx, dword [ebp + 0x20]
push edx
push ecx
push str.Copy_file__s_to__s_:__d
push str.stealth_manager
call fcn.00401b30
add esp, 0x14
jmp 0x40db95
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 8]
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x40dba7
inc eax
push eax
push dword [ebp + 8]
call fcn.00403580
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x40dbcb
inc eax
push eax
push dword [ebp + 0x20]
call fcn.00403580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414132
mov esp, ebp
pop ebp
ret 0x34