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

Disassembly:
push 0xffffffffffffffff
push 0x66ca1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString_5
push 0x104
push 0x105
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea eax, [esp + 4]
push 0
push eax
call fcn.0040bb70
mov esi, dword [esp + 0x24]
add esp, 8
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40f890
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x66ca4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString_5
push 0x104
push 0x105
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea eax, [esp + 4]
push 0
push eax
call fcn.0040bb70
mov esi, dword [esp + 0x24]
add esp, 8
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40f930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66ca68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.00419060
add esp, 4
test eax, eax
jne 0x40f9d4
mov esi, dword [esp + 0x1c]
push esi
call fcn.00419060
add esp, 4
test eax, eax
jne 0x40f9d4
push eax
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0040fa80
push 0
lea ecx, [esp + 0x30]
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.0040f9f0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x20
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f9f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66ca9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString_5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x28], 1
call fcn.0040fb50
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
push edx
push eax
push esi
call fcn.0040fa80
add esp, 0x20
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x410110
Capabilities:
Get common file path
Query environment variable

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x104
mov ecx, edi
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esp + 0xc]
cmp ecx, 0xff
je 0x41014d
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, esi
pop edi
pop esi
push 0x104
push eax
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, esi
pop edi
pop esi
ret
Function at 0x410d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66cde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x20]
push edi
mov esi, ecx
push eax
call fcn.0041ac10
add esp, 8
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x410dd8
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 1
call sub.MFC42u.DLL_CMapStringToString::Lookup
test eax, eax
mov byte [esp + 0x18], bl
lea ecx, [esp + 0x28]
je 0x410dd3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
add esi, 0x24
push edi
push eax
mov ecx, esi
call sub.MFC42u.DLL_CMapStringToString::operator__
mov ecx, eax
call sub.MFC42u.DLL_CString::operator_3
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
push str._s_PARAMETER_0
push edx
mov byte [esp + 0x24], 2
call sub.MFC42u.DLL_CString::Format_1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CMapStringToString::operator__
mov ecx, eax
call sub.MFC42u.DLL_CString::operator_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x411cd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x66d0a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString_5
mov ecx, esi
mov dword [esp + 0x128], 1
call fcn.00411dd0
cmp eax, 0xfffffffe
je 0x411d72
cmp eax, 0xa
je 0x411d6b
cmp eax, 0xb
je 0x411d64
push edi
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x114
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x411d80
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0xc]
push str._lu._lu
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
jmp 0x411d80
push 0x719990
jmp 0x411d77
push 0x719988
jmp 0x411d77
push str.Linux__Wine_
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::operator_3
mov esi, dword [esp + 0x130]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x128], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret 4
Function at 0x411dd0
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x66d0c6
push eax
mov eax, dword [0x719948]
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push edi
or edi, 0xffffffff
cmp eax, edi
jne case.0x411e78.3
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
cmp eax, ebx
je 0x411e3f
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411e3f
mov eax, 0xfffffffe
pop edi
mov dword [0x719948], eax
pop ebx
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je case.0x411e78.3
mov eax, dword [esp + 0x34]
dec eax
je 0x411ff5
dec eax
jne case.0x411e78.3
mov ecx, dword [esp + 0x28]
lea eax, [ecx - 3]
cmp eax, 3
ja case.default.0x411e78
jmp dword [eax*4 + 0x412044]
mov dword [0x719948], 3
jmp case.0x411e78.3
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x411eb7
dec eax
je 0x411ea8
mov dword [0x719948], 6
jmp case.0x411e78.3
mov dword [0x719948], 5
jmp case.0x411e78.3
mov dword [0x719948], 4
jmp case.0x411e78.3
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x411fe9
dec eax
je 0x411fdd
dec eax
je 0x411eeb
mov dword [0x719948], 0xa
jmp case.0x411e78.3
lea ecx, [esp + 0x10]
call fcn.0041bfc0
push 1
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14c], ebx
call fcn.0041c090
cmp eax, ebx
jne 0x411fc1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
push str.CurrentMajorVersionNumber
mov dword [esp + 0x14], ebx
call fcn.0041c2e0
cmp eax, ebx
jne 0x411f46
cmp dword [esp + 0xc], 0xa
jb 0x411f46
mov dword [0x719948], 0xb
jmp 0x411f9f
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_5
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push str.CurrentVersion
mov byte [esp + 0x148], 1
call fcn.0041c320
cmp eax, ebx
jne 0x411fb1
mov ecx, dword [esp + 8]
push 0x719988
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jne 0x411fb1
lea ecx, [esp + 8]
mov dword [0x719948], 0xa
mov byte [esp + 0x140], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], edi
call fcn.0041c040
jmp case.0x411e78.3
lea ecx, [esp + 8]
mov byte [esp + 0x140], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], edi
call fcn.0041c040
mov dword [0x719948], 9
jmp case.0x411e78.3
mov dword [0x719948], 8
jmp case.0x411e78.3
mov dword [0x719948], 7
jmp case.0x411e78.3
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x41201f
cmp eax, 0xa
je 0x412013
cmp eax, 0x5a
jne case.0x411e78.3
mov dword [0x719948], 2
jmp case.0x411e78.3
mov dword [0x719948], 1
jmp case.0x411e78.3
mov dword [0x719948], ebx
mov ecx, dword [esp + 0x138]
mov eax, dword [0x719948]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x417e70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x417e80
ret
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor esi, esi
test eax, eax
je 0x417e93
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
lea edx, [eax + eax + 2]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x417f09
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [ebp]
mov edi, eax
push ebx
mov ecx, dword [esi - 8]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov edx, dword [ecx - 8]
mov word [eax + edx*2], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
pop edi
test eax, eax
jne 0x417ef1
mov eax, 0xd
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x417f04
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x418160
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x66d75f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
lea ecx, [esp + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
call sub.MFC42u.DLL_CString::CString_5
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x418200
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x66d78f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
lea ecx, [esp + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x101
call sub.MFC42u.DLL_CString::CString_5
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41a060
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x66da6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
inc eax
push eax
mov dword [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x41b400
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x8c]
push esi
xor esi, esi
and eax, 0xffff
push esi
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
cmp dx, si
je 0x41b471
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], si
and edx, 0xffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x98]
pop edi
shl edx, 0x10
cmp eax, esi
je 0x41b458
add edx, 0x1000000
lea ecx, [esp + 8]
push 0x40
push ecx
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x41b471
lea edx, [esp + 8]
push edx
jmp 0x41b476
push 0x738574
mov esi, dword [esp + 0x90]
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_6
mov eax, esi
pop esi
add esp, 0x84
ret

Function at 0x41bee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66deef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 8], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x41bf30
mov esi, dword [esp + 0x30]
push 0x738574
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_6
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea ecx, [esp + 0xc]
call fcn.006086f6
mov esi, dword [edi + 8]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call sub.MFC42u.DLL_CStringArray::SetSize
mov eax, esi
dec esi
test eax, eax
je 0x41bf7c
push ebp
mov ebp, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
lea eax, [edx + esi*4]
push ebp
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
mov ecx, esi
dec esi
test ecx, ecx
jne 0x41bf5c
pop ebp
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push esi
call fcn.004182e0
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CStringArray::CStringArray
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41c170
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x21c]
lea eax, [esp + 8]
push esi
push eax
push 0x2001f
push 0
push ebx
push ebp
mov dword [esp + 0x24], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c21c
lea ecx, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x41c209
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041c170
add esp, 8
test eax, eax
jne 0x41c21c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x41c1cc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x41c2e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
lea edx, [esp + 0xc]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c319
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x41c320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x808
lea eax, [esp]
push esi
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x818]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41c369
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x818]
call sub.MFC42u.DLL_CString::operator_3
mov eax, esi
pop esi
add esp, 0x808
ret 8
Function at 0x41c390
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x804
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0xffffffffffffffff
mov ecx, dword [esp + 0x81c]
push 0
call sub.MFC42u.DLL_CStringArray::SetSize
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor edi, edi
mov eax, dword [esp + 0x81c]
mov dword [esp + 0x10], 0x400
test eax, eax
je 0x41c3da
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 0x400
push eax
push edi
push ecx
call ebp
jmp 0x41c3f7
mov ecx, dword [ebx + 4]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x41c412
mov ecx, dword [esp + 0x818]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42u.DLL_CStringArray::SetAtGrow
inc edi
test esi, esi
je 0x41c3b4
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 8]
pop ebx
add esp, 0x804
ret 8

Function at 0x41c430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x404
push 0
push 0
push 0
lea eax, [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push edx
push 0
push eax
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
neg eax
sbb eax, eax
inc eax
add esp, 0x404
ret

Function at 0x41c7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x66dfe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push esi
mov esi, ecx
push 0
lea eax, [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x430]
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41c8c6
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x41c], 0
dec eax
je 0x41c844
sub eax, 3
jne 0x41c893
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0041c2e0
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x10]
push str._s___lu_n
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
jmp 0x41c893
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x424], 1
call fcn.0041c320
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s____s__n
push edx
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
lea ecx, [esp + 4]
mov byte [esp + 0x41c], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41c8ab
mov ecx, dword [esp + 0x428]
push eax
mov edx, dword [ecx]
call dword [edx + 0x5c]
lea ecx, [esp + 8]
mov dword [esp + 0x41c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
jmp 0x41c8c8
xor eax, eax
mov ecx, dword [esp + 0x414]
pop esi
mov dword fs:[0], ecx
add esp, 0x41c
ret 8
Function at 0x41f900
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x66e474
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
or ecx, 8
push edi
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x20], esi
call sub.MFC42u.DLL_CFileDialog::CFileDialog
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x340]
push edx
mov dword [esp + 0x18], 0
call sub.MFC42u.DLL_CString::CString_6
lea ecx, [esi + 0x344]
mov byte [esp + 0x14], 1
call sub.MFC42u.DLL_CString::CString_5
push edi
lea ecx, [esi + 0x348]
mov byte [esp + 0x18], 2
call sub.MFC42u.DLL_CString::CString_6
mov dword [esi], vtable.CEnFileDialog.0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x41f996
mov dword [esi + 0x60], 0x58
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c