Function at 0x407490
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x493b4
call fcn.00425df0
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x4074bc
jmp 0x4074ce
lea eax, [ebp - 0x46020]
push 0xabe0
push 0
push eax
call fcn.0040c210
add esp, 0xc
lea eax, [ebp - 0x3b270]
push 0x36000
push 0
push eax
call fcn.0040c210
add esp, 0xc
lea eax, [ebp - 0x50a8]
push 0x50a0
push 0
push eax
call fcn.0040c210
add esp, 8
mov ecx, 0x4b3a20
call fcn.00403b50
test al, al
je 0x407951
push ecx
mov ecx, 0x435100
call fcn.00401d90
test al, al
je 0x407951
push ecx
mov ecx, 0x463450
call fcn.004027c0
test al, al
je 0x407951
push ecx
mov ecx, 0x6c3e00
call fcn.0040a1e0
test al, al
je 0x407951
sub esp, 8
mov ecx, 0x672380
call fcn.0040a8a0
test al, al
je 0x407951
push ecx
mov ecx, 0x6c3c38
call fcn.004054b0
test al, al
je 0x407951
push ecx
call fcn.004038a0
test al, al
je 0x407951
push 0x3390
lea eax, [ebp - 0x493b0]
push 0x4b3aa4
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x46020]
push 0x3390
push 0x4b6e34
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x42c90]
push 0x3390
push 0x4ba1c4
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x3f900]
push 0x2260
push 0x435104
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x3d6a0]
push 0x2260
push 0x463454
push eax
call fcn.0040d790
movups xmm0, xmmword [0x6c3fb0]
add esp, 0xc
lea edi, [ebp - 0x3b440]
mov ecx, 0x6c
lea eax, [ebp - 0x3b270]
mov esi, 0x6c3e00
rep movsd dword es:[edi], dword [esi]
movups xmmword [ebp - 0x3b290], xmm0
push 0x12000
movups xmm0, xmmword [0x6c3fc0]
push 0x672384
push eax
movups xmmword [ebp - 0x3b280], xmm0
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x29270]
push 0x12000
push 0x684384
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x17270]
push 0x12000
push 0x696384
push eax
call fcn.0040d790
movups xmm0, xmmword [0x6c3c38]
add esp, 0xc
movups xmmword [ebp - 0x5270], xmm0
movups xmm0, xmmword [0x6c3c48]
movups xmmword [ebp - 0x5260], xmm0
movups xmm0, xmmword [0x6c3c58]
movups xmmword [ebp - 0x5250], xmm0
movq xmm0, qword [0x6c3c68]
movq qword [ebp - 0x5240], xmm0
movups xmm0, xmmword [0x6c3c70]
movups xmmword [ebp - 0x5238], xmm0
movups xmm0, xmmword [0x6c3c80]
movups xmmword [ebp - 0x5228], xmm0
movups xmm0, xmmword [0x6c3c90]
movups xmmword [ebp - 0x5218], xmm0
movq xmm0, qword [0x6c3ca0]
movq qword [ebp - 0x5208], xmm0
movups xmm0, xmmword [0x6c3ca8]
movups xmmword [ebp - 0x5200], xmm0
movups xmm0, xmmword [0x6c3cb8]
movups xmmword [ebp - 0x51f0], xmm0
movups xmm0, xmmword [0x6c3cc8]
movups xmmword [ebp - 0x51e0], xmm0
movups xmm0, xmmword [0x6c3cd8]
movups xmmword [ebp - 0x51d0], xmm0
movups xmm0, xmmword [0x6c3ce8]
movups xmmword [ebp - 0x51c0], xmm0
mov eax, dword [0x6c3de8]
movups xmm0, xmmword [0x6c3cf8]
mov dword [ebp - 0x50c0], eax
mov eax, dword [0x6c3dfc]
movups xmmword [ebp - 0x51b0], xmm0
push 0x50a0
movups xmm0, xmmword [0x6c3d08]
mov dword [ebp - 0x50ac], eax
lea eax, [ebp - 0x50a8]
push 0x6a9248
movups xmmword [ebp - 0x51a0], xmm0
push eax
movups xmm0, xmmword [0x6c3d18]
movups xmmword [ebp - 0x5190], xmm0
movups xmm0, xmmword [0x6c3d28]
movups xmmword [ebp - 0x5180], xmm0
movups xmm0, xmmword [0x6c3d38]
movups xmmword [ebp - 0x5170], xmm0
movups xmm0, xmmword [0x6c3d48]
movups xmmword [ebp - 0x5160], xmm0
movups xmm0, xmmword [0x6c3d58]
movups xmmword [ebp - 0x5150], xmm0
movups xmm0, xmmword [0x6c3d68]
movups xmmword [ebp - 0x5140], xmm0
movups xmm0, xmmword [0x6c3d78]
movups xmmword [ebp - 0x5130], xmm0
movups xmm0, xmmword [0x6c3d88]
movups xmmword [ebp - 0x5120], xmm0
movq xmm0, qword [0x6c3d98]
movq qword [ebp - 0x5110], xmm0
movups xmm0, xmmword [0x6c3da0]
movups xmmword [ebp - 0x5108], xmm0
movups xmm0, xmmword [0x6c3db0]
movups xmmword [ebp - 0x50f8], xmm0
movups xmm0, xmmword [0x6c3dc0]
movups xmmword [ebp - 0x50e8], xmm0
movq xmm0, qword [0x6c3dd0]
movq qword [ebp - 0x50d8], xmm0
movups xmm0, xmmword [0x6c3dd8]
movups xmmword [ebp - 0x50d0], xmm0
movups xmm0, xmmword [0x6c3dec]
movups xmmword [ebp - 0x50bc], xmm0
call fcn.0040d790
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x493b0]
mov edx, eax
xor cl, al
shr edx, 8
xor dl, 0x97
xor cl, 0xdc
sub cl, dl
mov byte [ebp + eax - 0x493b0], cl
inc eax
cmp eax, 0x493a8
jb 0x407864
push str..DataLocal_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40789d
test al, 0x10
jne 0x4078aa
push str.mkdir__DataLocal_
call fcn.0041508f
add esp, 4
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str..DataLocalCommon.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40795e
push 0
lea eax, [ebp - 0x493b4]
mov dword [ebp - 0x493b4], 0
push eax
push 0x493a8
lea eax, [ebp - 0x493b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x407911
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407929
jmp 0x407940
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
push str.pause
call fcn.0041508f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret