Function at 0x409b5c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x439937
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x28], 0
cmp byte [0x44e073], 0
mov eax, dword [ebp + 0xd4]
mov edi, dword [ebp + 0xd8]
mov ebx, dword [ebp + 0xdc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], ebx
jne 0x409bd8
push str.SeRestorePrivilege
call fcn.0040ac11
push str.SeCreateSymbolicLinkPrivilege
call fcn.0040ac11
mov byte [0x44e073], 1
mov eax, dword [ebx + 0x12c]
lea ecx, [ebp - 0x38]
and dword [ebp - 0x38], 0
add ebx, 0x11c
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov dword [ebp - 0x18], eax
lea eax, [eax*4 + 0x1c]
push eax
call fcn.0040977f
and dword [ebp - 4], 0
mov ecx, ebx
push 0
push 0x43caf8
call fcn.0040ad7d
cmp eax, 0xffffffff
push 2
setne cl
mov byte [ebp - 0xd], cl
pop esi
je 0x409c42
lea eax, [ebp - 0x29]
push eax
push 0xffffffffffffffff
push 4
push ebx
lea ecx, [ebp + 0x80]
call fcn.0040769f
push 5
lea ecx, [ebp + 0x80]
pop eax
jmp 0x409c4f
push ebx
lea ecx, [ebp + 0x68]
call fcn.00407673
mov ecx, eax
mov eax, esi
mov dword [ebp - 0x14], eax
xor eax, eax
push ecx
lea ecx, [ebp + 0x98]
mov dword [ebp + 0x98], eax
mov dword [ebp + 0xa8], eax
mov dword [ebp + 0xac], eax
call fcn.00401a00
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
test al, 2
je 0x409c8d
and eax, 0xfffffffd
lea ecx, [ebp + 0x68]
mov dword [ebp - 0x14], eax
call fcn.00401a66
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test al, 1
je 0x409ca0
lea ecx, [ebp + 0x80]
call fcn.00401a66
mov cl, byte [ebp - 0xd]
test cl, cl
je 0x409dd1
mov esi, str.UNC_
push esi
call fcn.0042acee
cmp dword [ebp + 0xac], 8
pop ecx
lea ecx, [ebp + 0x98]
jb 0x409ccc
mov ecx, dword [ebp + 0x98]
push eax
push esi
mov esi, dword [ebp + 0xa8]
push 0
push esi
push ecx
mov dword [ebp - 0x14], esi
call fcn.004098c5
cmp eax, 0xffffffff
je 0x409d7b
xor eax, eax
mov dword [ebp + 0xb0], eax
mov dword [ebp + 0xc0], eax
mov dword [ebp + 0xc4], eax
cmp esi, 3
jb 0x40a2fa
add esi, 0xfffffffd
cmp esi, 0xffffffff
jb 0x409d11
or esi, 0xffffffff
cmp dword [ebp + 0xac], 8
lea eax, [ebp + 0x98]
jb 0x409d26
mov eax, dword [ebp + 0x98]
push esi
add eax, 6
lea ecx, [ebp + 0xb0]
push eax
call fcn.0040120c
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 4
push eax
push 0x43cb10
lea eax, [ebp + 0x50]
push eax
call fcn.00402f45
push eax
lea ecx, [ebp + 0x98]
call fcn.004025a4
lea ecx, [ebp + 0x50]
call fcn.00401a66
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401a66
mov eax, dword [ebp + 0xa8]
mov dword [ebp - 0x14], eax
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
cmp byte [eax + 0x93], 0
jne 0x409ddc
test cl, cl
jne 0x409dba
push ebx
call fcn.004119a0
test al, al
jne 0x409dba
push ebx
sub esp, 0x18
mov ecx, esp
push edi
call fcn.004014a7
mov eax, dword [ebp - 0x24]
add eax, 0x28
push eax
push dword [ebp - 0x20]
call fcn.0040a94b
test al, al
jne 0x409ddc
mov eax, dword [ebp - 0x24]
push ebx
add eax, 0x28
push eax
push 0x67
call fcn.004032d2
xor eax, eax
inc eax
jmp 0x409f6a
mov eax, dword [ebp + 0xa8]
mov dword [ebp - 0x14], eax
jmp 0x409d7e
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
movzx eax, byte [eax + 0x5b]
push eax
xor eax, eax
inc eax
push eax
lea eax, [ebp + 0xb0]
push eax
call fcn.0040eaf3
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401a66
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 6
push eax
call fcn.0040ed0d
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00401a66
test bl, bl
je 0x409eb8
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 7
push eax
call fcn.0040ed1f
push eax
call fcn.0040edc6
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00401a66
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
test bl, bl
je 0x409e99
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 8
push eax
call fcn.0040ebb9
jmp 0x409ea9
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 9
push eax
call fcn.0040ec63
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401a66
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x101], 0
jne 0x409f26
cmp byte [eax + 0x134], 0
jne 0x409f26
xor eax, eax
xor ebx, ebx
push eax
push 0x80
inc ebx
push ebx
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x409f1d
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xb
push eax
mov ecx, 0x44e0c8
call fcn.004092a9
lea ecx, [ebp + 0xb0]
call fcn.00401a66
jmp 0x40a19c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409f78
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040eadd
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00401a66
test bl, bl
jne 0x409f75
lea eax, [ebp - 0x1c]
push eax
push 0x43c6c8
push 0x14
call fcn.00409933
push 9
pop eax
push eax
mov ecx, 0x44e0c8
jmp 0x40a105
xor ebx, ebx
inc ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x118]
cmp eax, 3
jne 0x40a012
mov eax, dword [ebp - 0x18]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov dword [ebp - 0x28], eax
add eax, ecx
mov dword [esi], 0xa0000003
lea eax, [eax*2 + 0xc]
mov word [esi + 4], ax
xor eax, eax
mov dword [esi + 6], eax
lea eax, [ecx + ecx]
mov word [esi + 0xa], ax
mov dword [ebp - 0x14], eax
lea eax, [edx + 0x11c]
cmp dword [eax + 0x14], 8
jb 0x409fc9
mov eax, dword [eax]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0042ae06
mov eax, dword [ebp - 0x14]
add eax, 2
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x28]
add eax, eax
mov word [esi + 0xe], ax
lea eax, [ebp + 0x98]
cmp dword [ebp + 0xac], 8
pop ecx
pop ecx
jb 0x409ffd
mov eax, dword [ebp + 0x98]
push eax
mov eax, dword [ebp - 0x18]
add eax, 9
lea eax, [esi + eax*2]
push eax
call fcn.0042ae06
jmp 0x40a0ab
cmp eax, 2
je 0x40a01f
cmp eax, ebx
jne 0x40a19c
mov eax, dword [ebp - 0x18]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov dword [ebp - 0x14], eax
add eax, ecx
mov dword [esi], 0xa000000c
lea eax, [eax*2 + 0x10]
mov word [esi + 4], ax
xor eax, eax
mov dword [esi + 6], eax
lea eax, [ecx + ecx]
mov word [esi + 0xa], ax
mov dword [ebp - 0x28], eax
lea eax, [edx + 0x11c]
cmp dword [eax + 0x14], 8
jb 0x40a05e
mov eax, dword [eax]
push eax
lea eax, [esi + 0x14]
push eax
call fcn.0042ae06
mov eax, dword [ebp - 0x28]
add eax, 2
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x14]
add eax, eax
mov word [esi + 0xe], ax
lea eax, [ebp + 0x98]
cmp dword [ebp + 0xac], 8
pop ecx
pop ecx
jb 0x40a092
mov eax, dword [ebp + 0x98]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0xb
lea eax, [esi + eax*2]
push eax
call fcn.0042ae06
movzx eax, byte [ebp - 0xd]
xor eax, ebx
mov dword [esi + 0x10], eax
pop ecx
pop ecx
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 0xffffffff
jne 0x40a10f
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a7
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xc
mov ebx, 0x44e0c8
push eax
mov ecx, ebx
call fcn.004092a9
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401a66
push 9
mov ecx, ebx
call fcn.004094b8
jmp 0x40a19c
xor edx, edx
lea eax, [ebp - 0x3c]
push edx
push eax
movzx eax, word [esi + 4]
push edx
push edx
add eax, 8
push eax
push esi
push 0x900a4
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40a1a3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
push 0x43c6c8
push 0x15
call fcn.00409933
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40a15c
cmp eax, 0x522
jne 0x40a16c
call fcn.00416beb
test al, al
jne 0x40a16c
push 0x18
call fcn.004032a1
mov ebx, 0x44e0c8
mov ecx, ebx
call fcn.00409500
push 9
mov ecx, ebx
call fcn.004094b8
mov eax, dword [ebp - 0x24]
push edi
cmp byte [eax + 0x101], 0
je 0x40a196
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40a19c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x40a247
lea ecx, [ebp]
call fcn.0040dd72
push dword [ebp - 0x18]
lea ecx, [ebp]
mov byte [ebp - 4], 0xd
call fcn.0040abf0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1d8]
neg ecx
lea eax, [edx + 0x60]
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [eax + 0x1d4]
lea eax, [edx + 0x58]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [eax + 0x1d0]
lea eax, [edx + 0x50]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp]
call fcn.0040e772
lea ecx, [ebp]
call fcn.0040de50
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xa8], 0
jne 0x40a23f
push edi
lea ecx, [ebp + 0x80]
call fcn.004014a7
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xe
push dword [eax + 0x24]
lea eax, [ebp + 0x80]
push eax
call fcn.0040f58b
lea ecx, [ebp + 0x80]
call fcn.00401a66
lea ecx, [ebp]
call fcn.0040ddc7
mov eax, dword [ebp + 0xac]
mov edi, 0x1000
cmp eax, 8
jb 0x40a28a
mov ecx, dword [ebp + 0x98]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp eax, edi
jb 0x40a281
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.00425726
pop ecx
pop ecx
and dword [ebp + 0xa8], 0
xor eax, eax
mov dword [ebp + 0xac], 7
mov word [ebp + 0x98], ax
test esi, esi
je 0x40a2d3
mov eax, dword [ebp - 0x30]
sub eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
cmp eax, edi
jb 0x40a2ca
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push eax
push esi
call fcn.00425726
pop ecx
pop ecx
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 + 0xc8]
xor ecx, ebp
call fcn.00425734
add ebp, 0xcc
leave
ret 0xc
call fcn.004058cb
int3