Function at 0x40a9bf
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x108
mov eax, 0x4399ae
call fcn.00438b46
mov esi, edx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0xf4], ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x100], edi
cmp byte [0x44a7c4], bl
jne 0x40aa16
mov ecx, str.SeRestorePrivilege
call fcn.0040a93a
mov ecx, str.SeCreateSymbolicLinkPrivilege
call fcn.0040a93a
mov byte [0x44a7c4], 1
lea eax, [edi + 0x11c]
mov ecx, eax
mov dword [ebp - 0xf8], eax
call fcn.00401891
mov dword [ebp - 0xec], eax
push ecx
lea ecx, [ebp - 0x114]
lea eax, [eax*4 + 0x1c]
push eax
call fcn.0040b3b0
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.0040188a
mov ecx, eax
lea ebx, [edi + 0x11c]
push ecx
mov dword [ebp - 0xe0], ecx
mov ecx, ebx
push 0x4428b8
call fcn.0040b40f
mov dword [ebp - 0xf0], eax
cmp eax, 0xffffffff
je 0x40aa92
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x74]
mov ecx, ebx
push eax
call fcn.0040859e
mov ecx, eax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, ebx
jmp 0x40aaa6
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00408cf5
mov ecx, eax
push 2
pop eax
xor ebx, ebx
mov dword [ebp - 4], eax
inc ebx
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
call fcn.00408cf5
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xe4]
test al, 2
je 0x40aae3
and eax, 0xfffffffd
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xe4], eax
call fcn.00401e5c
mov eax, dword [ebp - 0xe4]
mov byte [ebp - 4], 5
test bl, al
je 0x40aaf3
lea ecx, [ebp - 0x74]
call fcn.00401e5c
mov edx, dword [ebp - 0xf0]
cmp edx, 0xffffffff
je 0x40ab5c
push ecx
push str.UNC_
lea ecx, [ebp - 0x44]
call fcn.0040b40f
cmp eax, 0xffffffff
je 0x40ab56
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040859e
push eax
mov edx, 0x4428d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00405d9a
push eax
lea ecx, [ebp - 0x44]
call fcn.00403060
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.00401e5c
mov edx, dword [ebp - 0xf0]
lea ecx, [ebp - 0x44]
call fcn.00401891
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x93], 0
jne 0x40abc8
cmp edx, 0xffffffff
jne 0x40abb1
lea ecx, [edi + 0x11c]
call fcn.004115e7
test al, al
jne 0x40abb1
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00401d16
mov ecx, dword [ebp - 0xf4]
lea eax, [edi + 0x11c]
push eax
lea edx, [edi + 0x28]
call fcn.0040b1e1
test al, al
jne 0x40abc8
lea eax, [edi + 0x11c]
push eax
push 0x67
lea edx, [edi + 0x28]
pop ecx
call fcn.00405d5a
jmp 0x40ad04
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
push ecx
mov dl, bl
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.0040f0ac
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401e5c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0040f2f4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov bl, al
call fcn.00401e5c
test bl, bl
je 0x40ac70
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.0040f325
mov ecx, eax
call fcn.0040f302
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov bl, al
call fcn.00401e5c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
test bl, bl
je 0x40ac58
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.0040f622
jmp 0x40ac64
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.0040f5c1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401e5c
cmp byte [edi + 0x101], 0
jne 0x40accb
cmp byte [edi + 0x134], 0
jne 0x40accb
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40acc2
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
push eax
call fcn.00409ff4
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
jmp 0x40af24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ad0c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.0040f09a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov bl, al
call fcn.00401e5c
test bl, bl
jne 0x40ad0a
lea eax, [ebp - 0xfc]
push eax
push 0x14
pop ecx
call fcn.0040b538
push 9
pop ebx
push ebx
jmp 0x40ae84
xor ebx, ebx
mov eax, dword [edi + 0x118]
cmp eax, 3
jne 0x40ada4
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xe0]
movzx edx, ax
mov eax, dword [ebp - 0xe8]
movzx edi, ax
mov dword [ecx], 0xa0000003
lea esi, [edx + edx]
mov word [ecx + 0xa], si
lea eax, [edi + edx]
lea eax, [eax*2 + 0xc]
mov word [ecx + 4], ax
xor eax, eax
mov dword [ecx + 6], eax
mov ecx, dword [ebp - 0xf8]
call fcn.0040126f
push eax
mov eax, dword [ebp - 0xe0]
add eax, 0x10
push eax
call fcn.004288b5
mov edx, dword [ebp - 0xe0]
lea eax, [esi + 2]
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
mov word [edx + 0xc], ax
lea eax, [edi + edi]
mov word [edx + 0xe], ax
call fcn.0040126f
push eax
mov eax, dword [ebp - 0xec]
add edx, 0x12
lea eax, [edx + eax*2]
push eax
call fcn.004288b5
jmp 0x40ae3f
cmp eax, 2
je 0x40adb2
cmp eax, 1
jne 0x40af24
mov eax, dword [ebp - 0xec]
mov edx, dword [ebp - 0xe0]
movzx ecx, ax
mov eax, dword [ebp - 0xe8]
movzx edi, ax
mov dword [edx], 0xa000000c
lea esi, [ecx + ecx]
mov word [edx + 0xa], si
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0xf8]
lea eax, [eax*2 + 0x10]
mov word [edx + 4], ax
xor eax, eax
mov dword [edx + 6], eax
call fcn.0040126f
push eax
lea eax, [edx + 0x14]
push eax
call fcn.004288b5
lea eax, [esi + 2]
mov esi, dword [ebp - 0xe0]
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
mov word [esi + 0xc], ax
lea eax, [edi + edi]
mov word [esi + 0xe], ax
call fcn.0040126f
push eax
mov eax, dword [ebp - 0xec]
add eax, 0xb
lea eax, [esi + eax*2]
push eax
call fcn.004288b5
xor eax, eax
cmp dword [ebp - 0xf0], 0xffffffff
sete al
mov dword [esi + 0x10], eax
mov edi, dword [ebp - 0x104]
pop ecx
pop ecx
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae93
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
call fcn.00409ff4
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
push 9
mov ecx, 0x44a850
call fcn.0040a0fe
jmp 0x40af24
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x108]
push ebx
push eax
push ebx
movzx eax, word [ecx + 4]
push ebx
add eax, 8
push eax
push ecx
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40af2b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xfc]
push eax
push 0x15
pop ecx
call fcn.0040b538
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40aee4
cmp eax, 0x522
jne 0x40aef5
call fcn.0041716d
test al, al
jne 0x40aef5
push 0x18
pop ecx
call fcn.00405dc5
call fcn.0040a1c6
push 9
mov ecx, 0x44a850
call fcn.0040a0fe
mov esi, dword [ebp - 0x100]
push edi
cmp byte [esi + 0x101], 0
je 0x40af1e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40af24
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
jmp 0x40afd0
lea ecx, [ebp - 0xdc]
call fcn.0040e39f
push esi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xf
call fcn.0040b85b
mov ebx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0x100]
mov ecx, dword [ebx + 0x1d8]
neg ecx
lea eax, [esi + 0x60]
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x58]
push ecx
mov ecx, dword [ebx + 0x1d4]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x50]
push ecx
mov ecx, dword [ebx + 0x1d0]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0040ee5c
lea ecx, [ebp - 0xdc]
call fcn.0040e760
cmp byte [ebx + 0xa8], 0
jne 0x40afc3
mov esi, dword [esi + 0x24]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00401d16
mov edx, esi
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
call fcn.0040f381
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
lea ecx, [ebp - 0xdc]
mov bl, 1
call fcn.0040e40f
lea ecx, [ebp - 0x44]
call fcn.00401e5c
lea ecx, [ebp - 0x114]
call fcn.0040303b
mov al, bl
call fcn.00438af5
ret 4