Function at 0x10004ba0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10089f72
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x100a5428]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5428]
xor eax, esp
push eax
lea eax, [esp + 0x368]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov esi, ecx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], ax
mov dword [esp + 0x370], edi
push 8
mov dword [esp + 0x20], edi
call fcn.1007608d
add esp, 4
cmp eax, edi
je 0x10005837
mov dword [esp + 0x1c], eax
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov dword [edx], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov byte [esp + 0x370], 3
cmp dword [esi + 0x14], 8
jb 0x10004c6e
mov eax, dword [esi]
jmp 0x10004c70
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10004cae
push str.Directory_not_present
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f70
add esp, 4
lea esi, [esp + 0x1c]
call fcn.10006890
mov eax, dword [esp + 0x1c]
push eax
call fcn.10076031
mov dword [esp + 0x20], edi
jmp 0x100054f2
xor edx, edx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], edi
mov word [esp + 0x80], dx
push 0xffffffffffffffff
push edi
push esi
lea ecx, [esp + 0x8c]
mov byte [esp + 0x37c], 4
call fcn.10001070
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x20]
call fcn.100067b0
lea ecx, [esp + 0x80]
lea edi, [esp + 0x48]
call fcn.10006450
cmp dword [esp + 0x2c], 0
je 0x10005443
mov edi, edi
lea eax, [esp + 0x74]
lea edx, [esp + 0x1c]
call fcn.10006c90
mov esi, eax
lea eax, [esp + 0x68]
call fcn.10006ff0
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
jne 0x10004d34
xor ecx, ecx
jmp 0x10004d36
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x10004d42
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x8c]
call fcn.10001070
push 0x100929f4
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xdc]
push eax
call fcn.10007280
add esp, 0xc
push eax
mov eax, 0x100929f0
lea esi, [esp + 0xa0]
mov byte [esp + 0x374], 5
call fcn.10007370
add esp, 4
mov esi, eax
lea ecx, [esp + 0xb8]
cmp ecx, esi
je 0x10004e27
cmp dword [esp + 0xcc], 8
jb 0x10004dbd
mov edx, dword [esp + 0xb8]
push edx
call fcn.10076031
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], ax
cmp dword [esi + 0x14], 8
jae 0x10004dfb
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0xbc]
push esi
push edx
call fcn.10075cd0
add esp, 0xc
jmp 0x10004e06
mov eax, dword [esi]
mov dword [esp + 0xb8], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0xc8], ecx
mov edx, dword [esi + 0x14]
mov dword [esp + 0xcc], edx
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x10004e2c
mov edi, 7
mov esi, 8
cmp dword [esp + 0xb0], esi
jb 0x10004e4a
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.10076031
add esp, 4
xor edx, edx
mov byte [esp + 0x370], 4
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
cmp dword [esp + 0xe8], esi
jb 0x10004e83
mov eax, dword [esp + 0xd4]
push eax
call fcn.10076031
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10004eca
mov ecx, dword [esp + 0x28]
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
ja 0x10004e9d
sub eax, ecx
mov edx, dword [esp + 0x20]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x14], 8
jb 0x10004eb5
mov eax, dword [esi]
push eax
call fcn.10076031
add esp, 4
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], ax
dec dword [esp + 0x2c]
jne 0x10004eca
mov dword [esp + 0x28], ebx
cmp dword [esp + 0xcc], 8
mov eax, dword [esp + 0xb8]
jae 0x10004ee2
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x10c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x64], eax
cmp eax, 0xffffffff
je 0x10005471
mov edi, edi
mov ecx, 0x100929f8
lea eax, [esp + 0x138]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004f36
test dx, dx
je 0x10004f32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004f36
add eax, 4
add ecx, 4
test dx, dx
jne 0x10004f10
xor eax, eax
jmp 0x10004f3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000527f
mov ecx, 0x100929fc
lea eax, [esp + 0x138]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004f76
test dx, dx
je 0x10004f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x10004f50
xor eax, eax
jmp 0x10004f7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000527f
test byte [esp + 0x10c], 0x10
je 0x1000527f
push 0x100929f4
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xf8]
push eax
call fcn.10007280
add esp, 0xc
push eax
lea eax, [esp + 0x13c]
lea esi, [esp + 0xa0]
mov byte [esp + 0x374], 7
call fcn.10007370
add esp, 4
mov edi, eax
mov byte [esp + 0x370], 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
inc ecx
cmp eax, ecx
ja 0x10004ff1
lea ebx, [esp + 0x1c]
call fcn.10006cb0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
add esi, dword [esp + 0x28]
cmp eax, esi
ja 0x10004fff
sub esi, eax
mov edx, dword [esp + 0x20]
xor ebx, ebx
cmp dword [edx + esi*4], ebx
jne 0x10005023
push 0x1c
call fcn.1007608d
add esp, 4
cmp eax, ebx
je 0x10005535
mov ecx, dword [esp + 0x20]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x20]
mov esi, dword [edx + esi*4]
cmp esi, ebx
je 0x100050ab
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ebx, [eax + 8]
cmp esi, edi
je 0x100050b0
cmp dword [esi + 0x14], ebx
jb 0x10005058
mov eax, dword [esi]
push eax
call fcn.10076031
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
cmp dword [edi + 0x14], ebx
jae 0x10005084
mov eax, dword [edi + 0x10]
lea edx, [eax + eax + 2]
push edx
push edi
push esi
call fcn.10075cd0
add esp, 0xc
jmp 0x1000508a
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], ecx
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
jmp 0x100050b0
mov ebx, 8
inc dword [esp + 0x2c]
cmp dword [esp + 0xb0], ebx
jb 0x100050cd
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.10076031
add esp, 4
xor edx, edx
mov byte [esp + 0x370], 4
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], dx
cmp dword [esp + 0x104], ebx
jb 0x1000510e
mov eax, dword [esp + 0xf0]
push eax
call fcn.10076031
add esp, 4
push 0x100929f4
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xf8]
push edx
call fcn.10007280
add esp, 0xc
push eax
lea eax, [esp + 0x13c]
lea esi, [esp + 0xa0]
mov byte [esp + 0x374], 0xa
call fcn.10007370
add esp, 4
mov ecx, eax
lea edi, [esp + 0x48]
mov byte [esp + 0x370], 0xb
call fcn.10006340
cmp dword [esp + 0xb0], ebx
jb 0x10005176
mov eax, dword [esp + 0x9c]
push eax
call fcn.10076031
add esp, 4
xor edi, edi
xor ecx, ecx
mov byte [esp + 0x370], 4
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], cx
cmp dword [esp + 0x104], ebx
jb 0x100051b5
mov edx, dword [esp + 0xf0]
push edx
call fcn.10076031
add esp, 4
push 0x100929f4
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.10007280
add esp, 0xc
push eax
lea eax, [esp + 0x13c]
lea esi, [esp + 0xd8]
mov byte [esp + 0x374], 0xc
call fcn.10007370
add esp, 4
mov byte [esp + 0x370], 0xe
cmp dword [esp + 0xb0], ebx
jb 0x10005212
mov edx, dword [esp + 0x9c]
push edx
call fcn.10076031
add esp, 4
xor eax, eax
mov word [esp + 0x9c], ax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], edi
cmp dword [esp + 0xe8], ebx
jae 0x10005245
lea eax, [esp + 0xd4]
push eax
push str.Directory_to_delete:_ls
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f10
add esp, 8
mov byte [esp + 0x370], 4
cmp dword [esp + 0xe8], 8
jb 0x1000527f
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.10076031
add esp, 4
mov bl, 0x10
test byte [esp + 0x10c], bl
jne 0x10005403
push 0x100929f4
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xf8]
push eax
call fcn.10007280
add esp, 0xc
push eax
lea eax, [esp + 0x13c]
lea esi, [esp + 0xd8]
mov byte [esp + 0x374], 0xf
call fcn.10007370
add esp, 4
mov ecx, eax
lea edi, [esp + 0x38]
mov byte [esp + 0x370], bl
call fcn.10006340
mov edi, 8
cmp dword [esp + 0xe8], edi
jb 0x100052fa
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.10076031
add esp, 4
xor ebx, ebx
xor edx, edx
mov byte [esp + 0x370], 4
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], dx
cmp dword [esp + 0x104], edi
jb 0x10005339
mov eax, dword [esp + 0xf0]
push eax
call fcn.10076031
add esp, 4
push 0x100929f4
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.10007280
add esp, 0xc
push eax
lea eax, [esp + 0x13c]
lea esi, [esp + 0xa0]
mov byte [esp + 0x374], 0x11
call fcn.10007370
add esp, 4
mov byte [esp + 0x370], 0x13
cmp dword [esp + 0xe8], edi
jb 0x10005396
mov eax, dword [esp + 0xd4]
push eax
call fcn.10076031
add esp, 4
mov eax, dword [esp + 0x9c]
xor ecx, ecx
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], cx
cmp dword [esp + 0xb0], edi
jae 0x100053c9
lea eax, [esp + 0x9c]
push eax
push str.File_to_delete:_ls
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f10
add esp, 8
mov byte [esp + 0x370], 4
cmp dword [esp + 0xb0], 8
jb 0x10005403
mov edx, dword [esp + 0x9c]
push edx
call fcn.10076031
add esp, 4
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10004f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x1000555e
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], 0
jne 0x10004d10
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov esi, ebx
cmp ebx, edi
je 0x100055a4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10005460
cmp dword [esi + 0x14], 8
jb 0x10005590
mov eax, dword [esi]
jmp 0x10005592
cmp dword [esp + 0x94], 8
jb 0x1000548b
mov ecx, dword [esp + 0x80]
push ecx
call fcn.10076031
add esp, 4
mov dword [esp + 0x94], edi
mov esi, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], dx
cmp esi, ebx
je 0x100054bf
mov edi, dword [esp + 0x4c]
mov eax, esi
call fcn.10006fb0
push esi
call fcn.10076031
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x100054db
mov edi, dword [esp + 0x3c]
mov eax, esi
call fcn.10006fb0
push esi
call fcn.10076031
add esp, 4
lea esi, [esp + 0x1c]
call fcn.10006890
mov eax, dword [esp + 0x1c]
push eax
call fcn.10076031
mov dword [esp + 0x20], ebx
add esp, 4
cmp dword [esp + 0xcc], 8
jb 0x1000550f
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.10076031
add esp, 4
xor al, al
mov ecx, dword [esp + 0x368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], ebx
call fcn.10075c16
push 0x100a119c
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], vtable.std::bad_alloc.0
call fcn.1007750b
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x94], 8
jb 0x1000557e
mov ecx, dword [esp + 0x80]
push ecx
call fcn.10076031
add esp, 4
mov dword [esp + 0x94], 7
xor ebx, ebx
jmp 0x10005492
mov eax, esi
push eax
call ebx
test eax, eax
je 0x100055d7
add esi, 0x1c
cmp esi, edi
jne 0x10005460
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
push eax
push ebx
mov ecx, esi
call fcn.10007450
add esp, 8
mov edi, ebx
cmp ebx, esi
je 0x100056b6
cmp dword [edi + 0x14], 8
jb 0x1000569a
mov eax, dword [edi]
jmp 0x1000569c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_remove_file:_d_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f70
add esp, 8
cmp dword [esp + 0x94], 8
jb 0x1000560f
mov edx, dword [esp + 0x80]
push edx
call fcn.10076031
add esp, 4
mov esi, dword [esp + 0x48]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], ax
cmp esi, ebx
je 0x10005649
mov edi, dword [esp + 0x4c]
mov eax, esi
call fcn.10006fb0
push esi
call fcn.10076031
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x10005665
mov edi, dword [esp + 0x3c]
mov eax, esi
call fcn.10006fb0
push esi
call fcn.10076031
add esp, 4
lea esi, [esp + 0x1c]
call fcn.10006890
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10076031
add esp, 4
cmp dword [esp + 0xcc], 8
mov dword [esp + 0x1c], ebx
jb 0x1000550f
mov edx, dword [esp + 0xb8]
push edx
jmp 0x10005507
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x10005764
add edi, 0x1c
cmp edi, esi
jne 0x100055c6
cmp dword [esp + 0x94], 8
jb 0x100056d0
mov edx, dword [esp + 0x80]
push edx
call fcn.10076031
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
test ebx, ebx
je 0x10005706
mov edi, esi
mov eax, ebx
call fcn.10006fb0
push ebx
call fcn.10076031
add esp, 4
cmp dword [esp + 0x38], 0
je 0x10005725
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, esi
call fcn.10006fb0
push esi
call fcn.10076031
add esp, 4
lea esi, [esp + 0x1c]
call fcn.10006890
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10076031
add esp, 4
cmp dword [esp + 0xcc], 8
mov dword [esp + 0x1c], 0
jb 0x1000575d
mov edx, dword [esp + 0xb8]
push edx
call fcn.10076031
add esp, 4
mov al, 1
jmp 0x10005511
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_remove_directory:_d_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f70
add esp, 8
cmp dword [esp + 0x94], 8
jb 0x1000579c
mov ecx, dword [esp + 0x80]
push ecx
call fcn.10076031
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], 0
mov word [esp + 0x80], dx
cmp dword [esp + 0x48], edx
je 0x100057fb
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x14], 8
jb 0x100057d8
mov eax, dword [edi]
push eax
call fcn.10076031
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
mov word [edi], cx
add edi, 0x1c
cmp edi, esi
jne 0x100057c7
mov edx, dword [esp + 0x48]
push edx
call fcn.10076031
add esp, 4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10005817
mov edi, dword [esp + 0x3c]
mov eax, esi
call fcn.10006fb0
push esi
call fcn.10076031
add esp, 4
lea esi, [esp + 0x1c]
call fcn.10006890
mov eax, dword [esp + 0x1c]
push eax
call fcn.10076031
mov dword [esp + 0x20], 0
jmp 0x100054f2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], edi
call fcn.10075c16
push 0x100a119c
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], vtable.std::bad_alloc.0
call fcn.1007750b
int3