Function at 0x401000
Capabilities:
Delete file
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 4], 0x100000
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x54], eax
jmp 0x40106a
mov eax, dword [ebp - 0x54]
sub eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x401081
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x2e
je 0x401081
jmp 0x401061
mov eax, dword [ebp - 0x54]
lea ecx, [eax + eax + 2]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
add eax, 1
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00404af0
add esp, 8
mov dword [ebp - 0x50], 0
jmp 0x4010c0
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jge 0x4010fe
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5f
jne 0x4010e8
mov eax, 0x2e
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov word [edx + ecx*2], ax
jmp 0x4010fc
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp + 8]
mov dx, word [esi + edx*2]
mov word [ecx + eax*2], dx
jmp 0x4010b7
xor eax, eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov word [edx + ecx*2], ax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x401136
xor eax, eax
jmp 0x401486
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x401159
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401486
mov dword [ebp - 0x60], 0xffffff00
mov dword [ebp - 0x5c], 0xffffffff
push 2
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x48]
push eax
push 0x100
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00401960
add esp, 8
test eax, eax
je 0x4013ec
mov dword [ebp - 0x68], 0xffffff00
mov dword [ebp - 0x64], 0xffffffff
push 2
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x401241
xor eax, eax
jmp 0x401486
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x401264
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401486
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00403cf0
add esp, 0xc
test eax, eax
je 0x4013ec
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4013ec
cmp dword [ebp - 0x14], 0
je 0x4013ec
xorpd xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00404af0
add esp, 8
mov eax, dword [ebp - 4]
cdq
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
sbb esi, dword [ebp - 0x3c]
sub ecx, 0x100
sbb esi, 0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], esi
mov edx, dword [ebp - 0xac]
cmp edx, dword [ebp - 0xb4]
jl 0x401345
jg 0x401322
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0xb8]
jbe 0x401345
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
sbb edx, dword [ebp - 0x3c]
sub ecx, 0x100
sbb edx, 0
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], edx
jmp 0x401355
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401380
xor eax, eax
jmp 0x401486
cmp dword [ebp - 0x48], 0
jne 0x401388
jmp 0x4013ec
mov eax, dword [ebp - 0x48]
xor ecx, ecx
add eax, dword [ebp - 0x40]
adc ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 4]
jae 0x4013a8
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4013e5
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4013e7
jmp 0x4013ec
jmp 0x4012bc
cmp dword [ebp - 0x10], 0
je 0x4013fc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x40140e
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x58]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x24], 0
je 0x40147a
cmp dword [ebp - 0x28], 0
je 0x40147a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x401486
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret