joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403750
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x417040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x134]
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x134], 1
mov ebp, eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jle 0x4037b7
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x4037b7
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4037e9
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4038b5
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
lea edx, [esp + 0x138]
lea eax, [esp + 0x14]
push edx
push str.StringFileInfo_04x_04x_
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
xor edx, edx
mov dx, word [ecx + 2]
push edx
xor edx, edx
mov dx, word [ecx]
push edx
push eax
lea eax, [esp + 0x30]
push 0x100
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [esp + 0x13c]
test eax, eax
je 0x403871
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [edi]
add esp, 4
mov eax, dword [edx - 8]
test eax, eax
je 0x403888
mov ebx, 1
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x403dd0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, 0x422d58
call sub.MFC42.DLL_CStringArray::SetSize
mov eax, dword [0x422d60]
push str.3DS_MAX
push eax
mov ecx, 0x422d58
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [0x422d60]
push str.3DSMAX
push ecx
mov ecx, 0x422d58
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
mov dword [esp + 0x14], ebx
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
shr eax, 2
je 0x403e78
mov ebp, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.00403b70
add esp, 4
add ebx, 4
dec ebp
jne 0x403e36
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x404220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4171c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
push str._H:_M:_S
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push str.__s_
push ecx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
push 0x421430
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_operator_2
lea ebp, [esi + 0xa0]
push eax
mov ecx, ebp
mov byte [esp + 0x28], 4
call fcn.00416120
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [esi + 0x80]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push eax
call edi
cmp eax, 0x96
jle 0x404360
push 0x422d40
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 0x80]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call edi
mov edx, dword [esi + 0x80]
push 0
push 0
push 0xb7
push edx
call edi
mov eax, dword [esi + 0x80]
push 0
push 0
push 0x303
push eax
jmp 0x40436f
mov ecx, dword [esi + 0x80]
push eax
push 0
push 0xb6
push ecx
call edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x404670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push 0xffffffffffffffff
push 0x417228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov eax, dword [esp + 0x28]
mov word [esp + 8], 2
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
or edi, 0xffffffff
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4046fd
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, edi
je 0x4046fd
lea edx, [esp + 8]
push 0x10
push edx
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
je 0x4046fd
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x404720
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 4]
test eax, eax
push ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
push 0
je 0x404768
lea edx, [esp + 0x14]
push edx
push 0
jmp 0x40476f
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jg 0x404789
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x10c
ret 0xc

Function at 0x4047b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
jg 0x4047c1
pop edi
xor eax, eax
pop esi
ret 0xc
mov edi, dword [esp + 0xc]
push 1
push 0x1e
push edi
call fcn.00404720
test eax, eax
jne 0x4047d8
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
push 0
push esi
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
xor ecx, ecx
cmp eax, esi
sete cl
pop edi
mov eax, ecx
pop esi
ret 0xc

Function at 0x404800
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
jg 0x404811
pop edi
xor eax, eax
pop esi
ret 0xc
mov edi, dword [esp + 0xc]
push 1
push 0x1e
push edi
call fcn.00404720
test eax, eax
jne 0x404828
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
push 0
push esi
push eax
push edi
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, esi
sete cl
pop edi
mov eax, ecx
pop esi
ret 0xc
Function at 0x404850
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
jne 0x404865
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jbe 0x404895
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
push 0
lea edx, [esi + ecx]
push eax
push edx
push ebx
call ebp
test eax, eax
jle 0x40485c
add esi, eax
cmp esi, edi
jb 0x404879
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc

Function at 0x4048b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
ja 0x4048c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ebx, dword [esp + 0x14]
push 0
push 0x1e
push ebx
call fcn.00404720
test eax, eax
jne 0x4048e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
xor esi, esi
test edi, edi
jbe 0x404906
mov ebp, dword [esp + 0x18]
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebp]
push eax
push ecx
push ebx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x4048d7
add esi, eax
cmp esi, edi
jb 0x4048ea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x4055c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40561f
mov ebx, dword [esp + 0x138]
cmp dword [esp + 0x24], ebx
je 0x40561b
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4055f3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x405930
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4174d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp dword [esi], 0
jne 0x4059b7
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x1c], 1
mov ecx, esp
mov dword [esp + 0xc], esp
push str.hparwnd
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x20], 2
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4214d0
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x422c90
mov byte [esp + 0x20], 0
call fcn.00402c20
test eax, eax
jle 0x4059d7
mov ecx, dword [esp + 0x20]
mov dword [esi], eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x422cec], 0x61
jg 0x4059d7
mov edx, dword [esi]
push 0
push 0
push 0x408
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x422cec], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4065c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4175d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
lea eax, [esp + 8]
lea ecx, [esp + 0x1c]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 8]
push eax
call esi
test edi, edi
pop edi
pop esi
mov byte [esp + 0xc], 0
lea ecx, [esp + 0x14]
je 0x406684
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x4067b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov ebx, dword [sym.imp.MSVCRT.dll__access]
push edi
mov ecx, 0x4c
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov al, byte [ebp]
mov esi, ebp
test al, al
je 0x406819
lea edi, [esp + 0x10]
sub edi, ebp
mov al, byte [esi]
mov byte [edi + esi], al
mov al, byte [esi + 1]
cmp al, 0x5c
jne 0x406811
lea ecx, [esp + 0x10]
push 0
push ecx
call ebx
add esp, 8
test eax, eax
jge 0x406811
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4067e8
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push ebp
call ebx
add esp, 8
xor ecx, ecx
test eax, eax
pop edi
pop esi
setge cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x134
ret
Function at 0x406850
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x417639
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x1bc], 0
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x1c4]
cmp dword [eax - 8], 3
jge 0x4068bb
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x1bc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
add esp, 0x1c0
ret
lea ecx, [esp + 0x1c4]
push edi
push ecx
mov ecx, 0x422c90
call fcn.00402ad0
lea ecx, [esp + 0xc]
call fcn.004160f0
mov edx, dword [esp + 0x1c8]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
lea eax, [esp + 0xf4]
push str._s.rar
push eax
mov byte [esp + 0x1cc], 1
call edi
add esp, 0xc
lea ecx, [esp + 0xf0]
push 0
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4069e1
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
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 0x4069d7
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x1cc], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c8], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [eax + 0x40]
test eax, eax
jne 0x4069c6
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1d0]
push ecx
push edx
lea eax, [esp + 0x38]
push str._s_s
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call esi
test eax, eax
jne 0x4069c6
lea edx, [esp + 0x30]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c8], 1
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x406922
pop esi
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c0], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x1c0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b8]
pop edi
mov dword fs:[0], ecx
add esp, 0x1c0
ret
Function at 0x4091a0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push 0x422d40
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 4]
push str.SoftwareAutodesk_backburner2007.0
push eax
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::Format
push pe_nt_image_headers32
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov esi, eax
mov dword [esp + 0x10], 1
test ecx, ecx
mov dword [esp + 0xc], pe_nt_image_headers32
mov eax, 0x20019
je 0x40920f
mov eax, 0x101
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4092c2
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push str.InstallDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4092c2
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
push ecx
mov ecx, dword [esp + 0x2c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xc]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40c5f0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
mov esi, 0xfa0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c644
lea ecx, [esp + 4]
mov dword [esp + 4], 0x40
push ecx
call eax
test eax, eax
je 0x40c663
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0x14
call fcn.00416690
pop esi
add esp, 0x40
ret
lea edx, [esp + 4]
mov dword [esp + 4], 0x20
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x10]
pop esi
shr eax, 0x14
add esp, 0x40
ret
mov eax, esi
pop esi
add esp, 0x40
ret
Function at 0x40c670
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x418299
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x830
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x858]
mov dword [esp + 0x850], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x42108c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40c6e5
push 0x42108c
lea ecx, [esp + 0x854]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
call fcn.004160f0
mov ecx, dword [esp + 0x850]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x444]
push str._s.
push edx
mov byte [esp + 0x854], 1
call ebx
add esp, 0xc
lea eax, [esp + 0x440]
lea ecx, [esp + 0x20]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40c865
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40c859
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x100
mov ecx, eax
mov byte [esp + 0x84c], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x848], 4
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x240]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call dword [edx + 0x40]
test eax, eax
je 0x40c80b
mov ecx, dword [esp + 0x850]
lea eax, [esp + 0x240]
push eax
push ecx
lea edx, [esp + 0x648]
push str._s_s
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x644]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x18]
call fcn.0040c670
jmp 0x40c848
mov edx, dword [esp + 0x850]
lea ecx, [esp + 0x240]
push ecx
push edx
lea eax, [esp + 0x48]
push str._s_s
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x40]
push ecx
call ebp
test eax, eax
jne 0x40c848
lea edx, [esp + 0x40]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x40]
push eax
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x848], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40c737
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x20]
mov byte [esp + 0x848], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x850]
mov dword [esp + 0x848], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x83c
ret 4