joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ada0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4a9e8b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d4218]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00472400
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40ae38
push 0x4d0684
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004716a4
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x40b35c
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b3d6
cmp dword [ebp - 0x7c], esi
je 0x40b3d6
push 0x104
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.004717cc
add ebp, 0x194
leave
ret
Function at 0x40b9c4
Capabilities:
Accept command line arguments
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x98
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
mov esi, dword [ebp + 0x70]
push edi
call fcn.0040de1d
test eax, eax
je 0x40ba1a
push 0x4ab7c8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40bbcd
xor edi, edi
push edi
push 0x4ab7b8
push 0x4ab79c
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40bbcd
call fcn.0040b35c
push 6
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40bbcd
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0042fabc
test al, al
je 0x40bbcd
mov ecx, 0x4d5f40
call fcn.0041bbfc
call fcn.0040de63
test eax, eax
jne 0x40ba60
push esi
call fcn.0041bcfa
pop ecx
push ebx
push esi
call fcn.0042ba2c
pop ecx
push 0xffffffffffffffff
call fcn.0042b9ff
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b0ee
call fcn.0040e624
push eax
lea ecx, [ebp - 0x24]
call fcn.0040b983
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b6c4
push str.360FileSetup_Theme.ui
lea ecx, [ebp - 0x28]
call fcn.0040b8f6
lea ecx, [ebp - 0x30]
call fcn.0042022e
push 0x4ab744
lea ecx, [ebp - 0x30]
call fcn.00420269
push 0x4ab734
lea ecx, [ebp - 0x30]
call fcn.00420264
mov esi, dword [ebp - 0x28]
push esi
lea ecx, [ebp - 0x30]
call fcn.0042019f
push esi
call fcn.0042bb78
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0042024b
lea ecx, [esi - 0x10]
call fcn.0040b453
push 1
call fcn.0040c60f
mov dword [esp], 0x594
call fcn.00471e15
pop ecx
cmp eax, edi
je 0x40bb11
mov ecx, eax
call fcn.00416590
mov ebx, eax
jmp 0x40bb13
xor ebx, ebx
cmp ebx, edi
je 0x40bbb9
push edi
push 0x23c
call fcn.0042f8ae
pop ecx
push eax
push 0x320
call fcn.0042f8ae
pop ecx
push eax
push edi
push edi
push edi
push 0x80020000
push 0x4ca1bc
push edi
mov ecx, ebx
call fcn.0042b8ca
mov ecx, ebx
call fcn.0042acc6
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4ab7c8
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push eax
call edi
test eax, eax
jne 0x40bb8b
push 5
mov ecx, ebx
call fcn.0042ab89
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, ebx
call fcn.0042ab89
push eax
call fcn.0040dee7
pop ecx
pop ecx
call fcn.0042f6f0
mov ecx, 0x4d5f40
call fcn.0041ad7a
push str._AutoClean
call esi
push eax
call edi
test eax, eax
je 0x40bbad
call fcn.0040d46b
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040b453
lea ecx, [ebp - 0x20]
call fcn.0042a79f
pop ebx
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004717cc
add ebp, 0x68
leave
ret 0x10
Function at 0x40cb18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x40cb99
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40cb90
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40cb90
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40cb89
push ebx
call fcn.00472dfd
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb89
push ebx
push dword [ebp + 8]
push eax
call fcn.00472050
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x40cbd6
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x4ab9cc
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40cbcd
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.00472ca6
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40cbfc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x4d7a64
mov esi, 0x4000
push esi
call fcn.00472ed2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40cca8
push esi
push 0
push edi
call fcn.00472400
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40cca1
cmp eax, 0x3fff
ja 0x40cca1
push edi
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40cca1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4ab9cc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40cca1
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
push edi
mov word [ecx], ax
call fcn.00472ec7
xor eax, eax
pop ecx
inc eax
jmp 0x40ccaa
push edi
call fcn.00472ec7
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40cfdf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x4ec]
sub esp, 0x56c
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push ebx
push esi
mov esi, dword [ebp + 0x4f4]
push edi
mov edi, 0x11c
push edi
lea eax, [ebp - 0x44]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x48], ebx
call fcn.00472400
push edi
push 0
push esi
mov dword [ebp - 0x44], edi
call fcn.00472400
add esp, 0x18
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 5
jne 0x40d04b
mov ecx, ebx
call fcn.0040ca1f
test eax, eax
je 0x40d04b
and dword [ebx + 4], 0
jmp 0x40d0fa
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0040cae7
mov ebx, dword [esi + 4]
mov eax, dword [ebp - 0x40]
imul ebx, ebx, 0xa
add ebx, dword [esi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jle 0x40d080
push edi
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00472050
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0xd8], ax
lea eax, [ebp + 0xda]
push eax
call fcn.00472400
mov edi, dword [ebp - 0x48]
add esp, 0xc
lea eax, [ebp + 0xd8]
push eax
mov ecx, edi
call fcn.0040ca5f
test eax, eax
jl 0x40d0f6
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xd8]
push eax
mov ecx, edi
call fcn.0040cb18
test eax, eax
je 0x40d0f6
mov ecx, dword [ebp - 0x70]
movzx edx, word [ebp - 0x70]
shr ecx, 0x10
mov eax, ecx
imul eax, eax, 0xa
add eax, edx
cmp ebx, eax
jge 0x40d0f6
mov eax, dword [ebp - 0x6c]
shr eax, 0x10
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [edi + 4], 1
jmp 0x40d0fa
and dword [edi + 4], 0
mov ecx, dword [ebp + 0x4e8]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004717cc
add ebp, 0x4ec
leave
ret 4
Function at 0x40d131
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2e8
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov ebx, 0x2001f
push ebx
push esi
push esi
push str.SoftwareClassesFolder_shell
mov edi, 0x80000001
push edi
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
call fcn.0040c868
test eax, eax
je 0x40d19a
lea ecx, [ebp - 0x264]
call fcn.0040c84d
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717cc
add ebp, 0x78
leave
ret
xor eax, eax
push 0xc6
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push esi
push eax
call fcn.00472400
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x268], 0x64
call fcn.0040c903
push str.360FileBrowser
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40d17b
push esi
push esi
push ebx
push esi
push esi
push str.SoftwareClassesFolder_shell360FileBrowsercommand
push edi
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
call fcn.0040c868
test eax, eax
je 0x40d23c
push 1
push 0x4ca1bc
push esi
lea ecx, [ebp - 0x264]
call fcn.0040c972
lea ecx, [ebp - 0x270]
call fcn.0040c84d
lea ecx, [ebp - 0x264]
call fcn.0040c84d
mov eax, esi
jmp 0x40d188
xor eax, eax
push 0x206
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push esi
push eax
call fcn.00472400
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], 0x104
call fcn.0040c903
lea eax, [ebp - 0x25c]
push eax
call fcn.004717db
pop ecx
test eax, eax
jbe 0x40d21f
cmp word [ebp - 0x25c], 0x22
jne 0x40d21f
lea eax, [ebp - 0x25a]
push 0x22
push eax
call fcn.0047247a
pop ecx
pop ecx
cmp eax, esi
je 0x40d2b2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x25a]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d21f
xor esi, esi
inc esi
jmp 0x40d21f
Function at 0x40d46b
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x7f4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x3e4], ax
xor ebx, ebx
lea eax, [ebp + 0x3e6]
push ebx
push eax
call fcn.00472400
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x3e4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
mov word [ebp + 0x1dc], ax
lea eax, [ebp + 0x1de]
push ebx
push eax
call fcn.00472400
add esp, 0xc
push esi
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp + 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor eax, eax
push edi
mov word [ebp + 0x5ec], ax
lea eax, [ebp + 0x5ee]
push ebx
push eax
call fcn.00472400
add esp, 0xc
push esi
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.cmd.exe
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00472400
xor eax, eax
push 0x10
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
call fcn.00472400
xor eax, eax
push edi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2a]
push ebx
push eax
call fcn.00472400
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp + 0x5ec]
push eax
push str._s__c_del__s
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040cf88
add esp, 0x38
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d5d6
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0x40
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x7f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717cc
add ebp, 0x7f8
leave
ret
Function at 0x40dee7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.0040de63
test eax, eax
je 0x40df97
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
add eax, 3
push esi
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00472400
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.dwmapi.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40df96
push str.DwmSetWindowAttribute
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40df8f
push 4
lea ecx, [ebp - 0x210]
push ecx
push 0x21
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004717cc
leave
ret

Function at 0x40e624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x4d6100], 1
push esi
mov esi, 0x4d60fc
jne 0x40e664
or dword [0x4d6100], 1
push 0x4d7a48
mov ecx, esi
call fcn.0040b5f9
push 0x4aa188
call fcn.00471fa1
pop ecx
mov eax, dword [0x4d60fc]
cmp dword [eax - 0xc], 0
jne 0x40e6cd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00472400
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push str.temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040b8d1
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d60fc]
xor ecx, ebp
pop esi
call fcn.004717cc
leave
ret
Function at 0x40eaca
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x1c4]
push edi
mov edi, dword [ebp + 0x1c0]
push 0
push 2
mov dword [ebp - 0x78], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x40eb66
lea ecx, [ebp - 0x78]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40eb5d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push edi
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x40eb55
cmp dword [ebp + 0x1c8], 0
jne 0x40eb43
push ebx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x40eb55
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40eb24
jmp 0x40eb5c
mov dword [ebp - 0x7c], 1
pop esi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004717cc
add ebp, 0x1b8
leave
ret
Function at 0x40ebda
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x4abf2c
lea edi, [ebp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 0xd3a
lea eax, [ebp + 0x58]
push 0x1a
mov ebx, 0x104
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsw word es:[edi], word [esi]
call fcn.0040eb9c
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ExeString
lea eax, [ebp + 0x58]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ec6f
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ec6f
xor eax, eax
inc eax
jmp 0x40ed80
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00472400
add esp, 0xc
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
push 0xd3c
mov esi, 0x4abee4
lea edi, [ebp + 0x1c]
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004730f0
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040eb9c
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4ca879
lea eax, [ebp + 0x1c]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ecfc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ec67
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00472400
push 0xf
pop ecx
mov esi, 0x4abea4
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0xd3c
lea eax, [ebp - 0x24]
push 0x3d
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsb byte es:[edi], byte [esi]
call fcn.0040eb9c
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4ca879
lea eax, [ebp - 0x24]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ed7e
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ec67
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717cc
add ebp, 0x78
leave
ret
Function at 0x40ed92
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call fcn.00472400
add esp, 0xc
push 7
pop ecx
mov esi, 0x4abf60
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4abf54
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push 0x837
push eax
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x104
movsd dword es:[edi], dword [esi]
call fcn.004730f0
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040eb9c
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x844
push eax
call fcn.004730f0
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040eb9c
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
push str.ProgramPath
lea eax, [ebp - 0x2c]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x40ee83
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x40ee83
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ee83
xor eax, eax
inc eax
jmp 0x40ee85
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717cc
leave
ret

Function at 0x40ee91
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x13b]
push 0
push eax
mov byte [ebp - 0x13c], 0
call fcn.00472400
add esp, 0xc
push 8
pop ecx
mov esi, 0x4abf98
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4abf84
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x237f
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x140], 0x104
call fcn.004730f0
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040eb9c
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004730f0
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040eb9c
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x144]
push eax
push str.AppPath
lea eax, [ebp - 0x38]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x40ef81
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x13c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x40ef81
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ef81
xor eax, eax
inc eax
jmp 0x40ef83
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717cc
leave
ret