joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042e1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40434f
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc esi
test eax, eax
je 0x404318
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x40434f
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418035
leave
ret

Function at 0x40435e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4043dc
jmp 0x4043b3
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.0040435e
pop ecx
pop ecx
test eax, eax
lea ecx, [esi + 1]
cmove esi, ecx
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x404397
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.00418035
leave
ret
Function at 0x404748
Capabilities:
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.00418820
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 4
push eax
push ecx
mov dword [ebp - 0x8008], ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x404808
push ebx
push edi
push str.WININIT.INI
mov word [ebp - 0x8004], ax
lea eax, [ebp - 0x8004]
push 0x4000
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ebx, eax
lea edi, [ebp - 0x8004]
push str.NUL
lea edi, [edi + ebx*2]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
push dword [ebp - 0x8008]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
push dword [ebp - 0x8008]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add eax, ebx
add esp, 0x14
lea eax, [eax*2 + 0xa]
pop edi
pop ebx
cmp eax, 0x8000
jae 0x404819
xor ecx, ecx
mov word [ebp + eax - 0x8004], cx
lea eax, [ebp - 0x8004]
push str.WININIT.INI
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x5201ec], eax
call fcn.00418035
leave
ret
call fcn.00418623
int3

Function at 0x40494c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
push eax
push ecx
push str._s_s
lea eax, [ebp - 0x414]
xor esi, esi
push 0x208
push eax
call fcn.00404890
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4049a3
xor eax, eax
jmp 0x4049ef
lea eax, [ebp - 0x638]
push 0x4d4e20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x4049d4
lea eax, [ebp - 0x638]
push 0x4d4e24
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x4049d4
inc esi
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4049a3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00418035
leave
ret
Function at 0x407025
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [0x5201dc], eax
mov dword [0x5201d8], eax
mov dword [0x5201d4], eax
mov dword [0x5201d0], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4070c2
push edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4070b9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4d3d70
push edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xa]
mov dword [0x5201d0], eax
movzx eax, word [ecx + 8]
mov dword [0x5201d4], eax
movzx eax, word [ecx + 0xe]
mov dword [0x5201d8], eax
movzx eax, word [ecx + 0xc]
mov dword [0x5201dc], eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
lea ecx, [ebp - 4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
pop esi
leave
ret
Function at 0x4070ce
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x4bc776
call fcn.004180a8
mov edi, dword [ebp + 8]
xor esi, esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push SysStringLen
mov dword [ebp - 0x228], edi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], esi
call fcn.0040a5b0
xor ebx, ebx
mov dword [ebp - 4], esi
push 0x4d4174
inc ebx
push edi
mov dword [ebp - 0x224], ebx
call fcn.004019a5
add esp, 0x18
test al, al
je 0x40718e
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ax, word [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
push 0x5c
pop esi
test ax, ax
je 0x407160
movzx edx, ax
cmp dx, si
je 0x407160
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40714e
cmp word [ecx], si
jne 0x40716b
xor eax, eax
mov word [ecx + 2], ax
lea eax, [ebp - 0x21c]
push str.Program_Files
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push ebx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__24]
push 0x4d3d70
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
lea ecx, [ebp - 0x220]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x4071eb
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
call fcn.00418057
ret
Function at 0x407ff9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x468]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x468], ebx
lea eax, [ebp - 0x424]
push 0x10
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov eax, dword [0x5201f0]
lea ecx, [ebp - 0x424]
add esp, 0x20
test edi, edi
cmovne eax, edi
push ecx
lea ecx, [ebp - 0x468]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x4080ab
cmp dword [ebp + 0x10], ebx
je 0x408095
push dword [ebp + 0x10]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418035
leave
ret

Function at 0x408177
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 4
mov eax, 0x4bca0a
call fcn.00418075
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x12
mov dword [ebp - 4], esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__23]
push esi
push 0x10
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call sub.mfc140u.dll_AfxMessageBox_1
push 5
push esi
push esi
push str.https:__www.hyperionics.com
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x408796
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ecx
jle 0x4087bb
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
cdq
idiv dword [ebp + 8]
mov al, byte [edx + edi]
xor byte [esi + ecx], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x4087a8
pop edi
pop esi
pop ebp
ret

Function at 0x40a110
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jns 0x40a245
xor ecx, ecx
mov edx, 0x80000001
cmp ebx, 0x36
ja case.0x40a1a2.1
movzx eax, byte [ebx + 0x40a290]
jmp dword [eax*4 + 0x40a25c]
mov edx, SysStringLen
mov ecx, str.Common_Programs
jmp case.0x40a1a2.1
mov ecx, str.Programs
jmp case.0x40a1a2.1
mov ecx, str.Common_Desktop
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Desktop
jmp case.0x40a1a2.1
mov ecx, str.Common_Startup
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Startup
jmp case.0x40a1a2.1
mov ecx, str.Common_AppData
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.AppData
jmp case.0x40a1a2.1
mov ecx, str.Common_Documents
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Personal
jmp case.0x40a1a2.1
mov ecx, str.CommonPictures
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.MyPictures
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5b0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1a9
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jns 0x40a245
xor ecx, ecx
mov edx, 0x80000001
cmp ebx, 0x36
ja case.0x40a1a2.1
movzx eax, byte [ebx + 0x40a290]
jmp dword [eax*4 + 0x40a25c]
mov edx, SysStringLen
mov ecx, str.Common_Programs
jmp case.0x40a1a2.1
mov ecx, str.Programs
jmp case.0x40a1a2.1
mov ecx, str.Common_Desktop
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Desktop
jmp case.0x40a1a2.1
mov ecx, str.Common_Startup
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Startup
jmp case.0x40a1a2.1
mov ecx, str.Common_AppData
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.AppData
jmp case.0x40a1a2.1
mov ecx, str.Common_Documents
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Personal
jmp case.0x40a1a2.1
mov ecx, str.CommonPictures
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.MyPictures
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5b0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1bc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jns 0x40a245
xor ecx, ecx
mov edx, 0x80000001
cmp ebx, 0x36
ja case.0x40a1a2.1
movzx eax, byte [ebx + 0x40a290]
jmp dword [eax*4 + 0x40a25c]
mov edx, SysStringLen
mov ecx, str.Common_Programs
jmp case.0x40a1a2.1
mov ecx, str.Programs
jmp case.0x40a1a2.1
mov ecx, str.Common_Desktop
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Desktop
jmp case.0x40a1a2.1
mov ecx, str.Common_Startup
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Startup
jmp case.0x40a1a2.1
mov ecx, str.Common_AppData
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.AppData
jmp case.0x40a1a2.1
mov ecx, str.Common_Documents
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Personal
jmp case.0x40a1a2.1
mov ecx, str.CommonPictures
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.MyPictures
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5b0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1cf
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jns 0x40a245
xor ecx, ecx
mov edx, 0x80000001
cmp ebx, 0x36
ja case.0x40a1a2.1
movzx eax, byte [ebx + 0x40a290]
jmp dword [eax*4 + 0x40a25c]
mov edx, SysStringLen
mov ecx, str.Common_Programs
jmp case.0x40a1a2.1
mov ecx, str.Programs
jmp case.0x40a1a2.1
mov ecx, str.Common_Desktop
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Desktop
jmp case.0x40a1a2.1
mov ecx, str.Common_Startup
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Startup
jmp case.0x40a1a2.1
mov ecx, str.Common_AppData
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.AppData
jmp case.0x40a1a2.1
mov ecx, str.Common_Documents
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Personal
jmp case.0x40a1a2.1
mov ecx, str.CommonPictures
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.MyPictures
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5b0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1e2
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jns 0x40a245
xor ecx, ecx
mov edx, 0x80000001
cmp ebx, 0x36
ja case.0x40a1a2.1
movzx eax, byte [ebx + 0x40a290]
jmp dword [eax*4 + 0x40a25c]
mov edx, SysStringLen
mov ecx, str.Common_Programs
jmp case.0x40a1a2.1
mov ecx, str.Programs
jmp case.0x40a1a2.1
mov ecx, str.Common_Desktop
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Desktop
jmp case.0x40a1a2.1
mov ecx, str.Common_Startup
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Startup
jmp case.0x40a1a2.1
mov ecx, str.Common_AppData
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.AppData
jmp case.0x40a1a2.1
mov ecx, str.Common_Documents
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Personal
jmp case.0x40a1a2.1
mov ecx, str.CommonPictures
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.MyPictures
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5b0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1f5
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jns 0x40a245
xor ecx, ecx
mov edx, 0x80000001
cmp ebx, 0x36
ja case.0x40a1a2.1
movzx eax, byte [ebx + 0x40a290]
jmp dword [eax*4 + 0x40a25c]
mov edx, SysStringLen
mov ecx, str.Common_Programs
jmp case.0x40a1a2.1
mov ecx, str.Programs
jmp case.0x40a1a2.1
mov ecx, str.Common_Desktop
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Desktop
jmp case.0x40a1a2.1
mov ecx, str.Common_Startup
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Startup
jmp case.0x40a1a2.1
mov ecx, str.Common_AppData
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.AppData
jmp case.0x40a1a2.1
mov ecx, str.Common_Documents
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.Personal
jmp case.0x40a1a2.1
mov ecx, str.CommonPictures
mov edx, SysStringLen
jmp case.0x40a1a2.1
mov ecx, str.MyPictures
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5b0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret