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

Disassembly:
push 0xffffffffffffffff
push 0x4fc766
mov eax, dword fs:[0]
push eax
mov eax, 0x3048
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x3044], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x305c]
mov dword fs:[0], eax
cmp byte [0x52e947], 0
mov eax, dword [esp + 0x3070]
mov esi, dword [esp + 0x3074]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jne 0x440e79
push str.SeRestorePrivilege
call fcn.0041b5b0
push str.SeCreateSymbolicLinkPrivilege
call fcn.0041b5b0
mov byte [0x52e947], 1
xor ebp, ebp
push 0x1418
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.0040ede0
mov dword [esp + 0x3064], ebp
push 0x800
lea eax, [esi + 0x10f4]
push eax
lea ecx, [esp + 0x1060]
push ecx
call fcn.004694b0
lea eax, [esp + 0x1058]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x440ec3
sub eax, edx
push 4
lea esi, [esp + 0x105c]
mov edx, esi
sar eax, 1
push 0x50300c
push edx
mov ebx, eax
lea edi, [esp + 0x2064]
call fcn.004ea5f5
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x17], al
test al, al
je 0x440f39
push 4
lea esi, [esp + 0x1064]
mov eax, esi
push str.UNC_
push eax
call fcn.004ea5f5
add esp, 0xc
test eax, eax
jne 0x440f39
mov ecx, 0x5c
mov word [esp + 0x2058], cx
lea edi, [esp + 0x205a]
lea esi, [esp + 0x1066]
mov edx, edi
mov eax, esi
sub edx, esi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x440f40
lea eax, [esp + 0x2058]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x440f60
sub eax, edx
mov edx, dword [esp + 0x306c]
sar eax, 1
cmp byte [edx + 0x6193], 0
mov ebp, eax
jne 0x440fd1
cmp byte [esp + 0x17], 0
jne 0x440fae
mov esi, dword [esp + 0x18]
add esi, 0x10f4
push esi
call fcn.004530a0
test al, al
jne 0x440fae
mov edi, dword [esp + 0x18]
push esi
lea eax, [edi + 0x20]
push eax
call fcn.0043fc10
test al, al
jne 0x440fd5
mov dword [esp + 0x3064], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x440fca
push eax
call fcn.004e7061
add esp, 4
xor al, al
jmp 0x4412d1
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push 1
push esi
call fcn.00445960
cmp byte [edi + 0x10e1], 0
jne 0x44101a
cmp byte [edi + 0x20f4], 0
jne 0x44101a
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x440fae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x441027
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x440fae
mov eax, dword [edi + 0x10f0]
cmp eax, 3
jne 0x4410b4
mov esi, dword [esp + 0x20]
lea ecx, [ebx + ebp]
lea edx, [ecx + ecx + 0xc]
xor eax, eax
xor ecx, ecx
mov word [esi + 6], ax
mov word [esi + 4], dx
lea eax, [esp + 0x1058]
mov word [esi + 8], cx
lea edi, [ebx + ebx]
lea edx, [esi + 0x10]
mov ecx, eax
mov dword [esi], 0xa0000003
mov word [esi + 0xa], di
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x441070
lea edx, [ebp + ebp]
mov word [esi + 0xe], dx
lea eax, [esp + 0x2058]
add edi, 2
lea edx, [esi + ebx*2 + 0x12]
mov ecx, eax
mov word [esi + 0xc], di
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4410a0
jmp 0x44114b
cmp eax, 2
je 0x4410c2
cmp eax, 1
jne 0x440fae
mov esi, dword [esp + 0x20]
lea edx, [ebx + ebp]
lea eax, [edx + edx + 0x10]
xor ecx, ecx
xor edx, edx
mov word [esi + 4], ax
mov word [esi + 8], dx
lea eax, [esp + 0x1058]
mov word [esi + 6], cx
lea edi, [ebx + ebx]
lea edx, [esi + 0x14]
mov ecx, eax
mov dword [esi], 0xa000000c
mov word [esi + 0xa], di
sub edx, ecx
jmp 0x441100
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x441100
lea edx, [ebp + ebp]
mov word [esi + 0xe], dx
lea eax, [esp + 0x2058]
add edi, 2
lea edx, [esi + ebx*2 + 0x16]
mov ecx, eax
mov word [esi + 0xc], di
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x441130
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
mov dword [esi + 0x10], edx
mov ebp, dword [esp + 0x1c]
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x441209
movzx ecx, word [esi + 4]
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
add ecx, 8
push ecx
push esi
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x441220
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push 0
push 0x14
call fcn.0041bd00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x4411c2
push 0x16
call fcn.00401930
mov ecx, 0x531158
call fcn.0043f4b0
push 9
mov ecx, 0x531158
call fcn.0043f180
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x10e1], 0
push ebp
je 0x441203
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x3064], ebx
push esi
call fcn.004e7061
add esp, 4
xor al, al
jmp 0x4412d1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x3064], ebx
push esi
call fcn.004e7061
add esp, 4
xor al, al
jmp 0x4412d1
lea ecx, [esp + 0x34]
call fcn.00443e50
mov byte [esp + 0x3064], 1
lea ecx, [esp + 0x34]
call fcn.004441a0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x306c]
cmp dword [edi + 0x73b4], 0
jne 0x441256
xor edx, edx
jmp 0x44125c
lea edx, [ebx + 0x1040]
cmp dword [edi + 0x73b0], 0
jne 0x441269
xor ecx, ecx
jmp 0x44126f
lea ecx, [ebx + 0x1038]
cmp dword [edi + 0x73ac], 0
jne 0x44127c
xor eax, eax
jmp 0x441282
lea eax, [ebx + 0x1030]
push edx
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00444730
lea ecx, [esp + 0x34]
call fcn.004441a0
cmp byte [edi + 0x62be], 0
jne 0x4412aa
mov eax, dword [ebx + 0x1c]
push eax
push ebp
call fcn.00444fa0
mov byte [esp + 0x3064], 0
lea ecx, [esp + 0x34]
call fcn.004445b0
mov dword [esp + 0x3064], 0xffffffff
push esi
call fcn.004e7061
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x305c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3044]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3054
ret 0xc