Function at 0x1000ef30
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c745
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x10047810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10c], 0
cmp byte [0x1004c10b], 0
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x110], ebx
jne 0x1000efb0
push str.SeRestorePrivilege
call fcn.100117b0
push str.SeCreateSymbolicLinkPrivilege
call fcn.100117b0
add esp, 8
mov byte [0x1004c10b], 1
mov eax, dword [ebx + 0x124]
lea edi, [ebx + 0x114]
xor ecx, ecx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x138], ecx
lea ebx, [eax*4 + 0x1c]
mov dword [ebp - 0x134], ecx
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x120], eax
test ebx, ebx
je 0x1000f03a
push ebx
lea ecx, [ebp - 0x138]
call fcn.10011850
mov eax, dword [ebp - 0x138]
push ebx
push 0
push eax
mov dword [ebp - 0x124], eax
call fcn.10032720
mov ecx, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], ecx
lea eax, [ecx + ebx]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
push 0
push str.___
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.100118e0
mov dword [ebp - 0x118], eax
cmp eax, 0xffffffff
je 0x1000f0a7
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 4
jb 0x1000fb07
add eax, 0xfffffffc
cmp eax, 0xffffffff
jb 0x1000f086
or eax, 0xffffffff
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1000f090
mov ecx, dword [edi]
push eax
lea eax, [ecx + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.100099a0
lea edx, [ebp - 0x28]
mov ebx, 5
jmp 0x1000f0ba
push edi
lea ecx, [ebp - 0x108]
call fcn.1000eba0
mov edx, eax
mov ebx, 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [ebp - 4], 2
test bl, 2
je 0x1000f11f
lea ecx, [ebp - 0x108]
and ebx, 0xfffffffd
call fcn.10001aa0
mov byte [ebp - 4], 3
test bl, 1
je 0x1000f162
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000f162
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f158
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fb0c
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xffffffff
je 0x1000f33e
push 0
push str.UNC_
lea ecx, [ebp - 0x40]
call fcn.100118e0
cmp eax, 0xffffffff
je 0x1000f338
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
cmp eax, 3
jb 0x1000fb11
add eax, 0xfffffffd
cmp eax, 0xffffffff
jb 0x1000f1be
or eax, 0xffffffff
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
jb 0x1000f1ca
mov ecx, dword [ebp - 0x40]
push eax
lea eax, [ecx + 6]
push eax
lea ecx, [ebp - 0xa4]
call fcn.100099a0
mov edx, dword [ebp - 0x90]
mov eax, edx
mov ecx, dword [ebp - 0x94]
sub eax, ecx
mov byte [ebp - 4], 4
cmp eax, 1
jb 0x1000f288
lea eax, [ecx + 1]
mov dword [ebp - 0x94], eax
lea ebx, [ebp - 0xa4]
cmp edx, 8
jb 0x1000f211
mov ebx, dword [ebp - 0xa4]
lea edx, [ecx + ecx]
cmp ebx, 0x1003e90e
jae 0x1000f23e
lea eax, [ebx + edx]
cmp eax, 0x1003e90c
jb 0x1000f23e
cmp ebx, 0x1003e90c
ja 0x1000f232
xor esi, esi
jmp 0x1000f243
mov esi, ebx
sub esi, 0x1003e90c
sar esi, 1
jmp 0x1000f243
mov esi, 1
lea eax, [edx + 2]
push eax
lea ecx, [ebx + 2]
push ebx
push ecx
call fcn.100321a0
add esi, esi
push esi
push 0x1003e90c
push ebx
call fcn.100321a0
mov eax, 2
lea ecx, [ebx + esi]
sub eax, esi
push eax
lea eax, [esi + 0x1003e90e]
push eax
push ecx
call fcn.100321a0
mov esi, dword [ebp - 0x128]
lea edx, [ebp - 0xa4]
add esp, 0x24
jmp 0x1000f2ad
push 1
push 0x1003e90c
push 0
mov byte [ebp - 0x10c], 0
lea ecx, [ebp - 0xa4]
push dword [ebp - 0x10c]
push 1
call fcn.10003ae0
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov word [edx], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x40]
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
call fcn.1000eca0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000f329
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f31f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fb16
push ecx
push edx
call fcn.100308ca
add esp, 8
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.10001aa0
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10c], eax
cmp byte [ebx + 0x93], 0
jne 0x1000f3a2
cmp ecx, 0xffffffff
jne 0x1000f426
push edi
call fcn.1001b850
add esp, 4
test al, al
jne 0x1000f426
push edi
sub esp, 0x18
mov ecx, esp
push esi
call fcn.10009a40
mov ebx, dword [ebp - 0x110]
lea eax, [ebx + 0x28]
push eax
push dword [ebp - 0x11c]
call fcn.10011230
add esp, 0x24
test al, al
je 0x1000f42c
mov ebx, dword [ebp - 0x11c]
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f3c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100099a0
movzx eax, byte [ebx + 0x5b]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push 1
push eax
call fcn.10017380
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x1000f45c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f452
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fb1b
jmp 0x1000f452
mov ebx, dword [ebp - 0x110]
push edi
lea eax, [ebx + 0x28]
push eax
push 0x67
call fcn.10001520
add esp, 0xc
mov eax, 1
mov ecx, 0x1004c10c
push eax
call fcn.1000e800
xor bl, bl
jmp 0x1000fa65
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f476
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100099a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
call fcn.100176f0
mov ecx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 3
mov bl, al
cmp ecx, 8
jb 0x1000f4df
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f4d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fb20
push ecx
push edx
call fcn.100308ca
add esp, 8
test bl, bl
je 0x1000f576
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f501
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100099a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.10017710
push eax
call fcn.10017800
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10001aa0
push esi
lea ecx, [ebp - 0x28]
call fcn.10009a40
test bl, bl
je 0x1000f55a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.10017530
jmp 0x1000f567
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
call fcn.10017610
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10001aa0
mov eax, dword [ebp - 0x110]
cmp byte [eax + 0xfd], 0
jne 0x1000f69a
cmp byte [eax + 0x12c], 0
jne 0x1000f69a
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1000f5de
push esi
lea ecx, [ebp - 0x28]
call fcn.10009a40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
mov ecx, 0x1004c10c
call fcn.1000e3b0
lea ecx, [ebp - 0x28]
call fcn.10001aa0
xor bl, bl
jmp 0x1000fa65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebx + 0x110]
cmp eax, 3
jne 0x1000f77b
mov eax, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x120]
movzx ecx, ax
mov eax, dword [ebp - 0x10c]
movzx edx, ax
mov dword [ebx], 0xa0000003
lea eax, [edx + ecx]
lea eax, [eax*2 + 0xc]
mov word [ebx + 4], ax
xor eax, eax
mov dword [ebx + 6], eax
lea eax, [ecx + ecx]
mov word [ebx + 0xa], ax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10c], eax
jb 0x1000f640
mov edi, dword [edi]
mov ecx, ebx
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi + 0xe], ax
test ax, ax
jne 0x1000f644
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x40]
add eax, 2
mov word [ebx + 0xc], ax
lea eax, [edx + edx]
mov word [ebx + 0xe], ax
cmp dword [ebp - 0x2c], 8
jb 0x1000f674
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x114]
lea edx, [eax*2 + 0x12]
sub edx, ecx
add edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1000f685
jmp 0x1000f833
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f6b4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100099a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
call fcn.10017360
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10001aa0
test bl, bl
jne 0x1000f5e5
xor eax, eax
mov dword [ebp - 0x84], 0x1003e4f0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x80], 0x1003e4f0
mov dword [ebp - 0x7c], 0x1003e4f0
mov dword [ebp - 0x78], 0x1003e4f0
mov dword [ebp - 0x74], 0x1003e4f0
mov dword [ebp - 0x70], 0x1003e4f0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x14
mov dword [ebp - 0x8c], 0x1003e4f0
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x4c], 2
call fcn.1000ab80
mov eax, 9
mov ecx, 0x1004c10c
push eax
call fcn.1000e800
jmp 0x1000fa65
cmp eax, 2
je 0x1000f789
cmp eax, 1
jne 0x1000f99f
mov eax, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x120]
movzx ecx, ax
mov eax, dword [ebp - 0x10c]
movzx edx, ax
mov dword [ebx], 0xa000000c
lea eax, [edx + ecx]
lea eax, [eax*2 + 0x10]
mov word [ebx + 4], ax
xor eax, eax
mov dword [ebx + 6], eax
lea eax, [ecx + ecx]
mov word [ebx + 0xa], ax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10c], eax
jb 0x1000f7cf
mov edi, dword [edi]
mov ecx, ebx
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi + 0x12], ax
test ax, ax
jne 0x1000f7d3
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x40]
add eax, 2
mov word [ebx + 0xc], ax
lea eax, [edx + edx]
mov word [ebx + 0xe], ax
cmp dword [ebp - 0x2c], 8
jb 0x1000f803
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x114]
lea edx, [eax*2 + 0x16]
sub edx, ecx
add edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1000f814
xor eax, eax
cmp dword [ebp - 0x118], 0xffffffff
sete al
mov dword [ebx + 0x10], eax
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000f88d
push esi
lea ecx, [ebp - 0x28]
call fcn.10009a40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
mov ecx, 0x1004c10c
call fcn.1000e3b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10001aa0
push 9
mov ecx, 0x1004c10c
call fcn.1000e800
xor bl, bl
jmp 0x1000fa65
push 0
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebx + 4]
push 0
push 0
add eax, 8
push eax
push ebx
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000f9a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x13c]
push eax
push 0x1003e4f0
push 0x15
call fcn.1000eb40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1000f8ea
cmp eax, 0x522
jne 0x1000f966
call fcn.100227c0
test al, al
jne 0x1000f966
xor eax, eax
mov dword [ebp - 0x8c], 0x1003e4f0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x88], 0x1003e4f0
mov dword [ebp - 0x84], 0x1003e4f0
mov dword [ebp - 0x80], 0x1003e4f0
mov dword [ebp - 0x7c], 0x1003e4f0
mov dword [ebp - 0x78], 0x1003e4f0
mov dword [ebp - 0x74], 0x1003e4f0
mov dword [ebp - 0x70], 0x1003e4f0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x18
call fcn.1000ab80
mov ecx, 0x1004c10c
call fcn.1000ab80
push 9
mov ecx, 0x1004c10c
call fcn.1000e800
mov eax, dword [ebp - 0x110]
push esi
cmp byte [eax + 0xfd], 0
je 0x1000f999
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor bl, bl
jmp 0x1000fa65
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x1000fa65
lea ecx, [ebp - 0xf0]
call fcn.10016290
mov eax, dword [ebp - 0xf0]
mov byte [ebp - 4], 0xd
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1003e220]
lea ecx, [ebp - 0xf0]
call esi
mov esi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x110]
mov dword [ebp - 0xec], edi
mov ecx, dword [esi + 0x3cc]
neg ecx
lea eax, [ebx + 0x5c]
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 0x54]
push ecx
mov ecx, dword [esi + 0x3c8]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 0x4c]
push ecx
mov ecx, dword [esi + 0x3c4]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0xf0]
call fcn.10016fe0
lea ecx, [ebp - 0xf0]
call fcn.10016570
cmp byte [esi + 0x2aa], 0
jne 0x1000fa58
push dword [ebp - 0x128]
lea ecx, [ebp - 0x28]
call fcn.10009a40
push dword [ebx + 0x24]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
call fcn.10018940
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.10001aa0
lea ecx, [ebp - 0xf0]
mov bl, 1
call fcn.100162f0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x1000fa9f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fa95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fb25
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp - 0x124]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test ecx, ecx
je 0x1000fae9
mov edx, dword [ebp - 0x12c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1000fadf
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fb25
push edx
push ecx
call fcn.100308ca
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100308d8
mov esp, ebp
pop ebp
ret
call fcn.10007600
call fcn.1003442e
call fcn.10007600
call fcn.1003442e
call fcn.1003442e
call fcn.1003442e
call fcn.1003442e
int3