joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f76e
Capabilities:
Read .ini file

Disassembly:
push 0x444
mov eax, 0x4204a4
call fcn.0041f62b
xor edi, edi
push 0x422
lea eax, [ebp - 0x436]
push edi
push eax
mov word [ebp - 0x438], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x212
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.bugreport.ini
lea eax, [ebp - 0x438]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy]
push 0x8000
call fcn.0041ebf4
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x438]
push eax
push 0x4000
push ebx
push str.STRINGTABLE
mov dword [ebp - 0x444], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x40f8e3
cmp word [ebx], di
je 0x40f8e3
lea eax, [ebp - 0x43c]
push eax
mov ecx, ebx
call fcn.004047fa
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.0040952b
push 0x42ae80
xor ecx, ecx
lea esi, [ebp - 0x43c]
call fcn.00412563
mov esi, eax
cmp esi, 0xffffffff
je 0x40f8b6
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x448]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 0x43c]
call fcn.00409589
mov dword [ebp - 0x44c], eax
mov ecx, esi
lea edx, [ebp - 0x440]
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.004095d9
push 0x434024
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404c1f
mov edi, eax
mov eax, dword [ebp - 0x44c]
call fcn.00404856
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
call fcn.004016a4
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.004016a4
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], di
pop ecx
jne 0x40f80b
mov ebx, dword [ebp - 0x444]
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
call fcn.0041f6ae
ret
Function at 0x40f9b6
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x420c1a
call fcn.0041f5c2
mov eax, dword [0x433134]
test eax, eax
je 0x40f9e9
push eax
push 0x42ae8c
push 0x427440
call fcn.004151bb
mov eax, dword [0x433134]
add esp, 0xc
call fcn.0041f69a
ret
mov eax, dword [0x433bb0]
mov ecx, 0x433bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x10]
call fcn.0040f8f3
test al, al
jne 0x40fa34
push str.GetLCID:_Get_Base_Dir_fail_
push 0x427440
call fcn.004151bb
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, esi
jmp 0x40f9e3
push 0x5c
lea edi, [ebp - 0x10]
call fcn.00412597
push 0x2f
call fcn.00412597
push str.I18nconfig.xml
mov eax, edi
push eax
call fcn.004048af
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fa76
push dword [ebp - 0x10]
push str.GetLCID:_config_not_exist___s
push 0x427440
call fcn.004151bb
add esp, 0xc
jmp 0x40fa1d
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_void___thiscall_TiXmlDocument::constructor_void_]
xor ebx, ebx
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_bool___thiscall_TiXmlDocument::LoadFile_wchar_t_const___enum_TiXmlEncoding_]
test al, al
jne 0x40fac0
push str.GetLCID:_Load_File_fail_
push 0x427440
call fcn.004151bb
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
lea ecx, [ebp - 0x60]
mov esi, eax
mov byte [ebp - 4], bl
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
jmp 0x40fa25
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
mov esi, eax
cmp esi, ebx
jne 0x40fad6
push str.GetLCID:_Get_Root_Element_fail_
jmp 0x40fa9b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, esi
mov edi, eax
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::FirstChildElement_void_]
jmp 0x40fb1e
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlNode::Value_void_const]
cmp eax, ebx
je 0x40fb16
push str.locale
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x40fb16
push 0x42afd0
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const__const]
cmp eax, ebx
jne 0x40fb4a
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_void_]
mov esi, eax
cmp esi, ebx
jne 0x40fae8
push edi
push str.GetLCID:_from_default__lu
push 0x427440
call fcn.004151bb
add esp, 0xc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
mov esi, edi
jmp 0x40fa25
push 0xa
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCR80.dll_strtoul]
mov edi, eax
push edi
push str.GetLCID:_from_config__lu
push 0x427440
call fcn.004151bb
add esp, 0x18
jmp 0x40fb37
Function at 0x410313
Capabilities:
Get file version info
Read file on windows

Disassembly:
push 0x184
mov eax, 0x4203fd
call fcn.0041f62b
xor edi, edi
mov ebx, edx
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x54], edi
je 0x4104de
cmp word [ebx], di
je 0x4104de
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x54], eax
je 0x4104de
mov eax, dword [0x433bb0]
mov esi, 0x433bb0
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], edi
mov eax, dword [0x433bb0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
push edi
push ebx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x4103fe
push esi
call fcn.0041ebf4
pop ecx
push eax
push esi
push edi
push ebx
mov dword [ebp - 0x68], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4103f5
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x428334
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4103f5
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x58]
push str._d._d._d._d
push eax
call fcn.00405c6b
add esp, 0x18
push dword [ebp - 0x68]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov ebx, dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push ebx
call esi
test eax, eax
je 0x4104ab
cmp dword [ebp - 0x5c], 0x40
jne 0x4104ab
push edi
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x5c]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x190]
push eax
push ebx
call esi
test eax, eax
je 0x4104ab
cmp dword [ebp - 0x5c], edi
jne 0x4104ab
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR80.dll__gmtime32]
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x84]
push dword [ebp - 0x90]
inc eax
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x80]
add eax, 0x76c
push eax
lea eax, [ebp - 0x60]
push str.__04d__02d__02d__02d:_02d:_02d_GMT
push eax
call fcn.00405c6b
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.0040498c
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, dword [ebp - 0x64]
jmp 0x4104eb
push esi
mov ecx, 0x428548
call fcn.004047fa
mov eax, esi
call fcn.0041f6ae
ret
Function at 0x4104f1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov ebx, eax
push ebx
push 0x42b378
mov esi, 0x427440
push esi
call fcn.004151bb
xor edi, edi
add esp, 0x10
cmp ebx, edi
je 0x4105d3
cmp dword [ebp + 8], edi
je 0x4105d3
push str.MiniDumpWriteDump
push str.dbghelp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x410562
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_MiniDumpWriteDump_failed___ld_
push esi
call fcn.004151bb
add esp, 0xc
jmp 0x4105e5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x410597
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_empty_dump_file_failed___ld_
jmp 0x410554
push edi
push edi
push dword [ebp + 8]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [esp + 0x2c]
mov ebx, eax
cmp ebx, edi
jne 0x4105c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump_failed___ld_
push esi
call fcn.004151bb
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4105e7
push dword [ebp + 8]
push ebx
push str.Invalid_parameters__file_s__exceptioninfo_p
push esi
call fcn.004151bb
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4105ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041229a
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.004016a4
cmp edi, esi
jne 0x4106f2
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push str.FullDump
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], 4
call edi
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x74], 4
jne 0x4106db
cmp dword [ebp - 0x6c], ebx
jne 0x4106db
push 0x62
lea eax, [ebp - 0x66]
push esi
push eax
mov word [ebp - 0x68], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.HASH
push dword [ebp - 0x70]
mov dword [ebp - 0x84], 0x64
mov dword [ebp - 0x80], ebx
call edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x7c]
mov word [ebp - 6], si
call fcn.00404ea1
test eax, eax
jne 0x4106db
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4106f7
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 4
jne 0x4106f2
cmp dword [ebp - 0x6c], 2
mov eax, ebx
je 0x4106f7
mov eax, dword [0x434018]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec06
leave
ret

