joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441f80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441fb3
push esi
call fcn.00445090
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441fac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442039
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442022
mov eax, dword [esi + 8]
test eax, eax
je 0x441fd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44201e
cmp eax, 2
je 0x442022
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441fca
cmp eax, 3
je 0x441ffd
cmp eax, 1
jne 0x441fca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441fca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441fca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442060
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442048
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442060
add esp, 4
pop esi
ret

Function at 0x463b35
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463b6d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461bec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461bc4
jmp 0x463b79
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x465226
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x465268
call fcn.0046ace4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465268
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46525f
xor eax, eax
jmp 0x465270
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465276
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b214
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b242
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b260
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b17a
jmp 0x46b260
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b260
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b17a
test edi, edi
mov eax, edi
jne 0x46b24a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401cf7
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x4795c0
jmp 0x401ce0
push 0xffffffffffffffff
push 0x45f0f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x464ad4
lea ecx, [esi + 0x2c]
mov dword [esi + 4], 0x464ad0
call fcn.00406bc0
xor ebx, ebx
lea ecx, [esi + 0x94]
mov dword [esp + 0x18], ebx
call fcn.004052e0
lea ecx, [esi + 0xb4]
mov byte [esp + 0x18], 1
call fcn.00403b60
lea ecx, [esi + 0xd8]
mov byte [esp + 0x18], 2
call fcn.00404510
lea ecx, [esi + 0x1e8]
mov byte [esp + 0x18], 3
mov dword [esi + entry0], 0x464ac8
call fcn.00407100
lea ecx, [esi + 0x219a4]
mov byte [esp + 0x18], 4
call fcn.00420800
lea ecx, [esi + 0x219b4]
call fcn.004233d0
lea ecx, [esi + 0x27d84]
mov byte [esp + 0x18], 5
call fcn.00429960
lea edx, [esi + 0x29020]
mov ecx, 0x15
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea ecx, [esi + 0x29078]
mov byte [esp + 0x18], 6
mov byte [edx], 0x14
call fcn.00422940
lea ecx, [esi + 0x2910c]
mov byte [esp + 0x18], 7
call fcn.00435340
lea ecx, [esi + 0x29114]
mov byte [esp + 0x18], 8
call fcn.00405c40
mov dword [esi], 0x464ac4
mov dword [esi + 4], 0x464ac0
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [0x4a272c], ebx
mov dword [esi + 0x90], 0x7b
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [0x4a2730], ebx
push 0xc
mov byte [esp + 0x1c], 9
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x1e4], ebx
mov dword [esi + 0x29110], ebx
mov dword [esi + 0x29168], ebx
mov dword [esi + 0x34], ebx
call sub.MFC42.DLL_operatornew
mov dword [esi + 0x34], eax
mov dword [eax], 0xba
mov eax, dword [esi + 0x34]
push 0xc
mov dword [eax + 4], 0xa
mov ecx, dword [esi + 0x34]
mov dword [ecx + 8], 0x193
mov dword [esi + 0x30], ebx
call sub.MFC42.DLL_operatornew
add esp, 8
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dword [esi + 0x30], eax
mov dword [eax], edx
pop edi
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edi, ecx
push 0x4a2734
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call fcn.0045a99c
add esp, 4
push str.hcq.dll
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00441552
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [edi + 0x68], eax
je 0x402a66
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4029bf
mov eax, dword [edi + 0x68]
push eax
jmp 0x402a60
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0x466938
push 0x464ab0
call eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x402a5c
test eax, eax
jl 0x402a5c
mov edx, dword [ecx]
lea esi, [edi + 0x74]
push esi
push 0x464a90
push 0
push ecx
call dword [edx + 0xc]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x402a4a
test ebp, ebp
jl 0x402a4a
mov edx, dword [eax]
push 0x10
push eax
call dword [edx + 0xc]
mov eax, dword [edi + 0xd8]
lea ecx, [edi + 0xd8]
call dword [eax + 0x58]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [edi + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
jmp 0x402a66
mov edx, dword [edi + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402c20
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x45f618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push 0x4a2734
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.0045a99c
add esp, 4
push str...GameListMenu1.dll
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.00441552
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x6c], eax
je 0x402d69
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateRMenuObject
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x6c]
push str.ReleaseRMenuWnd
push eax
call edi
mov ecx, dword [esi + 0x6c]
push str.AddNewMenu
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x6c]
push str.CreateRMenu
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x6c]
push str.SetLpIGameSite
push eax
call edi
mov ecx, dword [esi + 0x6c]
push str.MenuOnOtherMsg
push ecx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x10]
cmp eax, ebx
pop edi
je 0x402d4d
cmp dword [esi + 0x14], ebx
je 0x402d4d
cmp dword [esi + 0x18], ebx
je 0x402d4d
cmp dword [esi + 0x1c], ebx
je 0x402d4d
cmp dword [esi + 0x20], ebx
je 0x402d4d
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x10], ebx
push edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x6c], ebx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4032b0
Capabilities:
Set current directory

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x4032cb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x10]
push eax
call fcn.0045a99c
mov ecx, dword [eax]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0
call fcn.00443080
add esp, 4
mov dword [esi + 0x8c], eax
test eax, eax
jne 0x403314
push eax
push eax
push str.CxImage::CreateDisplay_2D_D3D8__Failed_
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
push edi
push ebx
push ebp
mov ecx, eax
call dword [edx + 0xc]
test eax, eax
je 0x40337c
call fcn.00443110
push 0x4722e8
call fcn.00443080
add esp, 4
mov dword [esi + 0x8c], eax
test eax, eax
jne 0x403360
push eax
push eax
push str.2_CxImage::CreateDisplay_2D__Failed_
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edx, dword [eax]
push edi
push ebx
push ebp
mov ecx, eax
call dword [edx + 0xc]
test eax, eax
je 0x40337c
push 0
push 0
push str.2_Create_DirectDraw_Failed_
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc

Function at 0x4039e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x408]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40c]
push eax
push ecx
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret

Function at 0x406130
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x472410]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x4064d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x40653d
mov al, byte [esp + 0x14]
test al, al
je 0x40653d
cmp al, 0x20
je 0x406535
cmp al, 9
jne 0x406580
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40652d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x406573
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x406573
test ebx, ebx
je 0x406573
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x406573
push ebx
push edx
push esi
call dword [0x472070]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x406646
cmp byte [esp + 0x14], 0x5c
je 0x406646
test ebx, ebx
je 0x406573
mov edi, dword [esp + 0x120]
test edi, edi
je 0x406573
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x406573
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x4065d7
push 0x2f
push ebx
call esi
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x4065fe
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x406629
cmp ebp, esi
jle 0x406629
push esi
push ebx
push ebp
push edi
call dword [0x472418]
add esp, 0x10
mov byte [esi + edi], 0
jmp 0x406629
mov esi, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
call fcn.00406970
test eax, eax
je 0x40661b
push ebx
push ebp
push edi
call dword [0x472070]
add esp, 0xc
push 0x47259c
push ebp
push edi
mov ecx, esi
call fcn.004069e0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push edi
call fcn.004069e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004064d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x40be80
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40bea5
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.0040bfa0
pop esi
add esp, 0x2c
ret 8
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x40beb9
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x3c]
lea edx, [esi + 0x10]
push 0
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [0x4a291c]
mov ecx, dword [0x4a2918]
push eax
push 0
push ecx
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push SysStringLen
push 0
push str.tooltips_class32
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 5
push eax
mov dword [esi + 0x40], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4a291c]
mov edx, dword [0x4a2918]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], 0x2c
test al, al
mov dword [esp + 8], 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edx
jne 0x40bf5c
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 4]
push edx
push 0
push 0x404
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x2c
ret 8

Function at 0x40c0e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x40
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 4]
test eax, eax
je 0x40c184
test byte [eax], 8
je 0x40c10e
push str.Ctrl
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 4]
test byte [eax], 4
je 0x40c122
push str.Shift
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 4]
test byte [ecx], 0x10
je 0x40c136
push str.Alt
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 4]
test byte [eax], 1
je 0x40c172
xor edx, edx
push 0
mov dx, word [eax + 2]
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esp + 8]
push 0x40
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 8]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
pop edi
pop esi
add esp, 0x40
ret 4
cmp word [eax + 2], 0x1b
je 0x40c184
mov al, byte [eax + 2]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator
pop edi
pop esi
add esp, 0x40
ret 4
Function at 0x41cf70
Capabilities:
Create directory

