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

Disassembly:
push ebp
lea ebp, [esp - 0x3088]
mov eax, 0x3088
call fcn.0049ed70
push 0xffffffffffffffff
push 0x4aad05
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4cd00c]
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 [0x4d35ca], 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 0x48474c
push str.SeRestorePrivilege
call fcn.004862a0
push str.SeCreateSymbolicLinkPrivilege
call fcn.004862a0
add esp, 8
mov byte [0x4d35ca], 1
push 0x1418
push 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x40], 0x1418
call fcn.0045500e
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x484780
mov ecx, 0x4d0434
call fcn.004695c0
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.0046bdd0
lea ecx, [ebp + 0x2084]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4847b5
push 4
sub ecx, edx
lea edi, [ebp + 0x2084]
mov eax, edi
sar ecx, 1
push 0x4b833c
push eax
mov dword [ebp - 0x2c], ecx
call fcn.00456ec8
add esp, 0xc
test eax, eax
sete dl
mov byte [ebp - 0xd], dl
test eax, eax
jne 0x4847f1
lea edi, [ebp + 0x208c]
test dl, dl
je 0x484823
push 4
push str.UNC_
push edi
call fcn.00456ec8
mov dl, byte [ebp - 0xd]
add esp, 0xc
test eax, eax
jne 0x484823
mov eax, 0x5c
lea ecx, [ebp + 0x1086]
mov word [ebp + 0x1084], ax
add edi, 6
jmp 0x484829
lea ecx, [ebp + 0x1084]
sub ecx, edi
jmp 0x484830
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x484830
lea edi, [ebp + 0x1084]
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x484850
mov eax, dword [ebp - 0x20]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x28], edi
cmp byte [eax + 0x719f], 0
jne 0x4849bc
test dl, dl
jne 0x484de5
push esi
call fcn.0046b1c0
add esp, 4
test al, al
jne 0x484de5
mov eax, dword [ebp - 0x1c]
mov edi, ebx
add eax, 0x28
push eax
call fcn.0046b210
add esp, 4
test al, al
jne 0x484de5
push esi
call fcn.0046b210
add esp, 4
test al, al
jne 0x484de5
movzx eax, word [esi]
xor edx, edx
mov dword [ebp - 0x14], edx
test ax, ax
je 0x484931
mov ecx, eax
xor edi, edi
cmp cx, 0x2e
jne 0x48490b
cmp word [esi + 2], cx
jne 0x48490b
movzx eax, word [esi + 4]
push eax
call fcn.0046b2f0
add esp, 4
test al, al
jne 0x4848ea
cmp word [esi + 4], 0
jne 0x484908
test edi, edi
je 0x4848ff
movzx eax, word [esi - 2]
push eax
call fcn.0046b2f0
add esp, 4
test al, al
je 0x484908
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
jmp 0x48490b
mov edx, dword [ebp - 0x14]
movzx eax, word [esi + 2]
add esi, 2
inc edi
mov ecx, eax
test ax, ax
jne 0x4848c6
mov edi, ebx
test edx, edx
jle 0x484931
push ebx
call fcn.00486050
add esp, 4
test al, al
jne 0x484de5
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
call fcn.00484610
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 0x484951
sub esi, edx
sar esi, 1
je 0x484999
push esi
push ecx
push ebx
call fcn.00456ec8
add esp, 0xc
test eax, eax
jne 0x484999
movzx eax, word [ebx + esi*2]
lea edi, [ebx + esi*2]
push eax
call fcn.0046b2f0
add esp, 4
test al, al
je 0x484999
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.0046b2f0
add esp, 4
test al, al
jne 0x484985
push edi
call fcn.00484610
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp dword [ebp - 0x24], ecx
jl 0x484de5
cmp eax, ecx
jl 0x484de5
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x714f]
push eax
push 1
push ebx
call fcn.00474030
push ebx
call fcn.00474280
add esp, 0x10
test al, al
je 0x4849fc
push ebx
call fcn.004742f0
push eax
call fcn.00474380
add esp, 8
push ebx
test al, al
je 0x4849f4
call fcn.00474160
jmp 0x4849f9
call fcn.004741f0
add esp, 4
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x10f1], 0
jne 0x484af5
cmp byte [esi + 0x2104], 0
jne 0x484af5
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 0x484a4c
push ebx
mov ecx, 0x4d0434
call fcn.004693e0
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x484e78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1100]
cmp eax, 3
jne 0x484bb9
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 0x484aa5
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 0x484ae0
jmp 0x484c6a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x484a53
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x1040], 0x4bd6c4
mov dword [ebp + 0x1044], 0x4bd6c4
mov dword [ebp + 0x1048], 0x4bd6c4
mov dword [ebp + 0x104c], 0x4bd6c4
mov dword [ebp + 0x1050], 0x4bd6c4
mov dword [ebp + 0x1054], 0x4bd6c4
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.0043b8d0
push 9
mov ecx, 0x4d0434
call fcn.00469830
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x484e78
cmp eax, 2
je 0x484bc7
cmp eax, 1
jne 0x484de5
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 0x484c10
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 0x484c50
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x484c50
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 0x484cab
push ebx
mov ecx, 0x4d0434
call fcn.004693e0
push 9
mov ecx, 0x4d0434
call fcn.00469830
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x484e78
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 0x484def
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x15
call fcn.0046be20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x484cfc
cmp eax, 0x522
jne 0x484dac
call fcn.004736b0
test al, al
jne 0x484dac
xor eax, eax
mov dword [ebp + 0x1038], 0x4bd6c4
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x103c], 0x4bd6c4
mov dword [ebp + 0x1040], 0x4bd6c4
mov dword [ebp + 0x1044], 0x4bd6c4
mov dword [ebp + 0x1048], 0x4bd6c4
mov dword [ebp + 0x104c], 0x4bd6c4
mov dword [ebp + 0x1050], 0x4bd6c4
mov dword [ebp + 0x1054], 0x4bd6c4
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.0043b8d0
mov ecx, 0x4d0434
call fcn.0043b8d0
push 9
mov ecx, 0x4d0434
call fcn.00469830
mov eax, dword [ebp - 0x1c]
push ebx
cmp byte [eax + 0x10f1], 0
je 0x484ddf
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x484e78
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x484e78
lea ecx, [ebp]
call fcn.00476a20
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.004774d0
lea ecx, [ebp]
call fcn.00476c60
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x73b2], 0
jne 0x484e6e
push dword [esi + 0x24]
push ebx
call fcn.004746b0
add esp, 8
lea ecx, [ebp]
mov bl, 1
call fcn.00476a70
test edi, edi
je 0x484e85
push edi
call fcn.004470c0
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.00443db6
lea esp, [ebp + 0x3088]
pop ebp
ret