joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eadd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b49f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x584f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0xc]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
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]
push 0x104
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0xffffffffffffffff
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ebca0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b9b5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x584f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov edi, dword [ecx + 0x30]
mov esi, dword [ecx + 0x34]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0xa
push 0x64
push 0x64
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 2
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltow_s]
call esi
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0xffffffffffffffff
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0xa
push 0x64
push 0x64
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 9
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push edi
call esi
add esp, 0x10
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x10]
push 1
push 0x53310c
mov dword [ebp - 0x18], 0x15
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045edd0
add esp, 0x20
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
add esp, 4
lea ecx, [ebp - 0x24]
fstp qword [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
fld qword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f2750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cb15
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x584f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
push 0xa
push 0x538d64
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push eax
mov dword [ebp - 0x5c], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov word [esi + 0x14], 0
call fcn.004c1a10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4f2892
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
push str.Cant_open_rb
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x40], xmm0
call fcn.0045bfe0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00482be0
add esp, 0xc
cmp dword [eax + 0x14], 7
mov byte [ebp - 4], 1
jbe 0x4f27ff
mov eax, dword [eax]
push eax
call fcn.004ba510
mov ecx, dword [ebp - 0x44]
add esp, 4
cmp ecx, 7
jbe 0x4f283e
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4f2834
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f287e
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x4f288e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4f2884
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4f2884
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
xor al, al
jmp 0x4f28cb
push edi
push 0x16
lea eax, [ebp - 0x28]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
cmp dword [ebp - 0x28], 0x9ac6cdd7
jne 0x4f28c9
movups xmm0, xmmword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov ax, word [ebp - 0x14]
mov word [esi + 0x14], ax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506d06
mov esp, ebp
pop ebp
ret
Function at 0x507d9d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x507ddc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x507ddc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x507ddc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x507ddc
cmp dword [ecx + 0x74], 0xe
jbe 0x507ddc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Delete file
Move file

Disassembly:
push esi
push 0x4117ec
mov esi, dword [esp + 0xc]
push esi
call fcn.0040d2f0
add esp, 8
test eax, eax
jne 0x401028
mov eax, dword [esp + 0xc]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret
mov eax, dword [esp + 0xc]
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret
Function at 0x401400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x104
mov dword [esp + 0xc], 1
push eax
push 1
push 0
push str.SOFTWAREInsoQuick_View_PlusCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401488
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
mov byte [esp + 0x18], 0
push edx
push 0
push str.InstallPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [esp + 0x10], 0
je 0x401476
mov eax, 1
pop ebx
add esp, 0x110
ret
cmp dword [esp + 4], 0
je 0x401488
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
add esp, 0x110
ret

Function at 0x4014a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREClassesQuickView_shellopencommand
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401513
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 4]
push eax
mov byte [esp + 0x10], 0
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xc], 0
je 0x401513
mov eax, 1
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x4015f0
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov ecx, 0xffffffff
sub eax, eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jae 0x40161f
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x210
ret
lea eax, [esp + 0x118]
push 0
lea ecx, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call fcn.00409610
lea edi, [esp + 0x20]
add esp, 0x14
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp byte [esp + ecx + 0x12], 0x5c
jne 0x4016bc
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + ecx + 0x12], 0
lea eax, [esp + 0x14]
push eax
call fcn.004016e0
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x210
ret
Function at 0x4016e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov ecx, 0xffffffff
sub eax, eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x4017ba
lea eax, [esp + 0x118]
push 0
lea ecx, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call fcn.00409610
lea edi, [esp + 0x20]
add esp, 0x14
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp byte [esp + ecx + 0x12], 0x5c
jne 0x4017a4
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + ecx + 0x12], 0
lea eax, [esp + 0x14]
push eax
call fcn.004016e0
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x210
ret

Function at 0x4017d0
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
mov dword [esp + 0xc], 0
push edi
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401826
mov eax, dword [str.C:PowerDesk]
mov ecx, str.C:PowerDesk
mov dword [0x6c5f40], eax
mov edx, 0x6c5f40
mov eax, dword [ecx + 4]
pop edi
pop esi
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov cl, byte [ecx + 0xc]
mov dword [edx + 8], eax
mov byte [edx + 0xc], cl
add esp, 0xc
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 8]
push eax
mov dword [esp + 0x10], 0x104
push 0x6c5f40
push ecx
push 0
push str.ProgramFilesDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40187b
mov eax, dword [str.C:PowerDesk]
mov ecx, str.C:PowerDesk
mov dword [0x6c5f40], eax
mov edx, 0x6c5f40
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov cl, byte [ecx + 0xc]
mov dword [edx + 8], eax
mov byte [edx + 0xc], cl
jmp 0x4018bb
push 0
mov edi, 0x4118c0
push 0x6c5f40
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x6c5f40
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x4019a0
Capabilities:
Set registry value

Disassembly:
cmp dword [0x41150c], 0
push edi
je 0x4019d3
mov edx, dword [esp + 0xc]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 8]
push ecx
push edx
mov ecx, dword [0x41150c]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
ret

Function at 0x401aa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp dword [0x41150c], 0
jne 0x401ab2
xor eax, eax
add esp, 8
ret
lea eax, [esp]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
mov ecx, dword [0x41150c]
mov dword [esp + 0xc], 0x104
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 1
sbb eax, eax
add esp, 8
neg eax
ret

Function at 0x401c10
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x458
push ebx
push esi
mov esi, dword [esp + 0x464]
push edi
lea eax, [esp + 0x25c]
push ebp
push esi
push 0x41192c
push eax
call fcn.00409770
lea eax, [esp + 0x28]
lea ecx, [esp + 0x26c]
add esp, 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebx, eax
je 0x401d51
mov edi, dword [esp + 0x470]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
push 0
push 0
push 0
push ecx
call fcn.00409610
lea ecx, [esp + 0x24]
add esp, 0x14
push str..lnk
push ecx
call fcn.0040d2f0
add esp, 8
test eax, eax
jne 0x401d36
lea eax, [esp + 0x48]
lea ecx, [esp + 0x15c]
push eax
push esi
push 0x41191c
push ecx
call fcn.00409770
lea ecx, [esp + 0x374]
lea edx, [esp + 0x16c]
add esp, 0x10
push ecx
push edx
call fcn.00401af0
add esp, 8
test eax, eax
je 0x401d36
mov ebp, 0x411538
mov eax, dword [ebp]
lea ecx, [esp + 0x15c]
push eax
push edi
push 0x41191c
push ecx
call fcn.00409770
lea ecx, [esp + 0x374]
lea edx, [esp + 0x16c]
add esp, 0x10
push ecx
push edx
call fcn.0040d2f0
add esp, 8
test eax, eax
je 0x401d0d
add ebp, 4
cmp ebp, 0x41154c
jb 0x401cca
jmp 0x401d36
lea eax, [esp + 0x48]
lea ecx, [esp + 0x260]
push eax
push esi
push 0x41191c
push ecx
call fcn.00409770
lea ecx, [esp + 0x270]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c5c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x458
ret
Function at 0x401f80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1604
call fcn.004097e0
mov dword [esp], 0x12c
mov dword [esp + 4], 0x12c
push ebx
push esi
push edi
xor esi, esi
push ebp
mov edi, 1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x160]
push eax
lea eax, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
push edx
mov ebx, dword [esp + 0x1624]
push esi
mov dword [esp + 0x38], esi
push eax
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, dword [esp + 0x161c]
test eax, eax
jne 0x4020a2
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x160]
push eax
lea eax, [esp + 0x38]
push ecx
push 0
push 0xf003f
push 0
push edx
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402015
xor edi, edi
jmp 0x402063
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push 0x20019
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402035
xor edi, edi
jmp 0x402058
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00401f80
add esp, 8
test eax, eax
jne 0x40204d
xor edi, edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x164]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x40]
push 0
mov dword [esp + 0x20], 0x12c
mov dword [esp + 0x24], 0x12c
push eax
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401fe4
xor esi, esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
lea edx, [esp + 0x38]
push esi
mov dword [esp + 0x18], 0x12c
push eax
push esi
push ecx
push edx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x402140
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28c]
lea edx, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push ecx
mov dword [esp + 0x2c], 0x1388
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402116
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28c]
mov edx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push ecx
push edx
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc esi
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x40]
push 0
mov dword [esp + 0x20], 0x12c
push ecx
push edx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4020ca
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1604
ret
Function at 0x4022e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
push esi
push edi
call fcn.004018d0
push str.Version2.0
push str.SoftwareMijenixPowerDesk
push 0x80000002
call fcn.004019e0
add esp, 0xc
test eax, eax
jne 0x402318
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
mov byte [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push str.InstallDir
call fcn.00401aa0
add esp, 8
test eax, eax
jne 0x402347
call fcn.004018d0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
lea edi, [esp + 0xc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40236d
call fcn.004018d0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
lea edi, [esp + 0xc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp byte [esp + ecx + 0xa], 0x5c
je 0x4023b5
mov edi, 0x411844
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0xc]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, str.PDExplo.exe
sub eax, eax
lea ebx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0xc]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40241d
call fcn.004018d0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
call fcn.004018d0
push 4
push 0x25
call fcn.004013a0
add esp, 4
push eax
push 0x24
call fcn.004013a0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x402453
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
lea edi, [esp + 0xc]
mov ecx, 0xffffffff
mov dword [0x411534], 1
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x6c5f40
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + 0x6c5f3f], 0
call fcn.004018d0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
Function at 0x402f60
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
mov eax, dword [esp + 0x318]
push ebx
mov ebx, dword [esp + 0x320]
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x14]
push ebx
push eax
push str._s_s.lnk
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0x10
push ecx
push 0x40f100
push 1
push esi
push 0x40f010
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4030fb
mov eax, dword [esp + 0x344]
cmp eax, esi
je 0x402fc4
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov edx, dword [esp + 0x32c]
test edx, edx
je 0x402fea
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402fea
mov eax, dword [esp + 0xc]
push edx
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
test ebx, ebx
je 0x403009
mov edi, ebx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403009
mov eax, dword [esp + 0xc]
push ebx
push eax
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov edx, dword [esp + 0x334]
test edx, edx
je 0x40302f
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40302f
mov eax, dword [esp + 0xc]
push edx
push eax
mov ebx, dword [eax]
call dword [ebx + 0x2c]
mov eax, dword [esp + 0x338]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov edx, dword [esp + 0x330]
test edx, edx
je 0x403067
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403067
mov eax, dword [esp + 0xc]
push edx
push eax
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov edx, dword [esp + 0x33c]
test edx, edx
je 0x403095
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403095
mov eax, dword [esp + 0x340]
mov ecx, dword [esp + 0xc]
push eax
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push 0x40f400
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x4030f1
lea eax, [esp + 0x118]
push 0x104
lea ecx, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x118]
push 0
mov eax, dword [esp + 0x14]
push ecx
push eax
mov ebx, dword [eax]
call dword [ebx + 0x18]
test eax, eax
jl 0x4030e7
mov esi, 1
mov eax, dword [esp + 0x10]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [esp + 0xc]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
test esi, esi
je 0x403110
lea eax, [esp + 0x14]
push 0
push eax
push 1
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x314
ret