joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414bff
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
mov edi, ecx
push 0
mov dword [ebp - 0x210], edi
push eax
mov dword [ebp - 0x210], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414c67
push str.C:_temp_
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x414c9f
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [eax*2 + 2]
cmp eax, esi
jae 0x414cf0
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
push str.Tencent_
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040655d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221ab
leave
ret
call fcn.004225c9
int3

Function at 0x414cf6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.00423310
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x1080], ebx
lea ecx, [ebp - 0x1078]
mov dword [ebp - 0x107c], esi
mov dword [ebp - 0x1080], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040d664
push 0x42e960
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x414d9e
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x1018]
push esi
push 0x1000
push 1
push eax
call edi
add esp, 0x10
jmp 0x414d90
push eax
lea edx, [ebp - 0x1018]
lea ecx, [ebp - 0x1078]
call fcn.0040dd25
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call edi
add esp, 0x14
test eax, eax
jne 0x414d6a
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
jmp 0x414dbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x107c]
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x426aec
call fcn.00419776
add esp, 0x10
lea edx, [ebp - 0x1078]
lea ecx, [ebp - 0x14]
call fcn.0040dfbc
push ecx
push ecx
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00414dea
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221ab
leave
ret
Function at 0x415a5d
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea eax, [ebp - 4]
xor ecx, ecx
push eax
push 5
push 0xffffffffffffffff
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x415ac9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x415aa0
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x415abb
push 0x103
push dword [ebp - 4]
push esi
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
push dword [ebp - 4]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor eax, eax
inc eax
jmp 0x415acb
xor eax, eax
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
xor edi, edi
mov dword [ebp - 0xc], esi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x415c58
push str.CreateTxtFile_failed__empty_file_path_
push 0x426aec
call fcn.00419776
pop ecx
pop ecx
xor eax, eax
jmp 0x415d32
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x415c9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str.Create_txt_file___s__failed___ld_
push 0x426aec
call fcn.00419776
add esp, 0x10
jmp 0x415c51
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 3
push 0x42f37c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415ccc
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 0x415c8c
mov eax, dword [ebp - 8]
mov edx, SysReAllocString
push ecx
lea ecx, [ebp - 8]
push dword [eax]
call fcn.0041929e
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
pop ecx
pop ecx
push edi
push eax
push dword [esi - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x415d1f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push str._2_Write_content_to_txt_file___s__failed___ld_
push 0x426aec
call fcn.00419776
add esp, 0x10
jmp 0x415d28
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.0040188c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415d37
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, edx
mov dword [esp + 0x14], ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jne 0x415d59
xor eax, eax
jmp 0x415e53
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 0x415d91
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x426aec
call fcn.00419776
add esp, 0x10
jmp 0x415d52
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp dword [0x437e9c], esi
jne 0x415dda
cmp dword [esp + 0x14], esi
jne 0x415dba
cmp eax, 0x500000
jbe 0x415dda
push dword [ebx]
push str.add_zip._file_size_over_5M____s_
push 0x426aec
call fcn.00419776
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415d52
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esp + 0x14], eax
pop ecx
test eax, eax
je 0x415dce
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
push ecx
push dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415e0a
mov edi, dword [esp + 0x10]
jmp 0x415e49
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0xc], esi
jbe 0x415e46
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x10]
push edi
call fcn.00417ef6
test al, al
je 0x415e46
push dword [ebx]
push str.add_zip_success.___s_
push 0x426aec
call fcn.00419776
add esp, 0xc
xor esi, esi
inc esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416171
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
test ecx, ecx
je 0x4161bb
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4161bb
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
xor eax, eax
add eax, esi
pop esi
adc edx, ebx
jmp 0x4161bf
xor eax, eax
xor edx, edx
pop edi
pop ebx
leave
ret
Function at 0x4161c3
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00416729
lea ecx, [ebp - 4]
xor ebx, ebx
push ecx
push 0xf003f
push ebx
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040188c
test esi, esi
je 0x41624a
cmp dword [ebp - 8], ebx
je 0x4162a2
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00416729
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040188c
test esi, esi
je 0x41624a
xor eax, eax
jmp 0x4162a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 8]
push 4
push eax
push 4
push ebx
push str.FullDump
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x41628b
cmp dword [ebp - 8], 2
je 0x41628b
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push ebx
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x416299
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 0x4162aa
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
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]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, 0x42b7b4
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x416329
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
push str.TencentQQMiscQQTroubleShoot
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416363
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x416363
mov ecx, esi
call fcn.00414bff
jmp 0x41637b
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040655d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221ab
leave
ret
Function at 0x41644b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x638
mov eax, 0x425579
call fcn.004231c0
mov edi, ecx
test edx, edx
jne 0x416467
xor eax, eax
jmp 0x41656e
lea ecx, [ebp - 0x63c]
call fcn.00416729
lea ecx, [ebp - 0x630]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x63c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040188c
test esi, esi
jne 0x416460
push 0x61a
lea eax, [ebp - 0x62c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x644], 1
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 0x30c
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x644]
push eax
push ebx
push str.ExtRptFile
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x416507
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x416460
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x638]
call fcn.0040655d
push 0x42b6e8
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], ebx
call fcn.0040655d
push edi
lea edx, [ebp - 0x634]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x638]
call fcn.004194b9
pop ecx
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x634]
add ecx, 0xfffffff0
call fcn.0040188c
mov ecx, dword [ebp - 0x638]
add ecx, 0xfffffff0
call fcn.0040188c
xor eax, eax
inc eax
call fcn.0042316a
ret
Function at 0x416574
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x63c
mov eax, 0x4255b7
call fcn.004231c0
mov edi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
test edx, edx
jne 0x416595
xor eax, eax
jmp 0x416723
lea ecx, [ebp - 0x648]
call fcn.00416729
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x648]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040188c
test esi, esi
jne 0x41658e
push 0x412
lea eax, [ebp - 0x630]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x640], 1
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0x208
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x640]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.InstallDir
push dword [ebp - 0x634]
call esi
test eax, eax
je 0x416636
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41658e
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x638]
call fcn.0040655d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x644]
push 0x42b6e8
call fcn.0040655d
push ebx
lea edx, [ebp - 0x644]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x638]
call fcn.004194b9
mov dword [esp], 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x63c], 0x104
lea eax, [ebp - 0x63c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x640], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x640]
push eax
push 0
push str.ExcDir
push dword [ebp - 0x634]
call esi
test eax, eax
jne 0x4166f9
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x638]
call fcn.00401692
push edi
lea edx, [ebp - 0x644]
lea ecx, [ebp - 0x638]
call fcn.004194b9
pop ecx
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x644]
add ecx, 0xfffffff0
call fcn.0040188c
mov ecx, dword [ebp - 0x638]
add ecx, 0xfffffff0
call fcn.0040188c
mov eax, ebx
call fcn.0042316a
ret
Function at 0x41676d
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x18
mov eax, 0x425643
call fcn.0042318c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
push 2
pop edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00414bff
push str.CrashReportInfo.ini
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00406141
pop ecx
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
jne 0x4167f6
push esi
push esi
push edi
push esi
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4167ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddCrashInfoLog__create_file___s__failed___ld_
push 0x426aec
call fcn.00419776
add esp, 0x10
jmp 0x4168db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov ebx, str.CrashInfo
push esi
push str.CrashCount
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [ebp - 0x10]
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0x1c]
push 0x42b9a0
push eax
call fcn.00415b11
add esp, 0xc
push esi
push dword [eax]
push str.CrashCount
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call ebx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
push edi
mov edi, 0x42b9a0
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00415b11
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
push edi
push eax
call fcn.00415b11
add esp, 0x18
push esi
push dword [eax]
push str.CrashUin
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040188c
push dword [ebp - 0x10]
push dword [ebp + 8]
push str.CrashTime
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push str.strErrModule
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push str.strCrashSignature
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x10]
cmp dword [ebp - 0x24], 0
mov ecx, 0x42f728
mov eax, 0x42f724
cmove eax, ecx
push eax
push 0x42f72c
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x14]
xor esi, esi
inc esi
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040188c
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040188c
mov eax, esi
call fcn.00423155
ret
Function at 0x41691a
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x10
mov eax, 0x42566e
call fcn.0042318c
mov esi, ecx
mov dword [ebp - 0x18], esi
test esi, esi
je 0x416a2f
lea ecx, [ebp - 0x14]
call fcn.00414bff
xor ebx, ebx
lea edx, [ebp - 0x14]
push str.BREvent.ini
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00406141
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416994
push ebx
push ebx
push 2
push ebx
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41698d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__create_file___s__failed___ld_
jmp 0x416a03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push ebx
push str.CrashCount
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edi, [eax + 1]
push edi
push str.CrashCount
push esi
push str._s:_s_lu
push 0x426aec
call fcn.00419776
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push edi
push 0x42b9a0
push eax
call fcn.00415b11
add esp, 0x20
push esi
push dword [eax]
push str.CrashCount
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040188c
test esi, esi
jne 0x416a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__write_file___s__failed___ld_
push 0x426aec
call fcn.00419776
add esp, 0x10
jmp 0x416a15
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040188c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040188c
mov eax, ebx
jmp 0x416a31
xor eax, eax
call fcn.00423155
ret
Function at 0x416a37
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x4254ca
call fcn.004231c0
mov esi, ecx
mov dword [ebp - 0x220], esi
xor ebx, ebx
mov dword [ebp - 0x224], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x416aa0
xor ecx, ecx
mov word [eax], cx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00401b0a
push eax
mov ecx, esi
call fcn.00401564
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push eax
call ebx
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401692
push str._txupd.exe
call ebx
pop ecx
push eax
push str._txupd.exe
mov ecx, esi
call fcn.00406e96
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416b85
push dword [esi]
push str.txupd___s__not_exist_so_uplevel_dir
push 0x426aec
call fcn.00419776
lea eax, [ebp - 0x218]
push 0x5c
push eax
call edi
add esp, 0x14
test eax, eax
je 0x416b29
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call ebx
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401692
mov edi, str._txupd.exe
push edi
call ebx
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00406e96
push dword [esi]
mov edi, 0x426aec
push str.txupd___s_
push edi
call fcn.00419776
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416b85
push dword [esi]
push str.txupd___s__not_exist_error
push edi
call fcn.00419776
add esp, 0xc
mov eax, esi
call fcn.0042316a
ret

Function at 0x418855
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
and dword [esi + 8], 0
and dword [esi + 4], 0
mov dword [esi + 0xc], eax
mov dword [esi], ecx
test eax, eax
je 0x4188c1
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4188c1
push 0x40
push 0x3000
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 8], eax
mov byte [eax], 0xb9
mov eax, dword [esi + 8]
mov byte [eax + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, 0x4188c8
mov ecx, dword [esi + 8]
sub eax, ecx
sub eax, 0xa
mov dword [ecx + 6], eax
push dword [esi + 8]
push 0xfffffffffffffffc
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop ebp
ret 8