vep加密解密提取器源代码

#pragma once
#include <string>
int ListDirName(void);
//int main11();
bool EndsWith(const std::string& str, const std::string& suffix);
bool compare_pred(unsigned char a, unsigned char b);
int  Decode(char* fileName);
int Dump();
int WriteIniFile(char* filename);
int main11(char* path); #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <Windows.h>
#include <stdio.h>
#include <io.h>
#include <string>
#include "标头.h"
#define MAX 128
 
 
using namespace std;
 
 
int  Decode(const char * fileName,const char *Storage) {
        char* fileN = (char*)malloc(MAX);
        sprintf(fileN, "%s%s%s", "c:\\\\Windows\\\\dhf\\\\", fileName,".tmp");
        FILE* fp = fopen(fileN,"rb");
        fseek(fp, 0, SEEK_END);
        DWORD dwsize = ftell(fp);
        byte* buffer = new byte[dwsize + 1];
        memset(buffer, 0, dwsize + 1);
        fseek(fp, 0, SEEK_SET);
        fread(buffer, dwsize, 1, fp);
        fclose(fp);
        int t = (int)buffer[0];
        for (DWORD i = 0; i < dwsize; i++)
        {
                buffer[i] ^= t;
        }
        char* fileNa = (char*)malloc(MAX);
        sprintf(fileNa, "%s%s%s%s", Storage, ":\\\\", fileName,".mp4");
        FILE* fp2 = fopen(fileNa, "wb");
        fwrite(buffer, dwsize, 1, fp2);
        fclose(fp2);
        printf("提取成功,文件所在目录为%s盘", Storage); ///微!信:shipinjiemi
        return EXIT_SUCCESS;
}
int Dump() {
        HMODULE   hModule = NULL;
 
        FARPROC   lpFunc = NULL;
 
        hModule = LoadLibrary(L"HRC5.dll");
        //printf("%X\n", hModule);
 
        if (hModule)
                lpFunc = GetProcAddress(hModule, "StartDHFDump");
 
        if (lpFunc != (FARPROC)NULL)
                (*lpFunc)();
 
        FreeLibrary(hModule);
        return EXIT_SUCCESS;
}
int main(int argc,char **argv) {
        Dump();
        Decode(argv[1], argv[2]);
}

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值