joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410be0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431a6f
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
mov esi, ecx
call fcn.004231f0
mov eax, dword [eax + 4]
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x410c1d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push ebx
push 0x434d70
push eax
call edx
cmp dword [esi + 0x60], ebx
je 0x410c86
mov eax, dword [esi + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x60]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push 0x434dd0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x410c69
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x410c69
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x410c86
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x60], ebx
cmp byte [esp + 0x324], bl
je 0x410db4
mov esi, dword [esi + 0x6c]
cmp esi, ebx
je 0x410db4
push edi
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x410d98
mov esi, dword [esi + 4]
push 0x434bee
lea ecx, [esp + 0x18]
inc esi
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0xfe
mov dword [esp + 0x324], ebx
lea edx, [esp + 0x21e]
xor eax, eax
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], bl
mov word [esp + 0x224], cx
call sub.MSVCR90.dll_memset
push 0xfe
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
push 0xfe
lea eax, [esp + 0x136]
xor edx, edx
push ebx
push eax
mov word [esp + 0x13c], dx
call sub.MSVCR90.dll_memset
push 0x100
lea ecx, [esp + 0x140]
push ecx
push 0x100
lea edx, [esp + 0x48]
push edx
push 0x100
lea eax, [esp + 0x250]
push eax
push 3
lea ecx, [esp + 0x4c]
push ecx
push edi
call dword [sym.imp.MSVCR90.dll__splitpath_s]
add esp, 0x48
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push 0x434cf0
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x314]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x318
ret 4
xor eax, eax
jmp 0x410d9b
Function at 0x413b70
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4312a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
xor ebx, ebx
push 0x7f
lea eax, [esp + 0x2d]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 5
jae 0x413be4
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
add esp, 0xb0
ret
push esi
push str.Control_PanelAppearance
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_310]
push str.Current
lea ecx, [esp + 0xc]
mov dword [esp + 0xb8], ebx
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0xb4], 1
push 0xc8
mov dword [esp + 0x18], 0xc8
call sub.mfc90.dll_Ordinal_265
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
push ebx
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413c8e
push esi
call sub.mfc90.dll_Ordinal_266
add esp, 4
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
add esp, 0xb0
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_821]
push esi
call sub.mfc90.dll_Ordinal_266
add esp, 4
push str.Windows_Standard
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
lea ecx, [esp + 8]
test eax, eax
je 0x413c65
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0xac]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret
Function at 0x413d80
Capabilities:
Link many functions at runtime

Disassembly:
call fcn.00413b70
mov dword [esi], eax
test eax, eax
je 0x413e4d
push str.UXTHEME.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0xc], eax
test eax, eax
je 0x413e4d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0xc]
push str.DrawThemeBackground
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.CloseThemeData
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0xc]
push str.DrawThemeText
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0xc]
push str.GetThemeBackgroundContentRect
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.DrawThemeEdge
push ecx
mov dword [esi + 0x30], eax
call edi
mov edx, dword [esi + 0xc]
push str.DrawThemeIcon
push edx
mov dword [esi + 0x24], eax
call edi
cmp dword [esi + 0x18], 0
mov dword [esi + 0x28], eax
pop edi
je 0x413e3c
cmp dword [esi + 0x1c], 0
je 0x413e3c
cmp dword [esi + 0x20], 0
je 0x413e3c
cmp dword [esi + 0x2c], 0
je 0x413e3c
cmp dword [esi + 0x30], 0
je 0x413e3c
cmp dword [esi + 0x24], 0
je 0x413e3c
test eax, eax
je 0x413e3c
mov dword [esi + 8], 1
ret
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], 0
ret

Function at 0x415c60
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
add eax, 0x41
push eax
lea ecx, [esp + 0x164]
push str._c:_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x160
lea edx, [esp + 0x10]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0x18
push 0x200
push 0x160
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x170]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov esp, ebp
pop ebp
ret

Function at 0x415fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415faf
xor al, al
ret
shr eax, 4
not al
and al, 1
ret

Function at 0x415fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415fcf
xor al, al
ret
shr eax, 4
and al, 1
ret

