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

Disassembly:
push 0x444
mov eax, 0x41fd9c
call fcn.0041eefb
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.0041e4c4
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 0x40f204
cmp word [ebx], di
je 0x40f204
lea eax, [ebp - 0x43c]
push eax
mov ecx, ebx
call fcn.004047a6
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.00409124
push 0x429ad8
xor ecx, ecx
lea esi, [ebp - 0x43c]
call fcn.00411e84
mov esi, eax
cmp esi, 0xffffffff
je 0x40f1d7
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.00409182
mov dword [ebp - 0x44c], eax
mov ecx, esi
lea edx, [ebp - 0x440]
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.004091d2
push 0x432f94
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404bd7
mov edi, eax
mov eax, dword [ebp - 0x44c]
call fcn.00404802
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
call fcn.00401689
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
call fcn.00401689
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.00401689
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], di
pop ecx
jne 0x40f12c
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.0041ef7e
ret
Function at 0x40f2d7
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x4204cf
call fcn.0041ee92
mov eax, dword [0x432134]
test eax, eax
je 0x40f30a
push eax
push 0x429ae4
push 0x426430
call fcn.00414b27
mov eax, dword [0x432134]
add esp, 0xc
call fcn.0041ef6a
ret
mov eax, dword [0x432b20]
mov ecx, 0x432b20
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x10]
call fcn.0040f214
test al, al
jne 0x40f355
push str.GetLCID:_Get_Base_Dir_fail_
push 0x426430
call fcn.00414b27
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401689
mov eax, esi
jmp 0x40f304
push 0x5c
lea edi, [ebp - 0x10]
call fcn.00411eb8
push 0x2f
call fcn.00411eb8
push str.I18nconfig.xml
mov eax, edi
push eax
call fcn.0040485b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f397
push dword [ebp - 0x10]
push str.GetLCID:_config_not_exist___s
push 0x426430
call fcn.00414b27
add esp, 0xc
jmp 0x40f33e
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 0x40f3e1
push str.GetLCID:_Load_File_fail_
push 0x426430
call fcn.00414b27
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 0x40f346
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
mov esi, eax
cmp esi, ebx
jne 0x40f3f7
push str.GetLCID:_Get_Root_Element_fail_
jmp 0x40f3bc
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 0x40f43f
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlNode::Value_void_const]
cmp eax, ebx
je 0x40f437
push str.locale
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x40f437
push 0x429c28
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const__const]
cmp eax, ebx
jne 0x40f46b
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_void_]
mov esi, eax
cmp esi, ebx
jne 0x40f409
push edi
push str.GetLCID:_from_default__lu
push 0x426430
call fcn.00414b27
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 0x40f346
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 0x426430
call fcn.00414b27
add esp, 0x18
jmp 0x40f458
Function at 0x40fc34
Capabilities:
Get file version info
Read file on windows

Disassembly:
push 0x184
mov eax, 0x41fcf5
call fcn.0041eefb
xor edi, edi
mov ebx, edx
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x54], edi
je 0x40fdff
cmp word [ebx], di
je 0x40fdff
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 0x40fdff
mov eax, dword [0x432b20]
mov esi, 0x432b20
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], edi
mov eax, dword [0x432b20]
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 0x40fd1f
push esi
call fcn.0041e4c4
pop ecx
push eax
push esi
push edi
push ebx
mov dword [ebp - 0x68], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40fd16
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x427324
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40fd16
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.004058e5
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 0x40fdcc
cmp dword [ebp - 0x5c], 0x40
jne 0x40fdcc
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 0x40fdcc
cmp dword [ebp - 0x5c], edi
jne 0x40fdcc
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.004058e5
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.00404938
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401689
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.00401689
mov eax, dword [ebp - 0x64]
jmp 0x40fe0c
push esi
mov ecx, 0x427538
call fcn.004047a6
mov eax, esi
call fcn.0041ef7e
ret
Function at 0x40fe12
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 0x429fd0
mov esi, 0x426430
push esi
call fcn.00414b27
xor edi, edi
add esp, 0x10
cmp ebx, edi
je 0x40fef4
cmp dword [ebp + 8], edi
je 0x40fef4
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 0x40fe83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_MiniDumpWriteDump_failed___ld_
push esi
call fcn.00414b27
add esp, 0xc
jmp 0x40ff06
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 0x40feb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_empty_dump_file_failed___ld_
jmp 0x40fe75
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 0x40fee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump_failed___ld_
push esi
call fcn.00414b27
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x40ff08
push dword [ebp + 8]
push ebx
push str.Invalid_parameters__file_s__exceptioninfo_p
push esi
call fcn.00414b27
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ff0f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x432024]
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.00411bbb
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.00401689
cmp edi, esi
jne 0x410013
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 0x40fffc
cmp dword [ebp - 0x6c], ebx
jne 0x40fffc
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.00404e2e
test eax, eax
jne 0x40fffc
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x410018
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 4
jne 0x410013
cmp dword [ebp - 0x6c], 2
mov eax, ebx
je 0x410018
mov eax, dword [0x432f88]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret

Function at 0x41022f
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.00411bbb
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.00401689
test bl, bl
pop ebx
je 0x4102bc
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 0x4102bc
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x4102bc
mov dword [0x432f88], eax
leave
ret
Function at 0x4102be
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x432024]
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 0x41032e
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 0x410359
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.004047a6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret

Function at 0x4103af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0041f050
mov eax, dword [0x432024]
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.0041ca2b
push 0x42a1f4
push ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x41044b
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov edi, 0x1000
jmp 0x41042d
lea ecx, [ebp - 0x101c]
lea edx, [ebp - 0x108c]
call fcn.0041d175
push ebx
push edi
lea eax, [ebp - 0x101c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x41041c
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x41046a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1024]
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x426430
call fcn.00414b27
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x108c]
call fcn.0041d380
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1020]
call fcn.004104a0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1020]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret
Function at 0x410ee2
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 0x410f48
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x410f22
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x410f3b
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 0x4110ea
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 0x411115
push str.CreateTxtFile_failed__empty_file_path_
push 0x426430
call fcn.00414b27
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 0x411159
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str.Create_txt_file___s__failed___ld_
push 0x426430
call fcn.00414b27
add esp, 0x10
jmp 0x41110e
push edi
lea eax, [ebp - 4]
push eax
push 3
push 0x42abdc
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call edi
test eax, eax
jne 0x41118c
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 0x41114a
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.0041465e
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 0x4111e7
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 0x426430
call fcn.00414b27
add esp, 0x10
xor esi, esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401689
mov eax, esi
jmp 0x411110
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x4111d5
Function at 0x4111f2
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 0x41120e
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 0x411245
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x426430
call fcn.00414b27
add esp, 0x10
jmp 0x411207
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x432f88], esi
mov dword [ebp - 0xc], eax
jne 0x411287
cmp dword [ebp - 8], esi
jne 0x41126a
cmp eax, 0x500000
jbe 0x411287
push dword [ebx]
push str.add_zip._file_size_over_5M____s_
push 0x426430
call fcn.00414b27
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411207
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x41127e
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 0x4112bb
push ebx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, esi
jmp 0x411209
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jbe 0x4112f3
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
push ebx
call fcn.004134a0
test al, al
je 0x4112f3
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.add_zip_success.___s_
push 0x426430
call fcn.00414b27
add esp, 0xc
xor esi, esi
inc esi
jmp 0x4112ac

Function at 0x4115d5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4115e6
xor eax, eax
xor edx, edx
jmp 0x411635
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 0x411609
xor eax, eax
xor edx, edx
jmp 0x411634
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.0041f010
xor ecx, ecx
add eax, ebx
adc edx, ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x411638
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.00411bbb
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.00401689
cmp dword [ebp - 0xc], ebx
je 0x4116be
cmp dword [ebp + 8], ebx
je 0x411716
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00411bbb
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.00401689
cmp esi, ebx
je 0x4116be
xor eax, eax
jmp 0x411719
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 0x4116ff
cmp dword [ebp + 8], 2
je 0x4116ff
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 0x41170d
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 0x41171e
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x432024]
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, 0x427324
je 0x4117a6
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 0x4117e5
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4117e5
push dword [ebp - 0x210]
call fcn.004102be
pop ecx
jmp 0x411800
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.004047a6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e4d6
leave
ret