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

Disassembly:
push ebp
lea ebp, [esp - 0x3028]
mov eax, 0x3028
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x506e80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x3024], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x56b713], 0
mov eax, dword [ebp + 0x3034]
mov ebx, dword [ebp + 0x3038]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
jne 0x463783
push str.SeRestorePrivilege
call fcn.004652c0
push str.SeCreateSymbolicLinkPrivilege
call fcn.004652c0
mov byte [0x56b713], 1
push 0x1418
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00404010
mov dword [ebp - 4], 0
lea eax, [ebx + 0x10f4]
push 0x800
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2024]
push eax
call fcn.0048e710
lea edi, [ebp + 0x2024]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4637d7
push 4
lea esi, [ebp + 0x2024]
sub edi, ecx
mov eax, esi
sar edi, 1
push 0x50fa58
push eax
lea ebx, [ebp + 0x1024]
call fcn.004f2e5f
add esp, 0xc
test eax, eax
sete dl
mov byte [ebp - 0xd], dl
test dl, dl
je 0x463847
push 4
lea esi, [ebp + 0x202c]
mov eax, esi
push str.UNC_
push eax
call fcn.004f2e5f
mov dl, byte [ebp - 0xd]
add esp, 0xc
test eax, eax
jne 0x463847
mov eax, 0x5c
lea ebx, [ebp + 0x1026]
mov word [ebp + 0x1024], ax
lea esi, [ebp + 0x2032]
sub ebx, esi
lea esp, [esp]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi - 2], ax
test ax, ax
jne 0x463850
lea esi, [ebp + 0x1024]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x463870
mov eax, dword [ebp + 0x3030]
sub esi, ecx
mov ebx, dword [ebp - 0x2c]
sar esi, 1
cmp byte [eax + 0x6193], 0
jne 0x4638c0
test dl, dl
jne 0x463ae7
push dword [ebp - 0x1c]
call fcn.00478870
test al, al
jne 0x463ae7
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 0x20
push eax
call fcn.00464c70
test al, al
je 0x463ae7
push 1
push dword [ebp - 0x18]
call fcn.00468d70
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10e1], 0
jne 0x46390c
cmp byte [eax + 0x20f4], 0
jne 0x46390c
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x463ae7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46391f
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x463ae7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10f0]
cmp eax, 3
jne 0x4639b5
lea eax, [edi + esi]
mov dword [ebx], 0xa0000003
lea eax, [eax*2 + 0xc]
mov word [ebx + 4], ax
lea ecx, [ebp + 0x2024]
xor eax, eax
mov edx, ecx
mov dword [ebx + 6], eax
lea eax, [edi + edi]
mov word [ebx + 0xa], ax
mov eax, ebx
sub eax, edx
lea edx, [eax + 0x10]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x463960
lea eax, [edi*2 + 2]
mov word [ebx + 0xc], ax
lea ecx, [ebp + 0x1024]
lea eax, [esi + esi]
mov edx, ecx
mov word [ebx + 0xe], ax
lea eax, [edi*2 + 0x12]
sub eax, edx
lea edx, [eax + ebx]
jmp 0x4639a0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4639a0
jmp 0x463a4b
cmp eax, 2
je 0x4639c3
cmp eax, 1
jne 0x463ae7
lea eax, [edi + esi]
mov dword [ebx], 0xa000000c
lea eax, [eax*2 + 0x10]
mov word [ebx + 4], ax
lea ecx, [ebp + 0x2024]
xor eax, eax
mov edx, ecx
mov dword [ebx + 6], eax
lea eax, [edi + edi]
mov word [ebx + 0xa], ax
mov eax, ebx
sub eax, edx
lea edx, [eax + 0x14]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4639f2
lea eax, [edi*2 + 2]
mov word [ebx + 0xc], ax
lea ecx, [ebp + 0x1024]
lea eax, [esi + esi]
mov edx, ecx
mov word [ebx + 0xe], ax
lea eax, [edi*2 + 0x16]
sub eax, edx
lea edx, [eax + ebx]
jmp 0x463a30
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x463a30
xor eax, eax
cmp byte [ebp - 0xd], al
sete al
mov dword [ebx + 0x10], eax
mov edi, dword [ebp - 0x18]
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x463ae7
movzx ecx, word [ebx + 4]
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 0
add ecx, 8
push ecx
push ebx
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x463b30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x14
call fcn.004120d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x463abe
push 0x16
call fcn.0044d930
mov ecx, 0x56df60
call fcn.00463320
push 9
mov ecx, 0x56df60
call fcn.004631b0
mov eax, dword [ebp - 0x14]
push edi
cmp byte [eax + 0x10e1], 0
je 0x463b28
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor al, al
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x463b03
push ebx
call fcn.004f252e
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3024]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x3028]
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x463ae7
lea ecx, [ebp]
call fcn.00467980
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00467b10
mov eax, dword [ebp + 0x3030]
mov dword [ebp + 4], esi
mov esi, dword [ebp - 0x14]
cmp dword [eax + 0x73b4], 0
jne 0x463b5d
xor edx, edx
jmp 0x463b63
lea edx, [esi + 0x1040]
cmp dword [eax + 0x73b0], 0
jne 0x463b70
xor ecx, ecx
jmp 0x463b76
lea ecx, [esi + 0x1038]
cmp dword [eax + 0x73ac], 0
jne 0x463b83
xor eax, eax
jmp 0x463b89
lea eax, [esi + 0x1030]
push edx
push ecx
push eax
lea ecx, [ebp]
call fcn.00468410
lea ecx, [ebp]
call fcn.00467b10
mov eax, dword [ebp + 0x3030]
cmp byte [eax + 0x62be], 0
jne 0x463bb4
push dword [esi + 0x1c]
push edi
call fcn.00469f40
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004679c0
mov al, byte [ebp - 0xd]
jmp 0x463aec