joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42692e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a7050]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
push edi
jl 0x426955
mov dword [ebp - 8], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x426967
mov ecx, dword [0x4421a0]
push eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
call fcn.00401974
cmp dword [ebp + 0x10], ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x426972
dec esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.00408d6d
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
lea ecx, [ebp + 0x10]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push eax
push esi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4269b1
lea ecx, [ebp - 4]
call fcn.0040d8da
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
call fcn.004017ee
mov esi, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push str.DisplayName
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.UninstallString
push dword [ebp - 4]
call esi
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push ebx
push str.EstimatedSize
push dword [ebp - 4]
mov dword [ebp + 0x10], 0xc8
call esi
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.DisplayIcon
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push eax
call fcn.00432221
mov eax, dword [ebp - 0xc]
pop ecx
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.URLInfoAbout
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push str._History
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401a81
mov eax, dword [eax]
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.URLUpdateInfo
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x14]
call fcn.004017ee
push 0x446080
lea ecx, [ebp - 4]
push dword [0x4a7050]
call fcn.0041dff2
lea eax, [ebp - 0x10]
push eax
call fcn.00432221
mov dword [esp], str.Publisher
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.0041dff2
lea ecx, [ebp - 4]
call fcn.0040d8da
lea ecx, [ebp - 0x10]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 8]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.0040d8da
lea ecx, [ebp + 8]
call fcn.004017ee
lea ecx, [ebp + 0xc]
call fcn.004017ee
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427524
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea ecx, [ebp - 0x14]
call fcn.00407038
push str._selfdestruct.bat
push 0x4a7050
lea ecx, [ebp - 8]
call fcn.004017a8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a81
lea ecx, [ebp - 8]
call fcn.004017ee
mov edx, dword [0x47ec20]
mov esi, 0x81
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x428]
mov dword [ebp - 0x42c], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x220]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x634], edx
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x630]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x224]
mov esi, 0x104
push eax
push esi
call edi
lea eax, [ebp - 0x634]
push eax
push esi
call edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x42c]
pop ecx
xor ebx, ebx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x42c]
mov ecx, esp
push eax
call fcn.00407038
lea eax, [ebp - 0xc]
push eax
call fcn.004118c2
pop ecx
lea eax, [ebp - 0x224]
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4276cf
push dword [ebp - 0x10]
mov eax, dword [0x4421a0]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
call fcn.00408deb
add esp, 0x14
lea ecx, [ebp - 4]
push 0x4438d0
push 0x4438c8
call fcn.00401c27
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x427661
xor esi, esi
jmp 0x427690
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0043daa0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push ebx
push ecx
push dword [eax - 8]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x634]
push ebx
push eax
lea eax, [ebp - 0x224]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 0x10]
call fcn.004017ee
lea ecx, [ebp - 0x14]
call fcn.004017ee
lea esp, [ebp - 0x640]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427b1b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push esi
push 0xf0
push 0x3f9
push dword [0x4a7a7c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0xc], esi
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x427b4f
dec edi
push 0x4a7050
lea eax, [ebp + 0xc]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
mov dword [ebp - 8], esi
call fcn.00408d6d
mov eax, dword [eax]
push 0x20019
push eax
push edi
lea ecx, [ebp - 8]
call fcn.0041d034
lea ecx, [ebp + 0xc]
call fcn.004017ee
mov ecx, dword [0x4421a0]
mov eax, 0x400
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.00401b61
lea ecx, [ebp - 0xc]
mov dword [ebp + 0xc], esi
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push str.UninstallString
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00401bc9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004017a8
lea ecx, [ebp - 4]
call fcn.004017ee
cmp dword [ebp - 8], esi
pop edi
pop esi
je 0x427be1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
leave
ret

Function at 0x427cbd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427cea
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x427ce6
call esi
cmp eax, 3
je 0x427ce6
or esi, 0xffffffff
jmp 0x427cf5
xor esi, esi
jmp 0x427cf5
test al, 0x10
je 0x427cf2
push 2
jmp 0x427cf4
push 1
pop esi
lea ecx, [esp + 8]
call fcn.004017ee
mov eax, esi
pop esi
ret
Function at 0x42a9eb
Capabilities:
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str._move
lea ecx, [ebp - 0xc]
call fcn.0040181a
mov eax, dword [eax]
push ebx
push eax
mov ecx, 0x47ec28
call fcn.00408db9
test eax, eax
lea ecx, [ebp - 0xc]
setg byte [ebp - 1]
call fcn.004017ee
cmp byte [ebp - 1], bl
push edi
je 0x42aa6b
push str.move_job_folder:
lea ecx, [ebp - 0x10]
call fcn.0040181a
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a81
push 1
push dword [eax]
call fcn.0042ab8a
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 0x10]
jmp 0x42aa98
push str.copy_job_folder:
lea ecx, [ebp - 0xc]
call fcn.0040181a
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a81
push 1
push dword [eax]
call fcn.0042ab8a
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0x42a9a8
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], ebx
je 0x42aabf
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 0x4aad70
neg eax
sbb eax, eax
and eax, 0x4aad74
cmp dword [eax], ebx
jne 0x42aadd
push ebx
push ebx
mov ecx, 0x4aad70
call fcn.0042b77b
mov ecx, 0x4aad90
call fcn.0043375b
push ebx
push ebx
push dword [0x4aadfc]
push dword [0x4aad74]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ab8a
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebx
push ebp
xor ebx, ebx
push esi
test byte [0x4aad5c], 1
push edi
jne 0x42abb0
or byte [0x4aad5c], 1
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x4aad58], eax
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42ac03
push dword [0x4aad58]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
cmp ebp, ebx
je 0x42abfd
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push ebp
mov edi, eax
call esi
push edi
push 0x2002
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call esi
push edi
push ebp
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42ac7a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [sym.imp.USER32.dll_SetClipboardData]
test ebx, ebx
je 0x42ac2f
push ebx
push dword [0x4aad58]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 6]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x42ac69
push edi
call esi
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
je 0x42ac7a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42ac7f
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42acca
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
je 0x42acc3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x42acc3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004018df
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x42afb6
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42b013
test byte [0x4ab68c], 1
jne 0x42afe7
or byte [0x4ab68c], 1
push str.Shell_IDList_Array
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x4ab690], eax
push dword [0x4ab690]
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esi + 0xc], eax
je 0x42b00d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esi + 0x10], eax
je 0x42b00d
push 1
pop eax
jmp 0x42b015
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
ret 4
Function at 0x42b071
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
push ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [eax - 8]
lea eax, [esi + 2]
push eax
call fcn.00401b61
xor ecx, ecx
mov ebx, eax
cmp esi, ecx
jle 0x42b0a6
mov edx, esi
cmp word [eax], 0xa
jne 0x42b0a1
mov word [eax], cx
inc eax
inc eax
dec edx
jne 0x42b098
mov word [ebx + esi*2], cx
mov word [ebx + esi*2 + 2], cx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov esi, dword [eax - 8]
lea eax, [esi + 2]
push eax
call fcn.00401b61
mov edi, eax
xor eax, eax
push 0x1e
push eax
mov word [edi + esi*2], ax
mov word [edi + esi*2 + 2], ax
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov eax, dword [eax + 4]
mov word [ebp - 0x14], 0x40
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.004017ee
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42b70c
Capabilities:
Create thread

Disassembly:
lea eax, [ecx + 0x48]
xor edx, edx
cmp dword [eax], edx
jne 0x42b725
push eax
push edx
push ecx
push 0x42b726
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x42cec1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, ecx
push 0x20
lea eax, [ebx + 0xc]
pop ecx
mov edx, dword [0x4421a0]
mov dword [eax], edx
and dword [eax + 4], 0
add eax, 0x20
dec ecx
jne 0x42ceca
mov dword [ebx], 0x43edd0
cmp dword [0x4aae20], 0
jne 0x42cf5d
push esi
push edi
push str.powrprof.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.EnumPwrSchemes
push edi
call esi
push str.PowerEnumerate
push edi
mov dword [0x4aae20], eax
call esi
push str.PowerReadFriendlyName
push edi
mov dword [0x4aae24], eax
call esi
push str.PowerGetActiveScheme
push edi
mov dword [0x4aae28], eax
call esi
push str.GetActivePwrScheme
push edi
mov dword [0x4aae2c], eax
call esi
push str.SetActivePwrScheme
push edi
mov dword [0x4aae30], eax
call esi
push str.PowerSetActiveScheme
push edi
mov dword [0x4aae34], eax
call esi
pop edi
mov dword [0x4aae38], eax
pop esi
mov ecx, ebx
call fcn.0042cf68
mov eax, ebx
pop ebx
ret

Function at 0x42d8e5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
call fcn.0042d7e0
push 0x44
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
mov dword [ebp - 8], 0x7051
jb 0x42d934
mov dword [ebp - 8], 0x7071
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0042d4a4
pop ecx
pop ecx
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp dword [ebp - 4], ebx
je 0x42d98d
cmp dword [ebp - 0xc], 1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, 0x111
jne 0x42d979
cmp dword [ebp + 8], ebx
je 0x42d98d
push ebx
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
jne 0x42d98d
cmp dword [ebp + 8], ebx
jne 0x42d98d
push ebx
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e987
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4421a0]
and dword [ebp - 0x2b8], 0
push edi
mov dword [ebp - 4], eax
mov ecx, 0xac
xor eax, eax
lea edi, [ebp - 0x2b4]
push 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2b8]
push 0x2b4
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop edi
je 0x42e9f7
lea eax, [ebp - 0x2ac]
test eax, eax
je 0x42e9e7
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.004018df
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004017a8
lea ecx, [ebp - 4]
call fcn.004017ee
mov eax, dword [ebp + 8]
leave
ret

