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

Disassembly:
push 0xffffffffffffffff
push 0x4d44a6
mov eax, dword fs:[0]
push eax
mov eax, 0x3048
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x3044], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x305c]
mov dword fs:[0], eax
cmp byte [0x51d6fb], 0
mov esi, dword [esp + 0x3070]
mov edi, dword [esp + 0x3074]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
jne 0x436bc9
push str.SeRestorePrivilege
call fcn.004356f0
push str.SeCreateSymbolicLinkPrivilege
call fcn.004356f0
mov byte [0x51d6fb], 1
push 1
push esi
call fcn.0043da20
cmp byte [edi + 0x10e1], 0
jne 0x436c0d
cmp byte [edi + 0x20f4], 0
jne 0x436c0d
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x436dca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x436c20
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436dca
xor ebx, ebx
push 0x1418
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00401950
mov dword [esp + 0x3064], ebx
push 0x800
add edi, 0x10f4
push edi
lea eax, [esp + 0x1060]
push eax
call fcn.0047fbe0
lea eax, [esp + 0x1058]
lea edx, [eax + 2]
jmp 0x436c70
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436c70
push 4
sub eax, edx
lea esi, [esp + 0x105c]
mov ecx, esi
sar eax, 1
push 0x4da318
push ecx
mov ebp, eax
lea edi, [esp + 0x2064]
call fcn.004c4caa
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x17], al
test al, al
je 0x436ce6
push 4
lea esi, [esp + 0x1064]
mov edx, esi
push str.UNC_
push edx
call fcn.004c4caa
add esp, 0xc
test eax, eax
jne 0x436ce6
mov eax, 0x5c
mov word [esp + 0x2058], ax
lea edi, [esp + 0x205a]
lea esi, [esp + 0x1066]
mov edx, edi
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x436cf0
lea eax, [esp + 0x2058]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436d10
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x10f0]
sub eax, edx
sar eax, 1
cmp ecx, 3
jne 0x436da4
mov esi, dword [esp + 0x20]
lea edx, [eax + ebp]
lea ecx, [edx + edx + 0xc]
mov word [esi + 4], cx
xor ecx, ecx
xor edx, edx
mov word [esi + 8], cx
lea ecx, [esp + 0x1058]
mov word [esi + 6], dx
lea ebx, [ebp + ebp]
lea edi, [esi + 0x10]
mov edx, ecx
mov dword [esi], 0xa0000003
mov word [esi + 0xa], bx
sub edi, edx
movzx edx, word [ecx]
mov word [edi + ecx], dx
add ecx, 2
test dx, dx
jne 0x436d65
add eax, eax
mov word [esi + 0xe], ax
lea eax, [esp + 0x2058]
add ebx, 2
lea edx, [esi + ebp*2 + 0x12]
mov ecx, eax
mov word [esi + 0xc], bx
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x436d90
jmp 0x436e5b
cmp ecx, 2
je 0x436dd1
cmp ecx, 1
je 0x436dd1
mov dword [esp + 0x3064], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x436dca
push eax
call fcn.004c23c4
add esp, 4
xor al, al
jmp 0x436ffb
mov esi, dword [esp + 0x20]
lea edx, [eax + ebp]
lea ecx, [edx + edx + 0x10]
mov word [esi + 4], cx
xor ecx, ecx
xor edx, edx
mov word [esi + 8], cx
lea ecx, [esp + 0x1058]
mov word [esi + 6], dx
lea ebx, [ebp + ebp]
lea edi, [esi + 0x14]
mov edx, ecx
mov dword [esi], 0xa000000c
mov word [esi + 0xa], bx
sub edi, edx
jmp 0x436e10
movzx edx, word [ecx]
mov word [edi + ecx], dx
add ecx, 2
test dx, dx
jne 0x436e10
add eax, eax
mov word [esi + 0xe], ax
lea eax, [esp + 0x2058]
add ebx, 2
lea edx, [esi + ebp*2 + 0x16]
mov ecx, eax
mov word [esi + 0xc], bx
sub edx, ecx
jmp 0x436e40
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x436e40
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
mov dword [esi + 0x10], edx
mov ebp, dword [esp + 0x1c]
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x436f33
movzx ecx, word [esi + 4]
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
add ecx, 8
push ecx
push esi
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x436f4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push 0x654
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x436eec
push 0x659
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 8
mov ecx, 0x51ff10
call fcn.00433f70
push 9
mov ecx, 0x51ff10
call fcn.00433d70
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x10e1], 0
push ebp
je 0x436f2d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x3064], ebx
push esi
call fcn.004c23c4
add esp, 4
xor al, al
jmp 0x436ffb
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x3064], ebx
push esi
call fcn.004c23c4
add esp, 4
xor al, al
jmp 0x436ffb
lea ecx, [esp + 0x34]
call fcn.0043ba40
mov byte [esp + 0x3064], 1
lea ecx, [esp + 0x34]
call fcn.0043bd40
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x306c]
cmp dword [edi + 0x73ac], 0
jne 0x436f80
xor edx, edx
jmp 0x436f86
lea edx, [ebx + 0x1040]
cmp dword [edi + 0x73a8], 0
jne 0x436f93
xor ecx, ecx
jmp 0x436f99
lea ecx, [ebx + 0x1038]
cmp dword [edi + 0x73a4], 0
jne 0x436fa6
xor eax, eax
jmp 0x436fac
lea eax, [ebx + 0x1030]
push edx
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.0043c2d0
lea ecx, [esp + 0x34]
call fcn.0043bd40
cmp byte [edi + 0x62b6], 0
jne 0x436fd4
mov eax, dword [ebx + 0x1c]
push eax
push ebp
call fcn.0043ccc0
mov byte [esp + 0x3064], 0
lea ecx, [esp + 0x34]
call fcn.0043c140
mov dword [esp + 0x3064], 0xffffffff
push esi
call fcn.004c23c4
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x305c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3044]
xor ecx, esp
call fcn.004c1c22
add esp, 0x3054
ret 0xc