Function at 0x10019dd0
Capabilities:
Delete file
Encode data using xor
Get common file path
Read file on windows

Disassembly:
sub esp, 0x26c
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov byte [esp + 0x94], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x95]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x174]
mov dword [esp + 0x10], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esp + 0x27c]
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x80
and ecx, 3
push 3
push eax
push 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x188]
push SysReAllocStringLen
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10019f16
lea ecx, [esp + 0xc]
push ebp
push ecx
lea edx, [esp + 0x1c]
push 0x80
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x10019f05
xor eax, eax
mov cl, byte [esp + eax + 0x14]
xor cl, 0xea
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x80
jb 0x10019eb4
mov eax, dword [esp + 0x280]
mov ecx, 8
lea esi, [esp + 0x14]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x60]
mov ecx, 8
lea esi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x26c
ret 8
push 0x10004ac4
lea ecx, [esp + 0x138]
push 0x10004b98
push ecx
call fcn.1002203e
add esp, 0xc
lea edx, [esp + 0x134]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edx
call edi
cmp eax, 0xffffffff
jne 0x10019f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10019f95
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x10019f6b
mov ebp, eax
jmp 0x10019f6e
push eax
call esi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x9c]
push 0xa0
push eax
push 0
push 0
push 0x22000b
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
call esi
mov al, byte [esp + 0xb4]
test al, al
je 0x1001a026
mov al, byte [esp + 0xd4]
test al, al
je 0x1001a026
mov ecx, dword [esp + 0x27c]
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.10028cf0
add esp, 8
test eax, eax
jne 0x1001a026
mov eax, dword [esp + 0x280]
mov ecx, 8
lea esi, [esp + 0xb4]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x60]
mov ecx, 8
lea esi, [esp + 0x114]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
add esp, 0x26c
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x26c
ret 8