[HELP] how to use function from dll ?

Doubts, help and support about QuickBMS and other game research tools
lamjed001
Posts: 17
Joined: Fri Aug 31, 2018 11:15 am

[HELP] how to use function from dll ?

Post by lamjed001 »

I have dll files !
hash.zip


There are a function that encrypt content and put it in variable named X-Client-Sign.
I need to use this function to encrypt content using quickbms and i need to get function sourcecode if it is possible because i need to translate it to php

Thank You!
Last edited by lamjed001 on Fri Apr 10, 2020 7:08 pm, edited 1 time in total.
lamjed001
Posts: 17
Joined: Fri Aug 31, 2018 11:15 am

Re: how to use function from dll ?

Post by lamjed001 »

I hope I learn this because I like this field and i care about it, but I don't know how
I hope someone will teach me or send me videos that teach me
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [HELP] how to use function from dll ?

Post by aluigi »

It's quite easy to do that with quickbms but most depends by the prototype of the function you want to call and by your work in figuring out the correct calling convention and arguments (reverse engineering):
CallDLL hash.dll name_of_the_function stdcall RETURN_VALUE [ARG1] [ARG2] ... [ARGn]

"stdcall" is the classical calling convention on Windows, but some C/C++ compilers opt for "cdecl" while other programming languages and compilers opt for thiscall and so on (that makes everything more long and complex).

I didn't and will not check your dll, and I can't help figuring out the prototype, calling convention, name of the function, definitely will not help with reverse engineering.

Probably you don't need any dll for calculating that "X-Client-Sign", Google: "sha256hex(client_api_id + json + client_api_key)"