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

Disassembly:
push ebp
lea ebp, [esp - 0x3088]
mov eax, 0x3088
call fcn.00497b90
push 0xffffffffffffffff
push 0x4a3485
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c400c]
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 [0x4ca37a], 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 0x47d56c
push str.SeRestorePrivilege
call fcn.0047f0c0
push str.SeCreateSymbolicLinkPrivilege
call fcn.0047f0c0
add esp, 8
mov byte [0x4ca37a], 1
push 0x1418
push 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x40], 0x1418
call fcn.0044dbce
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x47d5a0
mov ecx, 0x4c71e4
call fcn.004623f0
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.00464c00
lea ecx, [ebp + 0x2084]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d5d5
push 4
sub ecx, edx
lea edi, [ebp + 0x2084]
mov eax, edi
sar ecx, 1
push 0x4b02e4
push eax
mov dword [ebp - 0x2c], ecx
call fcn.0044fcee
add esp, 0xc
test eax, eax
sete dl
mov byte [ebp - 0xd], dl
test eax, eax
jne 0x47d611
lea edi, [ebp + 0x208c]
test dl, dl
je 0x47d643
push 4
push str.UNC_
push edi
call fcn.0044fcee
mov dl, byte [ebp - 0xd]
add esp, 0xc
test eax, eax
jne 0x47d643
mov eax, 0x5c
lea ecx, [ebp + 0x1086]
mov word [ebp + 0x1084], ax
add edi, 6
jmp 0x47d649
lea ecx, [ebp + 0x1084]
sub ecx, edi
jmp 0x47d650
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x47d650
lea edi, [ebp + 0x1084]
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x47d670
mov eax, dword [ebp - 0x20]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x28], edi
cmp byte [eax + 0x719f], 0
jne 0x47d7dc
test dl, dl
jne 0x47dc05
push esi
call fcn.00463ff0
add esp, 4
test al, al
jne 0x47dc05
mov eax, dword [ebp - 0x1c]
mov edi, ebx
add eax, 0x28
push eax
call fcn.00464040
add esp, 4
test al, al
jne 0x47dc05
push esi
call fcn.00464040
add esp, 4
test al, al
jne 0x47dc05
movzx eax, word [esi]
xor edx, edx
mov dword [ebp - 0x14], edx
test ax, ax
je 0x47d751
mov ecx, eax
xor edi, edi
cmp cx, 0x2e
jne 0x47d72b
cmp word [esi + 2], cx
jne 0x47d72b
movzx eax, word [esi + 4]
push eax
call fcn.00464120
add esp, 4
test al, al
jne 0x47d70a
cmp word [esi + 4], 0
jne 0x47d728
test edi, edi
je 0x47d71f
movzx eax, word [esi - 2]
push eax
call fcn.00464120
add esp, 4
test al, al
je 0x47d728
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
jmp 0x47d72b
mov edx, dword [ebp - 0x14]
movzx eax, word [esi + 2]
add esi, 2
inc edi
mov ecx, eax
test ax, ax
jne 0x47d6e6
mov edi, ebx
test edx, edx
jle 0x47d751
push ebx
call fcn.0047ee70
add esp, 4
test al, al
jne 0x47dc05
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
call fcn.0047d430
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 0x47d771
sub esi, edx
sar esi, 1
je 0x47d7b9
push esi
push ecx
push ebx
call fcn.0044fcee
add esp, 0xc
test eax, eax
jne 0x47d7b9
movzx eax, word [ebx + esi*2]
lea edi, [ebx + esi*2]
push eax
call fcn.00464120
add esp, 4
test al, al
je 0x47d7b9
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00464120
add esp, 4
test al, al
jne 0x47d7a5
push edi
call fcn.0047d430
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp dword [ebp - 0x24], ecx
jl 0x47dc05
cmp eax, ecx
jl 0x47dc05
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x714f]
push eax
push 1
push ebx
call fcn.0046ce50
push ebx
call fcn.0046d0a0
add esp, 0x10
test al, al
je 0x47d81c
push ebx
call fcn.0046d110
push eax
call fcn.0046d1a0
add esp, 8
push ebx
test al, al
je 0x47d814
call fcn.0046cf80
jmp 0x47d819
call fcn.0046d010
add esp, 4
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x10f1], 0
jne 0x47d915
cmp byte [esi + 0x2104], 0
jne 0x47d915
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 0x47d86c
push ebx
mov ecx, 0x4c71e4
call fcn.00462210
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x47dc98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1100]
cmp eax, 3
jne 0x47d9d9
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 0x47d8c5
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 0x47d900
jmp 0x47da8a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47d873
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x1040], 0x4b5644
mov dword [ebp + 0x1044], 0x4b5644
mov dword [ebp + 0x1048], 0x4b5644
mov dword [ebp + 0x104c], 0x4b5644
mov dword [ebp + 0x1050], 0x4b5644
mov dword [ebp + 0x1054], 0x4b5644
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.00407ff0
push 9
mov ecx, 0x4c71e4
call fcn.00462660
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x47dc98
cmp eax, 2
je 0x47d9e7
cmp eax, 1
jne 0x47dc05
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 0x47da30
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 0x47da70
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x47da70
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 0x47dacb
push ebx
mov ecx, 0x4c71e4
call fcn.00462210
push 9
mov ecx, 0x4c71e4
call fcn.00462660
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x47dc98
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 0x47dc0f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x15
call fcn.00464c50
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x47db1c
cmp eax, 0x522
jne 0x47dbcc
call fcn.0046c4e0
test al, al
jne 0x47dbcc
xor eax, eax
mov dword [ebp + 0x1038], 0x4b5644
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x103c], 0x4b5644
mov dword [ebp + 0x1040], 0x4b5644
mov dword [ebp + 0x1044], 0x4b5644
mov dword [ebp + 0x1048], 0x4b5644
mov dword [ebp + 0x104c], 0x4b5644
mov dword [ebp + 0x1050], 0x4b5644
mov dword [ebp + 0x1054], 0x4b5644
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.00407ff0
mov ecx, 0x4c71e4
call fcn.00407ff0
push 9
mov ecx, 0x4c71e4
call fcn.00462660
mov eax, dword [ebp - 0x1c]
push ebx
cmp byte [eax + 0x10f1], 0
je 0x47dbff
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x47dc98
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x47dc98
lea ecx, [ebp]
call fcn.0046f840
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.004702f0
lea ecx, [ebp]
call fcn.0046fa80
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x73b2], 0
jne 0x47dc8e
push dword [esi + 0x24]
push ebx
call fcn.0046d4d0
add esp, 8
lea ecx, [ebp]
mov bl, 1
call fcn.0046f890
test edi, edi
je 0x47dca5
push edi
call fcn.004461a9
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.0043cc06
lea esp, [ebp + 0x3088]
pop ebp
ret