Function at 0x101e1c0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xf8]
test eax, eax
mov dword [ebp - 0xc], 1
je 0x101e1f0
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x101e4ec
push ebx
push esi
mov dword [ebp - 8], 0x590
call fcn.0101d4e1
add dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.01035a36
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x101e4eb
mov ecx, dword [ebp - 8]
push edi
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x590
mov dword [ebp - 4], eax
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x100]
mov dword [ebx + 0xe8], eax
mov eax, dword [esi + 0x104]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebx + 0xec], eax
mov eax, dword [esi + 0x108]
mov dword [ebx + 0xf0], eax
mov eax, dword [esi + 0x10c]
mov dword [ebx + 0xf4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x608]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x598]
mov dword [ebx + 0x588], eax
lea eax, [esi + 0x398]
push eax
lea eax, [ebx + 0x388]
push eax
call edi
lea eax, [esi + 0x184]
push eax
lea eax, [ebx + 0x14c]
push eax
call edi
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x98]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0xe4]
mov dword [ebx + 0xd0], eax
mov eax, dword [esi + 0xe0]
mov dword [ebx + 0xcc], eax
mov eax, dword [esi + 0xec]
mov dword [ebx + 0xd4], eax
cmp dword [esi + 0x1c], 2
jne 0x101e310
mov eax, dword [esi + 0x158]
mov ecx, dword [eax + 8]
mov dword [ebx + 0x140], ecx
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x144], eax
mov eax, dword [esi + 0x15c]
mov dword [ebx + 0x148], eax
mov eax, dword [esi + 0x388]
mov dword [ebx + 0x378], eax
mov eax, dword [esi + 0x38c]
mov dword [ebx + 0x37c], eax
mov eax, dword [esi + 0x390]
mov dword [ebx + 0x380], eax
mov eax, dword [esi + 0x394]
mov dword [ebx + 0x384], eax
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x101e388
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 4]
mov dword [ebx + 0xe4], ecx
mov edx, dword [ebp - 4]
mov esi, dword [esi + 0xf8]
mov ecx, eax
lea edi, [edx + ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x600]
mov dword [ebx + 0x36c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 0x36c]
mov dword [ebx + 0x370], eax
mov eax, dword [ebp - 4]
mov esi, dword [esi + 0x604]
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x36c]
add dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0x1c]
push eax
push dword [esi + 0x2c]
call fcn.01035e47
mov eax, dword [esi + 0x1c]
cmp eax, 0x20
je 0x101e3e7
cmp eax, 8
jne 0x101e3f8
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0x28]
push eax
push dword [esi + 0x34]
call fcn.01035e47
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0x2c]
push eax
lea eax, [esi + 0x38]
push eax
call fcn.0101d115
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0x6c]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.0101d166
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0x88]
push eax
lea eax, [esi + 0x9c]
push eax
call fcn.0101d1c9
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0xe0]
push eax
push dword [esi + 0xf4]
call fcn.01035e47
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebx + 0xf8]
push eax
lea eax, [esi + 0x114]
push eax
call fcn.0101d1c9
cmp dword [esi + 0x1c], 8
jne 0x101e47f
lea eax, [ebp - 4]
push eax
push ebx
push esi
call fcn.0101d2f0
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x101e4e1
jmp 0x101e481
xor edi, edi
push edi
push 0x80000080
push 4
push edi
push edi
push 0x40000000
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x101e4a6
mov dword [ebp - 0xc], edi
jmp 0x101e4e1
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x101e4d6
push dword [ebp + 8]
call edi
push dword [esi + 0x2c]
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0xffffffff
je 0x101e4e1
push dword [ebp + 8]
call edi
push ebx
call fcn.01035abf
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
pop esi
leave
ret 4