joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4084f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
push 0x40cac0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.004077dc
mov esi, dword [esp + 0x2c]
push 0x40cac0
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.0040782a
lea eax, [esp + 0x10]
push str.SOFTWAREAutodeskAutoCADR16.1
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0xc]
push str.CurVer
call fcn.0040782a
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 2
call fcn.00402d20
add esp, 0xc
cmp eax, edi
jne 0x402788
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 2
call fcn.00402aa0
add esp, 0xc
cmp eax, edi
jne 0x402788
push str.ACAD_301:409
lea ecx, [esp + 0x18]
call fcn.0040782a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.SOFTWAREAutodeskAutoCADR16.1_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push str.AcadLocation
call fcn.0040782a
push esi
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 2
call fcn.00402aa0
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 8], edi
je 0x402848
push 1
push 0x5c
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402843
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
mov edi, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x402890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
push 0x40cac0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.004077dc
mov esi, dword [esp + 0x2c]
push 0x40cac0
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.0040782a
lea eax, [esp + 0x10]
push str.SOFTWAREAutodeskAutoCADR16.2
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0xc]
push str.CurVer
call fcn.0040782a
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 2
call fcn.00402d20
add esp, 0xc
cmp eax, edi
jne 0x402998
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 2
call fcn.00402aa0
add esp, 0xc
cmp eax, edi
jne 0x402998
push str.ACAD_4001:409
lea ecx, [esp + 0x18]
call fcn.0040782a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.SOFTWAREAutodeskAutoCADR16.2_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push str.AcadLocation
call fcn.0040782a
push esi
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 2
call fcn.00402aa0
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 8], edi
je 0x402a58
push 1
push 0x5c
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402a53
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
mov edi, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x402aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push esi
push edi
mov edi, dword [esp + 0x82c]
push 0x40cac0
mov ecx, edi
mov dword [esp + 0x820], 1
xor esi, esi
call fcn.0040782a
mov ecx, dword [esp + 0x824]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402b3d
lea ecx, [esp + 0x824]
mov byte [esp + 0x81c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x828]
mov dword [esp + 0x81c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x82c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b7e
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0040782a
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x824]
mov byte [esp + 0x81c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x828]
mov dword [esp + 0x81c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x814]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x818
ret

Function at 0x402bd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
mov dword [esp + 0x810], 0
mov ecx, dword [esp + 0x818]
lea eax, [esp + 4]
push eax
push ecx
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402c6c
lea ecx, [esp + 0x818]
mov byte [esp + 0x810], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x81c]
mov byte [esp + 0x810], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x820]
mov dword [esp + 0x810], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
add esp, 0x810
ret
mov edx, dword [esp + 0x820]
lea eax, [esp + 8]
push edx
push 0x40c2a0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x82c]
add esp, 0xc
lea edx, [esp + 8]
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 4]
inc eax
push eax
mov eax, dword [esp + 0x820]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402cb8
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x818]
mov byte [esp + 0x810], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x81c]
mov byte [esp + 0x810], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x820]
mov dword [esp + 0x810], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x402d20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4085c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push esi
push edi
mov edi, dword [esp + 0x82c]
push 0x40cac0
mov ecx, edi
mov dword [esp + 0x820], 1
xor esi, esi
call fcn.0040782a
mov ecx, dword [esp + 0x824]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402dbd
lea ecx, [esp + 0x824]
mov byte [esp + 0x81c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x828]
mov dword [esp + 0x81c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x82c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402dfe
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0040782a
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x824]
mov byte [esp + 0x81c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x828]
mov dword [esp + 0x81c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x814]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x818
ret

Function at 0x402e50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4085e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
mov dword [esp + 0x810], 0
mov ecx, dword [esp + 0x818]
lea eax, [esp + 4]
push eax
push ecx
push 0x80000001
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402eec
lea ecx, [esp + 0x818]
mov byte [esp + 0x810], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x81c]
mov byte [esp + 0x810], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x820]
mov dword [esp + 0x810], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
add esp, 0x810
ret
mov edx, dword [esp + 0x820]
lea eax, [esp + 8]
push edx
push 0x40c2a0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x82c]
add esp, 0xc
lea edx, [esp + 8]
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 4]
inc eax
push eax
mov eax, dword [esp + 0x820]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402f38
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x818]
mov byte [esp + 0x810], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x81c]
mov byte [esp + 0x810], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x820]
mov dword [esp + 0x810], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x4036c0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x408790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x30]
mov bl, 5
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40c138
mov byte [esp + 0x58], bl
call fcn.004077dc
push ecx
lea edi, [esi + 0x74]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x58], bl
call fcn.00403d90
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x40383e
lea ecx, [esp + 0x1c]
push ebp
push ecx
lea ecx, [esp + 0x38]
call fcn.00402260
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.0040787e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push str.Setup.exe
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x403831
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push edi
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 8
call fcn.0040787e
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea eax, [esi + 0x78]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 9
call fcn.0040787e
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004067c0
mov eax, dword [esp + 0x38]
inc ebp
cmp ebp, eax
jl 0x403776
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 4
call fcn.004078ae
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
Function at 0x403ba0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408806
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edi, dword [esp + 0x154]
mov ecx, esi
push edi
mov dword [esp + 0x150], 0
call fcn.004067f0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x40]
xor edx, edx
mov ecx, edi
sub eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov al, byte [ecx]
cmp al, 0x5c
je 0x403c39
cmp al, 0x2f
je 0x403c39
test al, al
jne 0x403d16
mov eax, dword [esp + 0x154]
mov al, byte [edx + eax - 1]
cmp al, 0x5c
je 0x403d16
cmp al, 0x2f
je 0x403d16
mov eax, dword [esp + 0x154]
cmp byte [edx + eax - 1], 0x3a
je 0x403d16
cmp edx, 1
jl 0x403d16
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push 0
push eax
mov byte [edx + ecx], 0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x403d12
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403d12
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0
lea edx, [esp + 0x24]
push 0
push edx
push 0x400
mov byte [esp + 0x15c], 1
call ebp
push eax
push 0
push 0x1300
call edi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x40c3ac
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
call ebx
mov ecx, dword [esp + 0x10]
push 0x25
push 0
push ecx
mov ecx, dword [esi + 0x20]
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 4
mov byte [esp + 0x14c], 0
lea ecx, [esp + 0x10]
jne 0x403d36
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x40]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403c88
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
mov edx, dword [esp + 0x18]
test al, al
mov byte [edx + ecx], al
je 0x403d53
mov edx, dword [esp + 0x14]
inc edx
inc ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jmp 0x403c0c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x14c], 0xffffffff
call fcn.004078ea
xor eax, eax
jmp 0x403d6c
lea ecx, [esp + 0x24]
mov dword [esp + 0x14c], 0xffffffff
call fcn.004078ea
mov eax, 1
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4
Function at 0x403d90
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x408840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CFileFind::CFileFind
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CStringArray::SetSize
push 0x104
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call edi
mov ecx, dword [esp + 0x40]
push 0
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x403e9b
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x14]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x403e96
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
test eax, eax
jne 0x403e96
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 5
call fcn.0040787e
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
test ebp, ebp
jne 0x403e32
pop ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 8]
push edx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call fcn.004078ea
lea ecx, [esp + 8]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x406630
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x78]
push str.Uninstall.log
push eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004068d0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040787e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004067c0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov edx, dword [ebp - 0x14]
push ebx
push edx
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x4066bf
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x14]
push 0x5001
push ecx
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov esi, dword [esi + 0x70]
lea ecx, [ebp - 0x34]
push esi
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [ebp - 0x14]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040799e
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406990
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x408e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov ebx, dword [esp + 0x20]
xor esi, esi
push 0xffffffffffffffff
push esi
mov ecx, ebx
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CStringArray::SetSize
push 0x40cac0
lea ecx, [esp + 0x24]
call fcn.004077dc
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000001
mov byte [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406a3f
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
push 0x400
mov edi, esi
push 0x400
lea ecx, [esp + 0x30]
inc esi
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x14]
push eax
push edi
push edx
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
mov edi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test edi, edi
jne 0x406a32
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
jmp 0x4069f0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8