Disassembly:
mov dl, byte [ecx + 0x10]
sub esp, 0x100
lea eax, [ecx + 0x10]
push ebx
push ebp
push esi
push edi
test dl, dl
jne 0x41cf9d
push str.CreateLogPath_Error__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x10]
push ecx
push eax
push str._s__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xf]
mov cl, byte [esp + ecx + 0xf]
cmp cl, 0x2f
jne 0x41cfd3
mov byte [eax], 0
mov ebp, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [esp + 0x10]
push 0x2f
push eax
call ebp
add esp, 8
test eax, eax
je 0x41d081
mov bl, byte [eax + 1]
lea edi, [eax + 1]
test bl, bl
je 0x41d08f
mov byte [edi], 0
lea esi, [esp + 0x10]
mov eax, 0x47310c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41d02b
test cl, cl
je 0x41d027
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41d02b
add eax, 2
add esi, 2
test cl, cl
jne 0x41d007
xor eax, eax
jmp 0x41d030
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d078
lea esi, [esp + 0x10]
mov eax, 0x473108
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41d061
test cl, cl
je 0x41d05d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41d061
add eax, 2
add esi, 2
test cl, cl
jne 0x41d03d
xor eax, eax
jmp 0x41d066
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d078
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
mov byte [edi], bl
mov eax, edi
jmp 0x41cfdd
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x41dd80
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x460a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, ecx
push esi
xor eax, eax
push edi
lea esi, [ebp + 0x964]
push eax
mov ecx, 0x41
mov edi, esi
push 0x1a
push esi
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.0041df10
cmp eax, 0xa
je 0x41de42
mov ecx, ebp
call fcn.0041df10
cmp eax, 0xb
je 0x41de42
lea eax, [esp + 0x10]
push eax
call fcn.0045a99c
add esp, 4
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00441552
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push str.PicDownload
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mkdir]
push ecx
call edi
add esp, 4
lea ecx, [esp + 0xc]
push str.SmallPic
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0xc]
push edx
jmp 0x41dec5
push esi
lea ecx, [esp + 0x10]
call fcn.00441636
push str.Tencent
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mkdir]
push eax
call edi
add esp, 4
lea ecx, [esp + 0xc]
push 0x473328
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xc]
push ecx
call edi
add esp, 4
lea ecx, [esp + 0xc]
push str.DaJiaLaiZhaoCha
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0xc]
push edx
call edi
add esp, 4
lea ecx, [esp + 0xc]
push 0x473304
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
push eax
call edi
add esp, 4
lea ecx, [esp + 0xc]
push str.SmallPic
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x103
sub edx, ecx
push edx
push str.TencentQQGameDaJiaLaiZhaoCha
push esi
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41df10
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push eax
call esi
test eax, eax
jne 0x41df55
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push ecx
call esi
test eax, eax
je 0x41e092
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x41e030
mov eax, dword [esp + 0x30]
cmp eax, 4
ja 0x41df99
pop edi
mov eax, 5
pop esi
add esp, 0xc0
ret
cmp eax, 5
jne 0x41dff4
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41dfb4
pop edi
mov eax, 6
pop esi
add esp, 0xc0
ret
cmp eax, 1
jne 0x41dfc7
pop edi
mov eax, 7
pop esi
add esp, 0xc0
ret
cmp eax, 2
jne 0x41e022
cmp byte [esp + 0xc6], 1
jne 0x41dfe6
mov eax, 9
cmp word [esp + 8], ax
je 0x41e094
pop edi
mov eax, 8
pop esi
add esp, 0xc0
ret
cmp eax, 6
jne 0x41e022
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41e00f
pop edi
mov eax, 0xa
pop esi
add esp, 0xc0
ret
cmp eax, 1
jne 0x41e022
pop edi
mov eax, 0xb
pop esi
add esp, 0xc0
ret
pop edi
mov eax, 0x14
pop esi
add esp, 0xc0
ret
cmp eax, 1
jne 0x41e092
cmp dword [esp + 0x30], 4
jne 0x41e092
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41e052
pop edi
mov eax, 1
pop esi
add esp, 0xc0
ret
cmp eax, 0xa
jne 0x41e07f
mov al, byte [esp + 0x41]
cmp al, 0x41
je 0x41e071
cmp al, 0x42
je 0x41e071
pop edi
mov eax, 2
pop esi
add esp, 0xc0
ret
pop edi
mov eax, 3
pop esi
add esp, 0xc0
ret
cmp eax, 0x5a
jne 0x41e092
pop edi
mov eax, 4
pop esi
add esp, 0xc0
ret
xor eax, eax
pop edi
pop esi
add esp, 0xc0
ret