Function at 0x4160d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ecx
test esi, esi
jne 0x4160dc
mov eax, 0x80070057
pop ecx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x4160f4
shr eax, 4
not al
and al, 1
jne 0x4160fc
mov eax, 0x8004200c
pop edi
pop ecx
ret
push esi
call edi
cmp eax, 0xffffffff
jne 0x41610c
mov eax, 0x8004200d
pop edi
pop ecx
ret
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
and eax, 0x7ffbdff3
add eax, 0x8004200d
pop edi
pop ecx
ret
Function at 0x4161c0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x431305
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x416213
cmp byte [esp + eax + 0x1b], 0x5c
lea eax, [esp + eax + 0x1b]
jne 0x416213
mov byte [eax], 0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
test ebp, ebp
je 0x41629c
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x128], 1
mov edi, dword [sym.imp.mfc90.dll_Ordinal_2539]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor esi, esi
lea esp, [esp]
push esi
lea edx, [esp + 0x18]
push 0x434fa8
push edx
call edi
mov eax, dword [esp + 0x20]
push ebp
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push 0x434fb0
push edx
inc esi
call edi
mov eax, dword [esp + 0x30]
add esp, 0x20
push eax
call ebx
cmp eax, 0xffffffff
je 0x41628d
shr eax, 4
not al
and al, 1
jne 0x416250
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x130]
push ecx
push edx
jmp 0x416319
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 2
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x128], 3
mov esi, dword [sym.imp.mfc90.dll_Ordinal_2539]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
jmp 0x4162d0
push edi
lea eax, [esp + 0x18]
push str._08d
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push 0x434fc0
push eax
inc edi
call esi
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
push ecx
call ebx
cmp eax, 0xffffffff
je 0x41630c
shr eax, 4
not al
and al, 1
jne 0x4162d0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x130]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x416440
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4316cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 8], vtable.SaFile.0
mov dword [esp + 0xc], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x4164c6
mov esi, 0x80070057
mov eax, dword [esp + 0xc]
mov dword [esp + 8], vtable.SaFile.0
cmp eax, 0xffffffff
je 0x4164aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4164aa
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0
push 0x80
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4164e8
mov esi, 0x80042001
jmp 0x416486
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
jne 0x416506
xor eax, eax
xor edx, edx
jmp 0x41652e
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 4]
push 1
push 0
push 0
push ecx
mov esi, eax
call fcn.00430ee0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov ecx, dword [esp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [esp + 8], vtable.SaFile.0
cmp ecx, 0xffffffff
je 0x416553
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x416553
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x416fa0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43204a
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
call fcn.00416ac0
lea esi, [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x41703b
lea ecx, [esp + 4]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esp + 8]
push ecx
push 5
push 0
mov dword [esp + 0x228], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x417024
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
jne 0x417019
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 4]
push eax
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esi]
mov ecx, dword [esp + 0x214]
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x417060
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432060
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
call fcn.00416ac0
lea esi, [eax + 4]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x4171a8
push edi
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esp + 8]
push ecx
push 0xd
mov dword [esp + 0x228], 0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0
call edi
test eax, eax
jl 0x417130
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0x14]
push edx
push eax
call ebx
cmp eax, 1
jne 0x4170db
lea ecx, [esp + 0x14]
push ecx
jmp 0x417118
lea edx, [esp + 0xc]
push edx
push 5
push 0
call edi
test eax, eax
jl 0x417122
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call ebx
cmp eax, 1
jne 0x417122
push str.My_Music
lea edx, [esp + 0x18]
push 0x208
push edx
call dword [sym.imp.MSVCR90.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop ebx
jmp 0x417186
lea edx, [esp + 8]
push edx
push 5
push 0
call edi
test eax, eax
jl 0x41717b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
jne 0x41717b
push str.My_Music
lea edx, [esp + 0x14]
push 0x208
push edx
call dword [sym.imp.MSVCR90.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], 0
pop edi
je 0x41719e
lea eax, [esp + 8]
push eax
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esi]
mov ecx, dword [esp + 0x214]
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x4175e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43262d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.00416ac0
call fcn.00417540
push eax
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
cmp dword [eax - 0xc], 0
je 0x4176a4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4176a4
shr eax, 4
not al
and al, 1
je 0x4176a4
push esi
push edi
call sub.mfc90.dll_Ordinal_1137
mov ecx, dword [eax + 4]
call sub.mfc90.dll_Ordinal_1387
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
push 0
push 0
push eax
push 0x434c0a
call esi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push eax
call edi
cmp eax, 0x20
ja 0x417682
mov ecx, dword [esp + 0xc]
push 5
push 0
push 0
push ecx
push str.open
call esi
push eax
call edi
call fcn.00402f60
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 8]
xor al, al
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4185f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43174a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x5f8]
cmp eax, 1
sete byte [esp + 0xc]
mov eax, dword [esp + 0xc]
push edi
push eax
lea ecx, [esi + 0x78]
call fcn.0042db80
mov eax, dword [esi + 0x568]
xor ecx, ecx
xor ebx, ebx
cmp byte [esp + 0x10], bl
lea edi, [esi + 0x548]
sete cl
mov dword [edi + 0xb0], ecx
cmp eax, ebx
je 0x418659
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esp + 0x34], ebx
mov eax, dword [esi + 0x568]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x18]
push 0x408
push ecx
lea ecx, [esi + 0x7ec]
cmp byte [esp + 0x18], bl
jne 0x4186a6
push 0x89a
jmp 0x4186ab
push 0x89b
push edi
call sub.mfc90.dll_Ordinal_1044
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jne 0x4186e7
call sub.mfc90.dll_Ordinal_1144
cmp eax, ebx
je 0x4186cf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x7c]
call eax
jmp 0x4186d1
xor eax, eax
movzx ecx, byte [esp + 0x10]
mov edx, dword [eax + 0x20]
push ebx
push ecx
push 0x80c9
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push edi
mov edi, eax
push edi
call fcn.00418d00
test eax, eax
jl 0x41945a
mov ebx, edi
call fcn.00418470
pop edi
pop ebx
pop ecx
ret
cmp eax, 0x80042009
je 0x419510
cmp eax, 0x8004200e
je 0x4194f9
mov ecx, dword [edi + 0x630]
call fcn.00415e70
test al, al
je 0x419496
push 0
push 0x30
push 0x84c
call sub.mfc90.dll_Ordinal_1182
call fcn.00418530
pop edi
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4194b1
shr eax, 4
not al
and al, 1
jne 0x4194d3
push 0
push 0x30
push 0x84a
call sub.mfc90.dll_Ordinal_1182
lea ecx, [edi + 0x98]
call fcn.0042beb0
call fcn.00418530
pop edi
pop ebx
pop ecx
ret
mov edx, dword [edi + 0x630]
call fcn.00415db0
push 0
push 0x30
test al, al
je 0x419514
push 0x840
call sub.mfc90.dll_Ordinal_1182
call fcn.00418530
pop edi
pop ebx
pop ecx
ret
push 0xffffffffffffffff
push 0x10
push 0x838
call sub.mfc90.dll_Ordinal_1182
call fcn.00418530
pop edi
pop ebx
pop ecx
ret
push 0
push 0x30
push 0x84b
call sub.mfc90.dll_Ordinal_1182
call fcn.00418530
pop edi
pop ebx
pop ecx
ret
Function at 0x419b20
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esi + 4]
sub esp, 8
push ebx
xor bl, bl
cmp dword [eax - 0xc], 0
je 0x419bae
lea ecx, [esp + 4]
push ecx
push 0x1f
push 0
push eax
push SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x419b7a
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
push ecx
push 0
push 0x1f
push 0
push str.Application_Global_Data
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x419b9f
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [esp + 0xc]
push 1
push 0
push str.LastSelectedFolder
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x419b9f
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x419bae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret 4

Function at 0x419bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
xor cl, cl
mov byte [esp + 0x18], cl
test ebp, ebp
je 0x419cc3
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
cmp dword [eax - 0xc], 0
je 0x419cc3
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [esp + 0x10]
push ecx
push 9
push 0
push eax
push SysReAllocString
mov dword [esp + 0x24], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 4
test eax, eax
jne 0x419c42
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push ebp
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x419c42
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419c51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x24]
test al, al
jne 0x419cb9
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 9
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call esi
test eax, eax
jne 0x419ca4
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push ebp
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call edi
mov bl, 1
test eax, eax
je 0x419ca8
mov bl, byte [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419cb7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret 0xc
mov al, cl
pop ebp
add esp, 0xc
ret 0xc