Function at 0x1001a6f0
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]
mov edi, dword [esp + 0x27c]
or ecx, 0xffffffff
xor eax, eax
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 0x1001a834
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 0x1001a825
xor eax, eax
mov cl, byte [esp + eax + 0x14]
xor cl, 0xea
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x80
jb 0x1001a7d4
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
push 0x10004b3c
lea ecx, [esp + 0x138]
push 0x10004c10
push ecx
call fcn.10022cae
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 0x1001a877
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001a8b3
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x1001a889
mov ebp, eax
jmp 0x1001a88c
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 0x1001a942
mov al, byte [esp + 0xd4]
test al, al
je 0x1001a942
mov ecx, dword [esp + 0x27c]
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.10029960
add esp, 8
test eax, eax
jne 0x1001a942
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
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x26c
ret