Function at 0x43042e
Capabilities:
Enumerate gui resources

Disassembly:
and dword [ecx + 0xc], 0
and dword [ecx + 4], 0
push esi
lea esi, [ecx + 4]
push 0x47eaf4
add ecx, 0x1148
call fcn.0040199b
push esi
push 0x430299
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
ret
Function at 0x430458
Capabilities:
Get graphical window text
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4305d2
lea ecx, [edi + 0x1148]
push 0x47eaf4
mov dword [edi + 0xc], 1
mov dword [ebp - 0xc], ecx
call fcn.0040199b
mov eax, dword [edi + 4]
dec eax
js 0x4305c7
mov ecx, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
imul ecx, ecx, 0x2c
lea esi, [edi + eax*4 + 0x114c]
inc eax
lea edi, [ecx + edi + 0x30]
mov dword [ebp - 0x14], eax
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4305b8
mov eax, dword [0x4421a0]
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
mov eax, pe_nt_image_headers32
push eax
push eax
call fcn.00401b61
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00401bc9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push eax
push dword [eax - 8]
call fcn.00401acd
push 0x44411c
lea ecx, [ebp - 0x10]
call fcn.0040181a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push eax
push dword [eax - 8]
call fcn.00401acd
lea ecx, [ebp - 0x10]
call fcn.004017ee
lea eax, [ebp - 0x2c]
push edi
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push str._restore_
push eax
call fcn.00408d6d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
call fcn.004017ee
mov eax, dword [edi - 0x14]
mov ecx, dword [0x4421a0]
mov dword [ebp - 0x1c], eax
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.rc:_d__d___d__d__sw:_d_n
push eax
call fcn.00408deb
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi - 0x14]
sub esp, 0x10
mov ecx, esp
push edi
call fcn.00430663
push dword [esi]
call fcn.004305d7
add esp, 0x18
push 6
push dword [esi]
call ebx
push dword [ebp - 0x1c]
push dword [esi]
call ebx
lea ecx, [ebp - 8]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.004017ee
sub esi, 4
sub edi, 0x2c
dec dword [ebp - 0x14]
jne 0x4304ab
push str._restore2__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4307aa
Capabilities:
Switch active desktop

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 4], edi
je 0x43088a
mov eax, dword [ebx + 0x40]
lea esi, [ebx + 0x40]
push 0x1bf
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_OpenDesktopW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x430824
mov eax, dword [esi]
push 1
pop ecx
lea edx, [ebp - 0x10]
push edx
push 0x10000000
push ecx
push edi
push edi
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_CreateDesktopW]
push edi
mov ecx, esi
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], eax
call fcn.00401b61
push eax
push str.userinit.exe
mov ecx, ebx
call fcn.0043176f
cmp dword [ebp - 4], edi
je 0x43088a
mov eax, dword [0x47ec20]
mov ecx, 0x81
mov dword [ebp - 0x21c], eax
xor eax, eax
lea edi, [ebp - 0x218]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov ecx, esi
call fcn.00401b61
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.0043176f
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SwitchDesktop]
test eax, eax
jne 0x430898
push edi
push str.Error
push dword [esi]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x430898
push edi
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043089f
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43089f
Capabilities:
Change the wallpaper
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, str.c:_bild_WQREWTETLE.jpg
xor ebx, ebx
push ebp
lea esi, [edi + 0x44]
mov dword [edi + 0x464], eax
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4308ec
test al, 0x10
jne 0x4308ec
push 3
mov ebx, pe_nt_image_headers32
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push ebx
push 0x73
call esi
push 3
push ebp
push ebx
push 0x14
call esi
xor ebx, ebx
mov eax, dword [edi + 0x458]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x430900
push ebx
push eax
call esi
mov ecx, edi
call fcn.004311a0
cmp dword [edi + 0x458], ebx
jne 0x430917
push ebx
mov ecx, edi
call fcn.00430c0e
push 5
push dword [edi + 0x458]
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
call esi
push 0x4d
mov ebp, eax
call esi
add ebp, eax
push ebp
push 0x4e
call esi
push 0x4c
mov ebp, eax
call esi
add ebp, eax
push ebp
push 0x4d
call esi
push eax
push 0x4c
call esi
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
push 0x12
push ecx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
push ecx
push eax
push dword [esp + 0x20]
push ebx
push dword [edi + 0x458]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 0x458]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc