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

Disassembly:
mov eax, 0x429608
call fcn.0041a4ac
mov eax, 0x303c
call fcn.0041aac0
cmp byte [0x4335a3], 0
jne 0x40692b
push 0x42a574
call fcn.0040655b
push str.SeCreateSymbolicLinkPrivilege
call fcn.0040655b
mov byte [0x4335a3], 1
push ebx
push esi
push edi
push 0x1418
lea ecx, [ebp - 0x20]
call fcn.004012d0
mov edi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 0x800
lea eax, [edi + 0x10f4]
push eax
lea eax, [ebp - 0x1024]
push eax
call fcn.00410b5e
lea eax, [ebp - 0x1024]
push eax
call fcn.0041a77f
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x2024]
push 4
lea esi, [ebp - 0x1024]
mov dword [ebp - 0x10], eax
mov eax, esi
push 0x42a5d0
push eax
call fcn.0041c7ec
add esp, 0x10
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x4069c8
push 4
lea esi, [ebp - 0x101c]
mov eax, esi
push str.UNC_
push eax
call fcn.0041c7ec
add esp, 0xc
test eax, eax
jne 0x4069c8
push 0x5c
pop eax
mov word [ebp - 0x2024], ax
lea eax, [ebp - 0x2022]
lea esi, [ebp - 0x1016]
jmp 0x4069cb
mov eax, dword [ebp - 0x10]
push esi
push eax
call fcn.0041a7c7
lea eax, [ebp - 0x2024]
push eax
call fcn.0041a77f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax + 0x518b], 0
jne 0x406a34
test bl, bl
jne 0x406a12
lea esi, [edi + 0x10f4]
push esi
call fcn.0040a2d3
test al, al
jne 0x406a12
push esi
lea eax, [edi + 0x20]
push eax
call fcn.004065cc
test al, al
jne 0x406a34
cmp dword [ebp - 0x20], 0
je 0x406a21
push dword [ebp - 0x20]
call fcn.0041a4d6
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
push 1
push dword [ebp + 0xc]
call fcn.0040932f
cmp byte [edi + 0x10e1], 0
jne 0x406a7d
cmp byte [edi + 0x20f4], 0
jne 0x406a7d
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x406a74
cmp dword [ebp - 0x20], esi
jmp 0x406a16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a8e
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406a12
xor esi, esi
mov eax, dword [edi + 0x10f0]
cmp eax, 3
jne 0x406afc
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, eax
lea ebx, [eax + eax]
lea ecx, [ecx + ecx + 0xc]
lea eax, [ebp - 0x1024]
push eax
mov word [esi + 4], cx
xor ecx, ecx
lea eax, [esi + 0x10]
push eax
mov dword [esi], 0xa0000003
mov word [esi + 6], cx
mov word [esi + 8], cx
mov word [esi + 0xa], bx
call fcn.0041a7c7
mov eax, dword [ebp - 0x10]
add eax, eax
mov word [esi + 0xe], ax
lea eax, [ebp - 0x2024]
push eax
mov eax, dword [ebp + 0x10]
lea eax, [esi + eax*2 + 0x12]
add ebx, 2
push eax
mov word [esi + 0xc], bx
call fcn.0041a7c7
add esp, 0x10
jmp 0x406b79
cmp eax, 2
je 0x406b0a
cmp eax, 1
jne 0x406a6f
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, eax
add eax, eax
mov word [esi + 0xa], ax
lea ecx, [ecx + ecx + 0x10]
lea eax, [ebp - 0x1024]
push eax
mov word [esi + 4], cx
xor ecx, ecx
lea eax, [esi + 0x14]
push eax
mov dword [esi], 0xa000000c
mov word [esi + 6], cx
mov word [esi + 8], cx
call fcn.0041a7c7
mov eax, dword [ebp + 0x10]
add eax, eax
add eax, 2
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x10]
add eax, eax
mov word [esi + 0xe], ax
lea eax, [ebp - 0x2024]
push eax
mov eax, dword [ebp + 0x10]
lea eax, [esi + eax*2 + 0x16]
push eax
call fcn.0041a7c7
xor eax, eax
add esp, 0x10
test bl, bl
sete al
mov dword [esi + 0x10], eax
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406ba0
push esi
jmp 0x406a1b
xor eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push eax
push eax
movzx eax, word [esi + 4]
add eax, 8
push eax
push esi
push 0x900a4
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x406c28
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push 0
push 0x14
call fcn.004063a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x406be9
push 0x16
call fcn.00401bb9
mov ebx, 0x4335ac
mov ecx, ebx
call fcn.00401000
push 9
mov ecx, ebx
call fcn.004062d8
cmp byte [edi + 0x10e1], 0
push dword [ebp + 0xc]
je 0x406c12
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406c18
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
push esi
call fcn.0041a4d6
pop ecx
mov al, bl
jmp 0x406a23
lea ecx, [ebp - 0x3048]
call fcn.00408756
lea ecx, [ebp - 0x3048]
mov byte [ebp - 4], 1
call fcn.00408a02
mov dword [ebp - 0x3044], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x6294]
neg eax
sbb eax, eax
lea ecx, [edi + 0x1040]
and eax, ecx
push eax
mov eax, dword [ebx + 0x6290]
neg eax
sbb eax, eax
lea ecx, [edi + 0x1038]
and eax, ecx
push eax
mov eax, dword [ebx + 0x628c]
neg eax
lea ecx, [edi + 0x1030]
sbb eax, eax
and eax, ecx
push eax
lea ecx, [ebp - 0x3048]
call fcn.00408d05
lea ecx, [ebp - 0x3048]
call fcn.00408a02
cmp byte [ebx + 0x519b], 0
jne 0x406cae
push dword [edi + 0x1c]
push dword [ebp + 0xc]
call fcn.0040905d
lea ecx, [ebp - 0x3048]
mov byte [ebp - 4], 0
call fcn.00408c4d
mov bl, 1
jmp 0x406c1a