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

Disassembly:
push ebp
lea ebp, [esp - 0x3088]
mov eax, 0x3088
call fcn.0049cd50
push 0xffffffffffffffff
push 0x4a8a95
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp + 0x3084], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4d23fa], 0
mov eax, dword [ebp + 0x3090]
mov edi, dword [ebp + 0x3098]
mov ebx, dword [ebp + 0x3094]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
jne 0x48272c
push str.SeRestorePrivilege
call fcn.00484280
push str.SeCreateSymbolicLinkPrivilege
call fcn.00484280
add esp, 8
mov byte [0x4d23fa], 1
push 0x1418
push 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x40], 0x1418
call fcn.00452d9e
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x482760
mov ecx, 0x4cf264
call fcn.004675b0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x1418
push 0x800
lea esi, [edi + 0x1104]
mov dword [ebp - 4], 0
lea eax, [ebp + 0x2084]
push esi
push eax
call fcn.00469dc0
lea ecx, [ebp + 0x2084]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482795
push 4
sub ecx, edx
lea edi, [ebp + 0x2084]
mov eax, edi
sar ecx, 1
push 0x4b6334
push eax
mov dword [ebp - 0x2c], ecx
call fcn.00454ebe
add esp, 0xc
test eax, eax
sete dl
mov byte [ebp - 0xd], dl
test eax, eax
jne 0x4827d1
lea edi, [ebp + 0x208c]
test dl, dl
je 0x482803
push 4
push str.UNC_
push edi
call fcn.00454ebe
mov dl, byte [ebp - 0xd]
add esp, 0xc
test eax, eax
jne 0x482803
mov eax, 0x5c
lea ecx, [ebp + 0x1086]
mov word [ebp + 0x1084], ax
add edi, 6
jmp 0x482809
lea ecx, [ebp + 0x1084]
sub ecx, edi
jmp 0x482810
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x482810
lea edi, [ebp + 0x1084]
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x482830
mov eax, dword [ebp - 0x20]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x28], edi
cmp byte [eax + 0x719f], 0
jne 0x48299c
test dl, dl
jne 0x482dc5
push esi
call fcn.004691b0
add esp, 4
test al, al
jne 0x482dc5
mov eax, dword [ebp - 0x1c]
mov edi, ebx
add eax, 0x28
push eax
call fcn.00469200
add esp, 4
test al, al
jne 0x482dc5
push esi
call fcn.00469200
add esp, 4
test al, al
jne 0x482dc5
movzx eax, word [esi]
xor edx, edx
mov dword [ebp - 0x14], edx
test ax, ax
je 0x482911
mov ecx, eax
xor edi, edi
cmp cx, 0x2e
jne 0x4828eb
cmp word [esi + 2], cx
jne 0x4828eb
movzx eax, word [esi + 4]
push eax
call fcn.004692e0
add esp, 4
test al, al
jne 0x4828ca
cmp word [esi + 4], 0
jne 0x4828e8
test edi, edi
je 0x4828df
movzx eax, word [esi - 2]
push eax
call fcn.004692e0
add esp, 4
test al, al
je 0x4828e8
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
jmp 0x4828eb
mov edx, dword [ebp - 0x14]
movzx eax, word [esi + 2]
add esi, 2
inc edi
mov ecx, eax
test ax, ax
jne 0x4828a6
mov edi, ebx
test edx, edx
jle 0x482911
push ebx
call fcn.00484030
add esp, 4
test al, al
jne 0x482dc5
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
call fcn.004825f0
mov ecx, dword [ebp - 0x20]
add esp, 4
add ecx, 0x2016
mov dword [ebp - 0x24], eax
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x482931
sub esi, edx
sar esi, 1
je 0x482979
push esi
push ecx
push ebx
call fcn.00454ebe
add esp, 0xc
test eax, eax
jne 0x482979
movzx eax, word [ebx + esi*2]
lea edi, [ebx + esi*2]
push eax
call fcn.004692e0
add esp, 4
test al, al
je 0x482979
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.004692e0
add esp, 4
test al, al
jne 0x482965
push edi
call fcn.004825f0
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp dword [ebp - 0x24], ecx
jl 0x482dc5
cmp eax, ecx
jl 0x482dc5
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x714f]
push eax
push 1
push ebx
call fcn.00472010
push ebx
call fcn.00472260
add esp, 0x10
test al, al
je 0x4829dc
push ebx
call fcn.004722d0
push eax
call fcn.00472360
add esp, 8
push ebx
test al, al
je 0x4829d4
call fcn.00472140
jmp 0x4829d9
call fcn.004721d0
add esp, 4
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x10f1], 0
jne 0x482ad5
cmp byte [esi + 0x2104], 0
jne 0x482ad5
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x482a2c
push ebx
mov ecx, 0x4cf264
call fcn.004673d0
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x482e58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1100]
cmp eax, 3
jne 0x482b99
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
movzx ecx, dx
mov dword [eax], 0xa0000003
movzx eax, di
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
add eax, ecx
lea eax, [eax*2 + 0xc]
mov word [edi + 4], ax
xor eax, eax
mov dword [edi + 6], eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 0x2084]
mov word [edi + 0xa], ax
mov esi, ecx
mov eax, edi
sub eax, esi
lea esi, [eax + 0x10]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x482a85
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x1084]
add eax, 2
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x24]
add eax, eax
mov word [edi + 0xe], ax
lea eax, [edx*2 + 0x12]
mov edx, ecx
sub eax, edx
lea edx, [eax + edi]
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x482ac0
jmp 0x482c4a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x482a33
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x1040], 0x4bb6b4
mov dword [ebp + 0x1044], 0x4bb6b4
mov dword [ebp + 0x1048], 0x4bb6b4
mov dword [ebp + 0x104c], 0x4bb6b4
mov dword [ebp + 0x1050], 0x4bb6b4
mov dword [ebp + 0x1054], 0x4bb6b4
mov dword [ebp + 0x1058], eax
mov dword [ebp + 0x105c], eax
mov dword [ebp + 0x1060], eax
mov dword [ebp + 0x1064], eax
mov dword [ebp + 0x1068], eax
mov dword [ebp + 0x106c], eax
mov dword [ebp + 0x1070], eax
mov dword [ebp + 0x1074], eax
mov dword [ebp + 0x107c], eax
mov dword [ebp + 0x1080], 0x14
mov dword [ebp + 0x1038], eax
mov dword [ebp + 0x103c], ebx
mov dword [ebp + 0x1078], 2
call fcn.00435780
push 9
mov ecx, 0x4cf264
call fcn.00467820
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x482e58
cmp eax, 2
je 0x482ba7
cmp eax, 1
jne 0x482dc5
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
movzx ecx, dx
mov dword [eax], 0xa000000c
movzx eax, di
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
add eax, ecx
lea eax, [eax*2 + 0x10]
mov word [edi + 4], ax
xor eax, eax
mov dword [edi + 6], eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 0x2084]
mov word [edi + 0xa], ax
mov esi, ecx
mov eax, edi
sub eax, esi
lea esi, [eax + 0x14]
lea ebx, [ebx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x482bf0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x1084]
add eax, 2
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x24]
add eax, eax
mov word [edi + 0xe], ax
lea eax, [edx*2 + 0x16]
mov edx, ecx
sub eax, edx
lea edx, [eax + edi]
jmp 0x482c30
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x482c30
movzx eax, byte [ebp - 0xd]
xor eax, 1
mov dword [edi + 0x10], eax
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x482c8b
push ebx
mov ecx, 0x4cf264
call fcn.004673d0
push 9
mov ecx, 0x4cf264
call fcn.00467820
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x482e58
push 0
lea eax, [ebp - 0x30]
push eax
movzx eax, word [edi + 4]
push 0
push 0
add eax, 8
push eax
push edi
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x482dcf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x15
call fcn.00469e10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x482cdc
cmp eax, 0x522
jne 0x482d8c
call fcn.004716a0
test al, al
jne 0x482d8c
xor eax, eax
mov dword [ebp + 0x1038], 0x4bb6b4
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x103c], 0x4bb6b4
mov dword [ebp + 0x1040], 0x4bb6b4
mov dword [ebp + 0x1044], 0x4bb6b4
mov dword [ebp + 0x1048], 0x4bb6b4
mov dword [ebp + 0x104c], 0x4bb6b4
mov dword [ebp + 0x1050], 0x4bb6b4
mov dword [ebp + 0x1054], 0x4bb6b4
mov dword [ebp + 0x1058], eax
mov dword [ebp + 0x105c], eax
mov dword [ebp + 0x1060], eax
mov dword [ebp + 0x1064], eax
mov dword [ebp + 0x1068], eax
mov dword [ebp + 0x106c], eax
mov dword [ebp + 0x1070], eax
mov dword [ebp + 0x1074], eax
mov dword [ebp + 0x1078], eax
mov dword [ebp + 0x107c], eax
mov dword [ebp + 0x1080], 0x18
call fcn.00435780
mov ecx, 0x4cf264
call fcn.00435780
push 9
mov ecx, 0x4cf264
call fcn.00467820
mov eax, dword [ebp - 0x1c]
push ebx
cmp byte [eax + 0x10f1], 0
je 0x482dbf
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x482e58
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x482e58
lea ecx, [ebp]
call fcn.00474a00
mov eax, dword [ebp]
lea ecx, [ebp]
mov byte [ebp - 4], 7
call dword [eax + 8]
mov edx, dword [ebp - 0x20]
mov dword [ebp + 8], esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x84e0]
neg ecx
lea eax, [esi + 0x1050]
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x1048]
push ecx
mov ecx, dword [edx + 0x84dc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x1040]
push ecx
mov ecx, dword [edx + 0x84d8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp]
call fcn.004754b0
lea ecx, [ebp]
call fcn.00474c40
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x73b2], 0
jne 0x482e4e
push dword [esi + 0x24]
push ebx
call fcn.00472690
add esp, 8
lea ecx, [ebp]
mov bl, 1
call fcn.00474a50
test edi, edi
je 0x482e65
push edi
call fcn.004450d0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3084]
xor ecx, ebp
call fcn.00441dc6
lea esp, [ebp + 0x3088]
pop ebp
ret