joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43bf88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x4d0]
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 8]
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x452204]
mov dword [esp + 0x18], 0
mov eax, dword [eax]
test eax, eax
je 0x409826
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
dec edi
test edi, edi
jl 0x40987d
push ebp
lea ebp, [esi + 0x4b0]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::GetItemData
test eax, eax
jbe 0x409879
push eax
lea edx, [esp + 0x10]
push 0x450394
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push 4
push eax
push 4
push ecx
push str.SOFTWARE360Safeleak_showerror
push reloc.OLEAUT32.dll_SysReAllocString
call esi
dec edi
jns 0x409838
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40a970
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5cc]
lea ecx, [esi + 0x300]
push edi
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov edi, dword [edi]
mov eax, dword [edi - 8]
test eax, eax
jne 0x40a998
push 0
push 0xa1
jmp 0x40a9a9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40a9c4
push eax
push 0xa2
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
push esi
call fcn.0040eeb0
add esp, 8
xor eax, eax
pop edi
pop esi
ret
lea eax, [esi + 0x5c8]
lea ecx, [esi + 0x5d0]
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
pop edi
mov eax, 1
pop esi
ret
Function at 0x40b8d0
Capabilities:
Check if file exists
Create directory
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x114]
push eax
push ecx
push edx
push str.SavePath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40b9b5
mov al, byte [0x451020]
mov ecx, 0x40
mov byte [esp + 0x10], al
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push str...hotfix
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40b995
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
push 0x45012c
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esi + 0x3c0]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x114]
lea ecx, [esi + 0x5b4]
push edx
call sub.MFC42.DLL_CString::operator_1
pop edi
pop esi
add esp, 0x210
ret
Function at 0x40cab0
Capabilities:
Check if file exists
Create directory
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x114]
push eax
push ecx
push edx
push str.SaveThirdPath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40cb95
mov al, byte [0x451020]
mov ecx, 0x40
mov byte [esp + 0x10], al
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push str...hotfix_soft
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40cb75
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
push 0x45012c
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esi + 0x3c4]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x114]
lea ecx, [esi + 0x5b4]
push edx
call sub.MFC42.DLL_CString::operator_1
pop edi
pop esi
add esp, 0x210
ret
Function at 0x40cbd0
Capabilities:
Check if file exists
Create directory
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43c896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov al, byte [0x451020]
mov ecx, 0x40
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
mov dword [esp + 0x130], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push str...hotfix_soft
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0xc]
lea ecx, [ebp + 0x3c4]
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40cc94
push 2
push 1
push 0x165
push 0x164
push 0x163
push ebp
call fcn.0040eca0
add esp, 0x18
cmp eax, 2
jne 0x40cc94
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40cceb
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40cd03
push str.SaveThirdPath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea ecx, [esp + 0xc]
mov esi, 1
push ecx
lea ecx, [ebp + 0x5b8]
call fcn.0043a7b6
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, 0xa1
je 0x40cdb5
push ebx
lea edx, [esp + 0x18]
push 2
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov byte [esp + 0x128], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40cd78
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x450458
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40cd78
mov bl, 1
jmp 0x40cd7a
xor bl, bl
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
jne 0x40cdb5
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push str.SaveThirdPath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
jmp 0x40ccc0
push esi
push 0xa9
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
push ebp
call fcn.0040eeb0
add esp, 8
jmp 0x40ccd5
Function at 0x413c90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43d6f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4ec]
test eax, eax
jne 0x413d85
push ebx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push edi
push str.CDownLoad::ExitDlg__d_
push eax
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp edi, 1
jne 0x413d2a
mov ecx, dword [esi + 0x4e4]
mov edx, dword [ecx]
call dword [edx + 0xc0]
mov eax, dword [esi + 0x4ec]
test eax, eax
jne 0x413d47
push 2
push edi
push 0x7a
push 0x79
push 0x78
push esi
call fcn.0040eca0
add esp, 0x18
cmp eax, edi
jne 0x413d47
call fcn.00404690
mov ebx, edi
jmp 0x413d47
cmp edi, 2
jne 0x413d47
mov ecx, dword [esi + 0x4e4]
mov eax, dword [ecx + 0x3cc]
test eax, eax
je 0x413d47
mov eax, dword [ecx]
call dword [eax + 0xc0]
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x413d6a
test ebx, ebx
jne 0x413d6a
mov ecx, dword [eax + 0x20]
push ebx
push 0x3ee
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
mov ecx, esi
call sub.MFC42.DLL_CDialog::EndDialog
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x413db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, 4
push esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov al, byte [0x451020]
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea ecx, [esp + 0xc]
stosb byte es:[edi], al
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push str.pathtype
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
call esi
mov eax, dword [esp + 8]
mov edi, 1
cmp eax, edi
je 0x413e21
mov dword [esp + 8], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push str.netpath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0x104
call esi
mov al, byte [esp + 0x14]
test al, al
je 0x413e5d
mov eax, dword [esp + 8]
test eax, eax
jne 0x413e68
mov eax, edi
pop edi
pop esi
add esp, 0x110
ret
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret
Function at 0x414220
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43d738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x41429d
mov edi, 0x451020
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.LeakFilelog.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
test eax, eax
pop ebp
jne 0x41433b
push eax
push eax
push 2
push eax
push 1
lea ecx, [esp + 0x14]
push 0x10000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x414330
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x114]
mov dword [esp + 0x10c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret 4
test eax, eax
je 0x41433b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x114]
lea edx, [esp]
push edx
push eax
push eax
push str.KeyPath
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
mov dword [esp + 0x10c], 0xffffffff
lea ecx, [esp + 0x114]
jne 0x414388
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x104]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x110
ret 4
Function at 0x415c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43da81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov al, byte [0x451020]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov byte [esp + 0x2c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xe5f3e7
lea ecx, [esp + 0x28]
stosb byte es:[edi], al
call sub.MFC42.DLL_CBrush::CBrush
mov edi, dword [esp + 0x148]
mov ebx, dword [esp + 0x28]
mov ecx, edi
mov esi, dword [esp + 0x144]
mov dword [esp + 0x138], 0
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, edi
push 0xe1e9ea
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
mov ecx, dword [eax + 8]
push edx
mov dword [esp + 0x20], ecx
mov ecx, esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
dec eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CDC::FillSolidRect
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
push 0x451074
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x2c]
add eax, 8
push 0x104
push edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
push 0
mov eax, dword [esp + 0x14c]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CListCtrl::GetItemText_1
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x38]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
call fcn.0043a78c
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
lea edi, [esp + 0x10]
push 0x24
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x148], 1
call dword [edx + 0x70]
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x24], 0x442be0
lea ecx, [esp + 0x24]
mov dword [esp + 0x138], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x10
Function at 0x418690
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x418833
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
je 0x418833
mov dl, byte [0x451020]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.fixleak.log
lea ecx, [esp + 0x18]
push 0x104
push ecx
push eax
call fcn.00403dc0
lea edx, [esp + 0x24]
push edx
call fcn.004039d0
add esp, 0x14
test al, al
je 0x4187c6
lea eax, [esp + 0x14]
push 0x45070c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x418833
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
push edi
call ebx
push edi
push 4
lea ecx, [esp + 0x24]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 4
je 0x418760
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp dword [esp + 0x10], 1
je 0x418787
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 2
push 0
push edi
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0xc
xor ebx, ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x41874b
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x41874b
mov edx, eax
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x4187c3
push edi
push 0x144
push 1
push eax
call ebp
add esp, 0x10
inc ebx
jmp 0x418799
lea eax, [esp + 0x14]
push 0x4501ac
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x418833
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 4
lea ecx, [esp + 0x18]
push 1
push ecx
call ebp
add esp, 0x10
xor edi, edi
mov eax, dword [esi + 8]
test eax, eax
je 0x418829
mov edx, dword [esi + 0xc]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x418829
mov eax, dword [eax + edi*4]
test eax, eax
je 0x418826
push ebx
push 0x144
push 1
push eax
call ebp
add esp, 0x10
inc edi
jmp 0x4187fe
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x418c30
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
mov al, byte [0x451020]
push edi
mov byte [esp + 4], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.fixleak.log
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call fcn.00403dc0
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
add esp, 0x104
ret
Function at 0x41a140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43de08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
call fcn.004232b0
mov ecx, eax
call fcn.00424310
mov ebx, eax
call fcn.004232b0
mov ecx, eax
call fcn.00424320
mov byte [esp + 0x10], al
push ebx
mov eax, dword [esp + 0x14]
push 0x20
push 0
push 0
and eax, 0xff
push 0
push eax
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
lea edi, [esi + 0xbc]
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x24], 0
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0x50000000
push edx
mov ecx, esi
call sub.MFC42.DLL_CStatic::Create
test eax, eax
je 0x41a24e
test edi, edi
je 0x41a20e
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x20]
push 0
push edi
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0041a010
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x41b140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c4
mov al, byte [0x451020]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0xd0], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd1]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x6c]
push ecx
stosb byte es:[edi], al
call fcn.00422710
mov edx, dword [esp + 0x1e0]
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 8
lea eax, [esp + 0xd0]
push edx
push 0x45012c
push 0x103
push eax
call ebp
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe4]
push ecx
push edx
call fcn.00422770
lea eax, [esp + 0x84]
push eax
call fcn.004231b0
lea ecx, [esp + 0x88]
push ecx
call fcn.004231b0
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x44], ecx
mov word [esp + 0x39], ax
mov ecx, 0xf
lea edi, [esp + 0x4d]
mov byte [esp + 0x3b], al
mov byte [esp + 0x4c], al
mov edx, dword [esp + 0xe4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xf0]
mov ecx, 0x10
stosb byte es:[edi], al
xor eax, eax
lea edi, [esp + 0x4c]
add esp, 0x24
mov dword [esp + 0x24], edx
mov byte [esp + 0x10], 0
xor esi, esi
rep stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + esi + 0x18]
lea eax, [esp + 0x10]
push edx
push str._02x
mov dword [esp + 0x18], ecx
push 7
push eax
mov dword [esp + 0x24], ecx
call ebp
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x40
sub edx, ecx
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jge 0x41b28d
mov ecx, edx
jmp 0x41b29b
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
call ebx
add esp, 0xc
inc esi
cmp esi, 0x10
jl 0x41b242
mov esi, dword [esp + 0x1dc]
test esi, esi
je 0x41b2f0
mov edx, dword [esp + 0x1e0]
xor eax, eax
mov ecx, edx
mov edi, esi
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
dec edx
rep stosb byte es:[edi], al
lea eax, [esp + 0x28]
push eax
push 0x45012c
push edx
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c4
ret