Function at 0x41090e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0041229a
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004016a4
test bl, bl
pop ebx
je 0x41099b
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.bUseInterMod
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 4
jne 0x41099b
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x41099b
mov dword [0x434018], eax
leave
ret
Function at 0x41099d
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x410a0d
push str.C:_temp_
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
je 0x410a38
mov word [ebp + eax*2 - 0x20c], 0x5c
mov word [ebp + eax*2 - 0x20a], bx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Tencent_
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.004047fa
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec06
leave
ret

Function at 0x410a8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0041f780
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1028], 0
push ebx
mov dword [ebp - 0x1020], eax
push esi
push edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, ecx
lea esi, [ebp - 0x108c]
mov dword [ebp - 0x1024], ebx
stosb byte es:[edi], al
call fcn.0041d15b
push 0x42b59c
push ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x410b2a
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov edi, 0x1000
jmp 0x410b0c
lea ecx, [ebp - 0x101c]
lea edx, [ebp - 0x108c]
call fcn.0041d8a5
push ebx
push edi
lea eax, [ebp - 0x101c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x410afb
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x410b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1024]
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x427440
call fcn.004151bb
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x108c]
call fcn.0041dab0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1020]
call fcn.00410b7f
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1020]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec06
leave
ret
Function at 0x4115c1
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x411627
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x411601
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41161a
push 0x103
push dword [ebp - 4]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
and word [esi + 0x206], 0
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4117c9
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x4117f4
push str.CreateTxtFile_failed__empty_file_path_
push 0x427440
call fcn.004151bb
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str.Create_txt_file___s__failed___ld_
push 0x427440
call fcn.004151bb
add esp, 0x10
jmp 0x4117ed
push edi
lea eax, [ebp - 4]
push eax
push 3
push 0x42bf84
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call edi
test eax, eax
jne 0x41186b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str._1_Write_prefix_to_txt_file___s__failed___ld_
jmp 0x411829
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.00414cf2
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push ebx
call edi
test eax, eax
push ebx
jne 0x4118c6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str._2_Write_content_to_txt_file___s__failed___ld_
push 0x427440
call fcn.004151bb
add esp, 0x10
xor esi, esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004016a4
mov eax, esi
jmp 0x4117ef
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x4118b4
Function at 0x4118d1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
push edi
jne 0x4118ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411924
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x427440
call fcn.004151bb
add esp, 0x10
jmp 0x4118e6
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x434018], esi
mov dword [ebp - 0xc], eax
jne 0x411966
cmp dword [ebp - 8], esi
jne 0x411949
cmp eax, 0x500000
jbe 0x411966
push dword [ebx]
push str.add_zip._file_size_over_5M____s_
push 0x427440
call fcn.004151bb
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4118e6
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x41195d
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41199a
push ebx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, esi
jmp 0x4118e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jbe 0x4119d2
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
push ebx
call fcn.00413b3e
test al, al
je 0x4119d2
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.add_zip_success.___s_
push 0x427440
call fcn.004151bb
add esp, 0xc
xor esi, esi
inc esi
jmp 0x41198b

Function at 0x411cb4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x411cc5
xor eax, eax
xor edx, edx
jmp 0x411d14
push edi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411ce8
xor eax, eax
xor edx, edx
jmp 0x411d13
push ebx
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push esi
push dword [ebp + 8]
call fcn.0041f740
xor ecx, ecx
add eax, ebx
adc edx, ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x411d17
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.0041229a
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
mov edi, 0xf003f
push edi
xor ebx, ebx
push ebx
push eax
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004016a4
cmp dword [ebp - 0xc], ebx
je 0x411d9d
cmp dword [ebp + 8], ebx
je 0x411df5
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041229a
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004016a4
cmp esi, ebx
je 0x411d9d
xor eax, eax
jmp 0x411df8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push str.FullDump
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], ebx
je 0x411dde
cmp dword [ebp + 8], 2
je 0x411dde
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x411dec
push str.HASH
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411dfd
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
and word [ebp - 0x20c], 0
push esi
push edi
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x428334
je 0x411e85
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.TencentQQMiscQQTroubleShoot
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411ec4
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411ec4
push dword [ebp - 0x210]
call fcn.0041099d
pop ecx
jmp 0x411edf
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.004047fa
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ec06
leave
ret