Function at 0x40b660
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47668a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c8
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [esp + 0x5cc], eax
xor eax, eax
mov ecx, 0x104
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
push 0x410
lea eax, [esp + 0x1b4]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405920
mov edx, dword [esp + 0x10]
push 0x5c
push edx
mov dword [esp + 0x5e4], ebx
call fcn.004577cd
add esp, 8
cmp eax, ebx
jne 0x40b6f0
or eax, 0xffffffff
jmp 0x40b6f4
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.00408600
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e0], 1
call fcn.00402990
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b73b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Registry_Backups.reg
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00405860
add esp, 0xc
mov byte [esp + 0x5dc], 2
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x70]
push eax
push ecx
mov byte [esp + 0x5e4], 5
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40b898
lea ebx, [ebx]
lea eax, [esp + 0x9c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7c0
sub eax, edx
push eax
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x24]
call fcn.00402770
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00408600
mov eax, dword [eax]
push str.FULL
push eax
call fcn.004578d3
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40b87d
mov edx, dword [esp + 0x2c]
test edx, edx
mov ebx, dword [esp + 0x30]
je 0x40b868
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b868
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push ebx
call fcn.004089c0
add esp, 0x14
add ebx, 4
mov dword [esp + 0x30], ebx
jmp 0x40b87d
lea eax, [esp + 0x1c]
push eax
push 1
push ecx
mov eax, esp
lea ecx, [esp + 0x34]
mov dword [eax], ebx
call fcn.0040b2b0
lea ecx, [esp + 0x70]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b7b0
mov ebx, dword [esp + 0x3c]
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.Full_BackupsFULL
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405860
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e0], 6
call fcn.00402990
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x70]
push eax
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40b9f4
mov edi, dword [esp + 0x24]
lea esp, [esp]
lea eax, [esp + 0x9c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b920
sub eax, edx
push eax
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x24]
call fcn.00402770
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00408600
mov eax, dword [eax]
push str.FULL
push eax
call fcn.004578d3
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40b9d9
mov edx, dword [esp + 0x3c]
test edx, edx
mov ebx, dword [esp + 0x40]
je 0x40b9c4
mov ecx, dword [esp + 0x44]
mov eax, ebx
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b9c4
push edi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push ebx
call fcn.004089c0
add esp, 0x14
add ebx, 4
mov dword [esp + 0x40], ebx
jmp 0x40b9d9
lea edx, [esp + 0x1c]
push edx
push 1
push ecx
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [eax], ebx
call fcn.0040b2b0
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b910
mov ebx, dword [esp + 0x3c]
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x14], 0
mov esi, ebx
test ebx, ebx
je 0x40bd39
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, ebx
sar eax, 2
cmp ecx, eax
jae 0x40bd1c
mov byte [esp + 0x1b], 0
xor ebx, ebx
jmp 0x40ba30
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x40ba3c
xor eax, eax
jmp 0x40ba45
mov eax, dword [esp + 0x30]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x40ba64
mov eax, dword [ecx + ebx*4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.004578d3
add esp, 8
test eax, eax
jne 0x40ba61
mov byte [esp + 0x1b], 1
inc ebx
jmp 0x40ba30
mov al, byte [esp + 0x1b]
test al, al
jne 0x40bd07
push str.Full_Backups_
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.00405860
push esi
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x5f4], 7
call fcn.00408720
push 0x47ef64
push eax
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0x600], 8
call fcn.00405860
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x24
push eax
call edi
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40badc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Full_Backups_
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00405860
push esi
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x5f4], 9
call fcn.00408720
push str.CUSOFTWARE
push eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x600], 0xa
call fcn.00405860
mov eax, dword [eax]
add esp, 0x24
push eax
call edi
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Full_Backups_
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.00405860
push esi
push eax
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x5f4], 0xb
call fcn.00408720
push str.HARDWARE
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x600], 0xc
call fcn.00405860
mov eax, dword [eax]
add esp, 0x24
push eax
call edi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Full_Backups_
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00405860
push esi
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x5f4], 0xd
call fcn.00408720
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bce1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x14], ecx
add esi, 4
jmp 0x40ba05
cmp ebx, edi
mov esi, ebx
je 0x40bd30
mov ecx, esi
call fcn.00413d20
add esi, 4
cmp esi, edi
jne 0x40bd22
push ebx
call fcn.0046b3f3
add esp, 4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40bd67
mov edi, dword [esp + 0x30]
cmp ebx, edi
mov esi, ebx
je 0x40bd5e
jmp 0x40bd50
mov ecx, esi
call fcn.00413d20
add esi, 4
cmp esi, edi
jne 0x40bd50
push ebx
call fcn.0046b3f3
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x5dc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x5dc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x5d4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5cc]
xor ecx, dword [ebp + 4]
call fcn.00456aa7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret