joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405738
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404360
xor eax, eax
push ebp
push 0x40591d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x405778
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x405792
push 0x105
mov eax, dword [ebp - 4]
call fcn.00404404
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x405907
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40592c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x405821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40592c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x405821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x405960
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x405821
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x405994
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x405907
xor eax, eax
push ebp
push 0x405900
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040553c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x405890
mov eax, dword [ebp - 0x10]
call fcn.00402ffc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404524
jmp 0x4058db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4059d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4058db
mov eax, dword [ebp - 0x10]
call fcn.00402ffc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4059d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405907
cmp dword [ebp - 8], 0
je 0x4058f6
mov eax, dword [ebp - 8]
call fcn.00403018
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405924
lea eax, [ebp - 4]
call fcn.00404368
ret
Function at 0x405be8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00404360
mov eax, dword [ebp - 0x21c]
call fcn.00404360
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x405d87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00404378
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00404404
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x405c88
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x405c9a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x405c85
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x405d53
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x405cc3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00405738
cmp dword [ebp - 0x220], 0
je 0x405cfb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00405adc
pop ecx
mov ebx, eax
jmp 0x405d53
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004053f4
mov eax, dword [ebp - 0x224]
call fcn.00405adc
pop ecx
mov ebx, eax
test bl, bl
jne 0x405d46
cmp byte [0x40eb38], 0
jne 0x405d46
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004053f4
mov eax, dword [ebp - 0x228]
call fcn.00405adc
pop ecx
mov ebx, eax
test bl, bl
jne 0x405d53
push ebp
call fcn.00405b8c
pop ecx
mov ebx, eax
test bl, bl
je 0x405d69
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00404560
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d8e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00404370
ret

Function at 0x405f84
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x406c14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x406c4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004044b4
jmp 0x406c56
mov eax, ebx
mov edx, esi
call fcn.00404378
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406c60
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x406c82
movzx eax, word [esp]
jmp 0x406c84
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x407e18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004040e8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x407dc2
mov eax, edi
add eax, eax
call fcn.00402ffc
mov esi, eax
jmp 0x407dc4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x407dfd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x407de7
mov eax, esp
cmp esi, eax
je 0x407e0a
mov eax, esi
call fcn.00403018
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x407e44
cmp bl, 0
je 0x407e40
cmp bl, 0x41
jl 0x407e3b
cmp bl, 0x5a
jg 0x407e3b
or bl, 0x20
xor al, bl
inc esi
jmp 0x407e1f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x407d84

Function at 0x408578
Capabilities:
Create process on windows
Create process suspended
Switch active desktop

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404360
xor eax, eax
push ebp
push 0x4086c6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x2000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404404
mov ebx, eax
push ebx
call sub.user32.dll_CreateDesktopW
mov dword [0x410e90], eax
xor eax, eax
push ebp
push 0x40869c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x410e4c
xor ecx, ecx
mov edx, 0x44
call fcn.00403368
mov dword [0x410e4c], 0x44
mov dword [0x410e54], ebx
push 0x64
call sub.kernel32.dll_Sleep_1
push 0x4086d8
push 0
push 2
call sub.kernel32.dll_OpenEventW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x410e90]
push eax
call sub.user32.dll_SwitchDesktop
push 0x64
call sub.kernel32.dll_Sleep_1
push 0x410e3c
push 0x410e4c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004032b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00406adc
lea eax, [ebp - 0xc]
mov edx, 0x408714
call fcn.00404694
mov eax, dword [ebp - 0xc]
call fcn.00404404
push eax
call sub.kernel32.dll_CreateProcessW
push 0xc8
call sub.kernel32.dll_Sleep_1
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086a3
mov eax, dword [0x410e90]
push eax
call sub.user32.dll_CloseDesktop
ret
Function at 0x403ebb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
xor edi, edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SOFTWAREXPTECHXPCAD.NET_V1.0General_CAD_ModuleInstall_
push 0x80000002
mov dword [0x415f98], esi
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x403f1a
lea eax, [ebp - 4]
push 4
push eax
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
push 4
push edi
push str.Lang
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, edi
je 0x403f1a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x403f1e
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, 0x40eed8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x24
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x104
xor ebx, ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [ebp - 0x14]
mov esi, 0x4168a8
push eax
mov ecx, esi
call fcn.0040e3b4
call sub.MFC42.DLL_AfxGetModuleState
push dword [eax + 0x10]
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push str._cht.dll
mov ecx, esi
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x14]
mov esi, 0x4168a4
push eax
mov ecx, esi
call fcn.0040e3b4
call sub.MFC42.DLL_AfxGetModuleState
push dword [eax + 0x10]
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push str._eng.dll
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x415fc8
push 0x8e
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
mov dword [ebp - 0x18], eax
call edi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x1001
push dword [0x4168a8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push 0x415fc8
push 0x8f
push ebx
mov dword [ebp - 4], 1
call esi
mov esi, eax
push esi
push ebx
call edi
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0x1001
push dword [0x4168a4]
lea ecx, [ebp - 0x30]
mov esi, eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFile::Open
push edi
push esi
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push 1
pop esi
mov dword [ebp - 4], esi
jmp 0x4040a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040e420
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405193
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x40f2df
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x4d0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x20], 0x400
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x64
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4dc]
push eax
push 0
mov dword [ebp - 0x1c], 0x50
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 1
lea ecx, [ebp - 0x10]
pop ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x405251
mov ecx, dword [ebp + 8]
push 0x4168a0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040e3ae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040e3ae
mov eax, dword [ebp + 8]
jmp 0x40535f
push esi
lea eax, [ebp - 0x8c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov esi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx edi, byte [eax]
push ebx
lea eax, [ebp - 0x14]
push str.S__lu_
push eax
call sub.MFC42.DLL_CString::Format
mov al, byte [esi]
add esp, 0xc
test al, al
jne 0x4052c2
cmp byte [esi + 1], al
jne 0x4052c2
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 4]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 5]
shl eax, 8
add eax, ecx
push eax
lea eax, [ebp - 0x10]
push 0x416028
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4052f0
movzx ecx, byte [esi + 5]
push ecx
movzx ecx, byte [esi + 4]
push ecx
movzx ecx, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push ecx
movzx ecx, byte [esi + 1]
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0x10]
push str._02h_02h_02h_02h_02h_02h
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
xor esi, esi
test edi, edi
jbe 0x405334
lea eax, [ebp - 0x8c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push dword [eax]
lea eax, [ebp - 0x10]
push str.__lu
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
inc esi
cmp esi, edi
jb 0x405302
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], bl
call fcn.0040e3ae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040e3ae
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405873
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40f37f
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x63c
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], edi
call sub.MFC42.DLL_CString::CString_1
push 1
mov esi, 0x208
pop ebx
lea eax, [ebp - 0x440]
push esi
push edi
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x648]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x238]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea ecx, [ebp - 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersion
call sub.MFC42.DLL_CString::CString
push str.CommonFilesDir
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push ebx
push edi
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405984
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], esi
mov eax, dword [eax - 8]
push ecx
push edi
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405966
push dword [ebp - 0x24]
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x648]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x238]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
jmp 0x405979
lea eax, [ebp - 0x238]
push str.C:Program_FilesCommon_Files
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405997
lea eax, [ebp - 0x238]
push str.C:Program_FilesCommon_Files
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040e3ba
lea eax, [ebp - 0x28]
push ebx
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, 0x415a2c
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x28]
setne byte [ebp - 0xd]
call fcn.0040e3ae
cmp byte [ebp - 0xd], 0
je 0x4059e1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.ISDViewer_
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040e3ae
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040e3ae
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4078ba
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x40f678
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x144
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
push 0x4164c8
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40796f
test byte [ebp - 0x150], 0x10
jne 0x407928
mov eax, dword [esi + 0x1d0]
push 1
lea ecx, [esi + 0x1c8]
pop ebx
lea edx, [ebp - 0x124]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea eax, [ebp - 0x150]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x40796e
test byte [ebp - 0x150], 0x10
jne 0x407962
mov eax, dword [esi + 0x1d0]
lea ecx, [esi + 0x1c8]
lea edx, [ebp - 0x124]
inc ebx
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
jmp 0x407939
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x407f73
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x40f72b
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x220
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
lea eax, [ebp + 0xc]
pop ebx
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
mov edi, 0x80000002
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push edi
call esi
test eax, eax
je 0x407fd5
mov ecx, dword [ebp + 8]
push str.FALSE
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x14], ebx
jmp 0x4080a4
mov eax, 0x104
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x408053
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x415a2c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push edi
call esi
test eax, eax
jne 0x408053
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x104
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.AcadLocation
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408065
mov ecx, dword [ebp + 8]
push str.FALSE
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x14], ebx
jmp 0x4080a4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.0040e3ba
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
call fcn.0040e3ae
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040e3ae
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x409571
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push eax
push 0x411e30
push 1
push 0
push 0x411e20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4095b7
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x411e40
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4095bb
xor eax, eax
jmp 0x4095fd
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
leave
ret 8