Function at 0x407aaf
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
mov eax, 0x4339d8
call fcn.0041feec
mov eax, 0x3060
call fcn.0041ffc0
cmp byte [0x443063], 0
jne 0x407ae7
push str.SeRestorePrivilege
call fcn.00408704
push str.SeCreateSymbolicLinkPrivilege
call fcn.00408704
mov byte [0x443063], 1
push ebx
push esi
push edi
push 0x2418
lea ecx, [ebp - 0x28]
call fcn.004013d9
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 0x800
lea eax, [esi + 0x10fc]
push eax
lea eax, [ebp - 0x102c]
push eax
call fcn.00411928
lea eax, [ebp - 0x102c]
push eax
call fcn.00424f93
push 4
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x102c]
mov eax, edi
lea ebx, [ebp - 0x202c]
push 0x434898
push eax
call fcn.00427458
add esp, 0x10
test eax, eax
sete cl
mov byte [ebp - 0xd], cl
test eax, eax
jne 0x407b55
lea edi, [ebp - 0x1024]
test cl, cl
je 0x407b80
push 4
push str.UNC_
push edi
call fcn.00427458
add esp, 0xc
test eax, eax
jne 0x407b80
push 0x5c
pop eax
mov word [ebp - 0x202c], ax
lea ebx, [ebp - 0x202a]
add edi, 6
push edi
push ebx
call fcn.00427436
lea eax, [ebp - 0x202c]
push eax
call fcn.00424f93
mov edi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
cmp byte [edi + 0x7083], 0
jne 0x407be0
cmp byte [ebp - 0xd], 0
jne 0x407e61
lea eax, [esi + 0x10fc]
push eax
call fcn.0040d0f2
test al, al
jne 0x407e61
lea eax, [esi + 0x10fc]
push eax
push ebx
lea eax, [esi + 0x28]
push eax
push edi
call fcn.00408373
test al, al
je 0x407e61
movzx eax, byte [edi + 0x704b]
push eax
push 1
push ebx
call fcn.0040b341
push ebx
call fcn.0040b4c1
test al, al
je 0x407c17
push ebx
call fcn.0040b4d3
push eax
call fcn.0040b51f
push ebx
test al, al
je 0x407c12
call fcn.0040b41f
jmp 0x407c17
call fcn.0040b470
cmp byte [esi + 0x10e9], 0
jne 0x407ce2
cmp byte [esi + 0x20fc], 0
jne 0x407ce2
xor eax, eax
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x407c5e
push ebx
mov ecx, 0x4430c4
call fcn.004076d6
jmp 0x407e61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10f8]
cmp eax, 3
jne 0x407d18
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
movzx edi, ax
mov dword [edx], 0xa0000003
lea esi, [ecx + ecx]
mov word [edx + 0xa], si
lea eax, [edi + ecx]
lea eax, [eax*2 + 0xc]
mov word [edx + 4], ax
xor eax, eax
mov dword [edx + 6], eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00427436
lea eax, [esi + 2]
mov esi, dword [ebp - 0x28]
mov word [esi + 0xc], ax
lea eax, [edi + edi]
mov word [esi + 0xe], ax
lea eax, [ebp - 0x202c]
push eax
mov eax, dword [ebp - 0x18]
add eax, 9
lea eax, [esi + eax*2]
push eax
call fcn.00427436
add esp, 0x10
jmp 0x407d99
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407c65
lea eax, [ebp + 0xc]
xor ebx, ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x14
call fcn.00407608
push 9
mov ecx, 0x4430c4
call fcn.00407829
jmp 0x407e63
cmp eax, 2
je 0x407d26
cmp eax, 1
jne 0x407e61
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
movzx edi, ax
mov dword [edx], 0xa000000c
lea esi, [ecx + ecx]
mov word [edx + 0xa], si
lea eax, [edi + ecx]
lea eax, [eax*2 + 0x10]
mov word [edx + 4], ax
xor eax, eax
mov dword [edx + 6], eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [edx + 0x14]
push eax
call fcn.00427436
lea eax, [esi + 2]
mov esi, dword [ebp - 0x28]
mov word [esi + 0xc], ax
lea eax, [edi + edi]
mov word [esi + 0xe], ax
lea eax, [ebp - 0x202c]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0xb
lea eax, [esi + eax*2]
push eax
call fcn.00427436
movzx eax, byte [ebp - 0xd]
add esp, 0x10
xor eax, 1
mov dword [esi + 0x10], eax
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407dd3
mov esi, 0x4430c4
push ebx
mov ecx, esi
call fcn.004076d6
push 9
mov ecx, esi
call fcn.00407829
jmp 0x407e61
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
push ecx
push eax
push eax
movzx eax, word [esi + 4]
add eax, 8
push eax
push esi
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x407e6b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x15
call fcn.00407608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x407e21
cmp eax, 0x522
jne 0x407e31
call fcn.00411ad5
test al, al
jne 0x407e31
push 0x18
call fcn.0040232e
mov esi, 0x4430c4
mov ecx, esi
call fcn.00407871
push 9
mov ecx, esi
call fcn.00407829
mov edi, dword [ebp + 0x10]
push ebx
cmp byte [edi + 0x10e9], 0
je 0x407e5b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407e61
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov esi, dword [ebp - 0x28]
jmp 0x407efd
lea ecx, [ebp - 0x306c]
call fcn.0040a7bd
push edi
lea ecx, [ebp - 0x306c]
mov byte [ebp - 4], 1
call fcn.004086e3
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [edx + 0x81c0]
neg ecx
lea eax, [edi + 0x1048]
sbb ecx, ecx
and ecx, eax
lea eax, [edi + 0x1040]
push ecx
mov ecx, dword [edx + 0x81bc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [edi + 0x1038]
push ecx
mov ecx, dword [edx + 0x81b8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp - 0x306c]
call fcn.0040b032
lea ecx, [ebp - 0x306c]
call fcn.0040a880
mov eax, dword [ebp + 8]
cmp byte [eax + 0x7094], 0
jne 0x407ef0
push dword [edi + 0x24]
push ebx
call fcn.0040b8e6
lea ecx, [ebp - 0x306c]
mov bl, 1
call fcn.0040a801
test esi, esi
je 0x407f08
push esi
call fcn.00425209
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc