Function at 0x40e030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1df6
mov eax, dword fs:[0]
push eax
mov eax, 0x3058
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x304c], ebx
mov dword [ebp - 0x3048], ecx
cmp byte [0x4e1f34], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3044], esi
jne 0x40e09d
mov ecx, str.SeRestorePrivilege
call fcn.0040df90
mov ecx, str.SeCreateSymbolicLinkPrivilege
call fcn.0040df90
mov byte [0x4e1f34], 1
mov ecx, ebx
call fcn.004110f0
cmp byte [esi + 0x10e1], 0
jne 0x40e11d
cmp byte [esi + 0x20f4], 0
jne 0x40e11d
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40e12a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1418
push 0
mov dword [ebp - 0x305c], 0
mov dword [ebp - 0x3054], 0
mov dword [ebp - 0x3050], 0
mov dword [ebp - 0x3058], 0x1418
call fcn.0049395e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40e131
call fcn.0040d130
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e0db
xor al, al
jmp 0x40e3e3
mov dword [ebp - 0x305c], ebx
mov dword [ebp - 0x3054], 0x1418
push 0x7ff
lea eax, [esi + 0x10f4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00493f28
add esp, 0xc
lea edi, [ebp - 0x2014]
xor eax, eax
lea ecx, [edi + 2]
mov word [ebp - 0x1016], ax
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40e175
push 4
lea esi, [ebp - 0x2014]
sub edi, ecx
mov eax, esi
sar edi, 1
push 0x4c036c
push eax
call fcn.00494b1d
add esp, 0xc
test eax, eax
sete al
mov byte [ebp - 0x303d], al
test al, al
je 0x40e1e1
push 4
lea esi, [ebp - 0x200c]
mov eax, esi
push str.UNC_
push eax
call fcn.00494b1d
add esp, 0xc
test eax, eax
jne 0x40e1e1
mov eax, 0x5c
lea ecx, [ebp - 0x1012]
mov word [ebp - 0x1014], ax
lea esi, [ebp - 0x2006]
jmp 0x40e1e7
lea ecx, [ebp - 0x1014]
sub ecx, esi
lea esp, [esp]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40e1f0
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e210
mov eax, dword [ebp - 0x3044]
sub ecx, edx
sar ecx, 1
mov eax, dword [eax + 0x10f0]
cmp eax, 3
jne 0x40e2b5
lea eax, [edi + ecx]
mov dword [ebx], 0xa0000003
lea eax, [eax*2 + 0xc]
mov word [ebx + 4], ax
lea edx, [ebp - 0x2014]
xor eax, eax
mov esi, edx
mov dword [ebx + 6], eax
lea eax, [edi + edi]
mov word [ebx + 0xa], ax
mov eax, ebx
sub eax, esi
lea esi, [eax + 0x10]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x40e263
lea eax, [edi*2 + 2]
mov word [ebx + 0xc], ax
lea eax, [ecx + ecx]
mov word [ebx + 0xe], ax
lea ecx, [ebp - 0x1014]
mov edx, ecx
lea eax, [edi*2 + 0x12]
sub eax, edx
lea edx, [eax + ebx]
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40e2a0
jmp 0x40e34e
cmp eax, 2
je 0x40e2c3
cmp eax, 1
jne 0x40e3cd
lea eax, [edi + ecx]
mov dword [ebx], 0xa000000c
lea eax, [eax*2 + 0x10]
mov word [ebx + 4], ax
lea edx, [ebp - 0x2014]
xor eax, eax
mov esi, edx
mov dword [ebx + 6], eax
lea eax, [edi + edi]
mov word [ebx + 0xa], ax
mov eax, ebx
sub eax, esi
lea esi, [eax + 0x14]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x40e2f2
lea eax, [edi*2 + 2]
mov word [ebx + 0xc], ax
lea eax, [ecx + ecx]
mov word [ebx + 0xe], ax
lea ecx, [ebp - 0x1014]
mov edx, ecx
lea eax, [edi*2 + 0x16]
sub eax, edx
lea edx, [eax + ebx]
jmp 0x40e330
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40e330
xor eax, eax
cmp byte [ebp - 0x303d], al
sete al
mov dword [ebx + 0x10], eax
mov edi, dword [ebp - 0x304c]
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 0x40e3cd
movzx ecx, word [ebx + 4]
lea eax, [ebp - 0x3060]
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 0x40e407
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x3044]
inc dword [0x4d8a1c]
mov dword [0x4d8a18], 9
push edi
cmp byte [eax + 0x10e1], 0
je 0x40e3ff
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 0x303d], 0
push ebx
call fcn.00493921
mov al, byte [ebp - 0x303d]
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 - 0x14]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40e3cd
lea ecx, [ebp - 0x303c]
call fcn.004105f0
mov byte [ebp - 4], 1
call fcn.00410970
mov eax, dword [ebp - 0x3048]
mov dword [ebp - 0x3038], esi
mov esi, dword [ebp - 0x3044]
cmp dword [eax + 0x7394], 0
jne 0x40e43a
xor edx, edx
jmp 0x40e440
lea edx, [esi + 0x1040]
cmp dword [eax + 0x7390], 0
jne 0x40e44d
xor ecx, ecx
jmp 0x40e453
lea ecx, [esi + 0x1038]
cmp dword [eax + 0x738c], 0
jne 0x40e460
xor eax, eax
jmp 0x40e466
lea eax, [esi + 0x1030]
push edx
push ecx
push eax
lea ecx, [ebp - 0x303c]
call fcn.00410e60
lea ecx, [ebp - 0x303c]
call fcn.00410970
mov ecx, dword [ebp - 0x3048]
cmp byte [ecx + 0x629c], 0
jne 0x40e498
mov edx, dword [esi + 0x1c]
mov ecx, edi
call fcn.004114e0
lea ecx, [ebp - 0x303c]
mov byte [ebp - 0x303d], 1
mov byte [ebp - 4], 0
call fcn.00410690
jmp 0x40e3d4