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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100519c1
mov eax, dword fs:[0]
push eax
mov eax, 0x1104
call fcn.10020f30
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov edi, ecx
mov esi, edx
push 0x1005e2e3
lea ecx, [ebp - 0x10cc]
mov dword [ebp - 0x110c], eax
mov dword [ebp - 0x1108], esi
mov dword [ebp - 0x1110], ebx
mov dword [ebp - 0x10b8], 0xf
mov dword [ebp - 0x10bc], ebx
mov byte [ebp - 0x10cc], bl
call fcn.10007150
push 0x40e
lea edx, [ebp - 0x8ae]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x8b0], cx
call fcn.1001ba60
add esp, 0xc
cmp edi, ebx
jne 0x1000812d
xor eax, eax
jmp 0x10008170
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jg 0x10008168
lea eax, [ebx + ebx]
call fcn.1001b580
mov esi, esp
test esi, esi
je 0x10008168
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1000816a
xor eax, eax
mov esi, dword [ebp - 0x1108]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [ebp - 0x8b0]
push ecx
call ebx
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x8e]
push eax
mov word [ebp - 0x90], dx
call fcn.1001ba60
movzx ecx, word [ebp + 0xc]
push ecx
lea edx, [ebp - 0x90]
push 0x1005e52c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x10ae]
push ecx
mov word [ebp - 0x10b0], ax
call fcn.1001ba60
add esp, 0x24
test esi, esi
je 0x10008212
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x10008212
lea eax, [edi + edi]
call fcn.1001b580
mov esi, esp
test esi, esi
je 0x10008212
mov eax, dword [ebp - 0x1108]
push edi
push esi
push 0xffffffffffffffff
xor edx, edx
push eax
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10008214
xor eax, eax
push eax
lea ecx, [ebp - 0x10b0]
push ecx
call ebx
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x49e]
push eax
mov word [ebp - 0x4a0], dx
call fcn.1001ba60
add esp, 0xc
lea ecx, [ebp - 0x4a0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x296]
push eax
mov word [ebp - 0x298], dx
call fcn.1001ba60
add esp, 0xc
lea ecx, [ebp - 0x298]
push ecx
push 0
push 0
lea edx, [ebp - 0x4a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x10b0]
push ecx
lea ecx, [ebp - 0x90]
lea edx, [ebp - 0x8b0]
call fcn.10018560
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea edx, [ebp - 0x298]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000831e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x110c]
lea ecx, [ebp - 0x10cc]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
call fcn.10002330
cmp dword [ebp - 0x10b8], 0x10
jb 0x1000850d
mov edx, dword [ebp - 0x10cc]
push edx
jmp 0x10008505
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 1
jae 0x10008347
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000846a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [ebp - 0x1108]
push ecx
push ebx
mov edi, eax
push edi
push esi
mov dword [ebp - 0x1108], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x298]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push esi
push 0x1005e2e3
lea ecx, [ebp - 0x10e8]
mov dword [ebp - 0x10d4], 0xf
mov dword [ebp - 0x10d8], esi
mov byte [ebp - 0x10e8], 0
call fcn.10007150
mov byte [ebp - 4], 1
test ebx, ebx
je 0x100083e6
jmp 0x100083c0
xor byte [esi + edi], 0xbc
mov al, byte [esi + edi]
mov byte [ebp - 0x1110], al
mov eax, dword [ebp - 0x1110]
push eax
push 1
lea ecx, [ebp - 0x10e8]
call fcn.10001350
inc esi
cmp esi, ebx
jb 0x100083c0
lea ecx, [ebp - 0x10cc]
push ecx
lea edx, [ebp - 0x10e8]
push edx
call fcn.10001200
mov eax, dword [ebp - 0x10cc]
mov esi, 0x10
add esp, 8
cmp dword [ebp - 0x10b8], esi
jae 0x10008415
lea eax, [ebp - 0x10cc]
push eax
lea eax, [ebp - 0x1104]
push eax
call fcn.10004620
add esp, 8
push eax
lea ecx, [ebp - 0x10cc]
mov byte [ebp - 4], 2
call fcn.10002330
cmp dword [ebp - 0x10f0], esi
jb 0x1000844c
mov ecx, dword [ebp - 0x1104]
push ecx
call fcn.10019165
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10d4], esi
jb 0x1000846a
mov edx, dword [ebp - 0x10e8]
push edx
call fcn.10019165
add esp, 4
mov esi, dword [ebp - 0x110c]
xor edi, edi
mov ebx, 0xf
lea eax, [ebp - 0x10cc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov byte [esi], 0
cmp esi, eax
je 0x100084f5
cmp dword [esi + 0x14], 0x10
jb 0x1000849b
mov ecx, dword [esi]
push ecx
call fcn.10019165
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov byte [esi], 0
cmp dword [ebp - 0x10b8], 0x10
jae 0x100084d9
mov edx, dword [ebp - 0x10bc]
inc edx
push edx
lea eax, [ebp - 0x10cc]
push eax
push esi
call fcn.10019350
mov edx, dword [ebp - 0x10bc]
mov eax, dword [ebp - 0x10b8]
add esp, 0xc
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x1000850d
mov ecx, dword [ebp - 0x10cc]
mov edx, dword [ebp - 0x10bc]
mov eax, dword [ebp - 0x10b8]
mov dword [esi], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x1000850d
cmp dword [ebp - 0x10b8], 0x10
jb 0x1000850d
mov ecx, dword [ebp - 0x10cc]
push ecx
call fcn.10019165
add esp, 4
mov eax, esi
lea esp, [ebp - 0x1120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret