joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410900
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5ad6f0]
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, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x90]
push 0x80
push 0
push eax
mov dword [ebp - 0x94], edi
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x90]
push dword [esi]
push 0x3f
push eax
push str.2000_1_1_00:00:00
push str.lstime
push str.auto_run
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x4109c9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
mov ecx, edi
test eax, 0xffff0000
jne 0x4109a4
movzx eax, ax
push eax
call fcn.004069f0
jmp 0x4109aa
push eax
call fcn.00406ce0
mov eax, edi
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.004d684f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406210
int3

Function at 0x4109e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5ad6f0]
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, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x90]
push 0x80
push 0
push eax
mov dword [ebp - 0x94], edi
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x90]
push dword [esi]
push 0x3f
push eax
push str.2000_1_1_00:00:00
push str.lsctime
push str.auto_run
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x410aa9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
mov ecx, edi
test eax, 0xffff0000
jne 0x410a84
movzx eax, ax
push eax
call fcn.004069f0
jmp 0x410a8a
push eax
call fcn.00406ce0
mov eax, edi
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.004d684f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406210
int3
Function at 0x412460
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x59be78
push 0x5140b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5ad6f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [ecx], edi
lea eax, [ebp - 0x28]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4124da
cmp dword [ebp - 0x28], edi
je 0x4124da
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412512
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x4125f4
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4125f4
cmp dword [ebp - 0x28], 0
je 0x4125f4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x4125f4
cmp dword [ebp - 0x2c], eax
jbe 0x4125f4
call esi
cmp eax, 0x7a
jne 0x4125f4
push dword [ebp - 0x2c]
call fcn.0051d6fc
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4125f4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push edi
push 2
push dword [ebp - 0x28]
call ebx
test eax, eax
je 0x4125f4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x4125f4
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4125f4
cmp dword [ebp - 0x30], 0
je 0x4125f4
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x4125f4
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4125dd
inc esi
jmp 0x4125c0
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00412621
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret 8
Function at 0x413540
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00513d10
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4135a0
cmp dword [ebp - 0x114], 6
jb 0x4135a0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret

Function at 0x413c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x59be38
push 0x5140b0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5ad6f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.00513d10
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413d49
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00513d10
add esp, 0xc
mov dword [ebp - 0x434], 0x210
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413d49
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x413d49
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.00413d7b
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4141a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554086
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41424c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41424c
call fcn.004127a0
mov edi, eax
jmp 0x41436b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41426f
call fcn.004127a0
jmp 0x41435e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41428d
call fcn.004127a0
jmp 0x41435e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4142ae
mov edi, 0x8007000e
jmp 0x414360
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4143a4
jb 0x4142cc
cmp eax, 0xffffffff
ja 0x4143a4
cmp eax, 0x400
jbe 0x4142e1
push eax
lea ecx, [ebp - 0x418]
call fcn.00412430
jmp 0x414307
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x414307
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41431e
mov edi, 0x8007000e
jmp 0x414360
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41433e
call fcn.004127a0
jmp 0x41435e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00414000
mov edi, eax
test esi, esi
je 0x41436b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x414384
lea ecx, [ebp - 0x418]
call fcn.00412bb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00406210
int3
Function at 0x4155c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x415631
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x415631
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x415631
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x415631
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41562b
push esi
push ebx
push edi
call fcn.00513210
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41562b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4178b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.004d68c0
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x565de0
push dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call esi
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0xa0c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0xa0c]
push 0x565dfc
push eax
lea eax, [ebp - 0x120c]
push eax
call esi
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x120c]
push eax
push str.__fromdesktop
lea eax, [ebp - 0x20c]
push eax
push 0x565e30
call fcn.00418aa0
mov ecx, dword [ebp - 4]
add esp, 0x1c
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.004d684f
mov esp, ebp
pop ebp
ret
Function at 0x417990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5543d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ad6f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0043e650
add esp, 4
push str.Utilsmirror.ico
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00417700
lea eax, [ebp - 0x10]
push eax
call fcn.0043e650
add esp, 4
mov byte [ebp - 4], 1
call fcn.0040e2b0
lea ecx, [ebp - 0x10]
test al, al
je 0x4179fb
push 0x566990
jmp 0x417a00
push str.HaloDesktop.exe
call fcn.00417700
push str.___fromrmenu___mirrorPath__1_
lea ecx, [ebp - 0x10]
call fcn.00417700
push 0
push 0
push 0x2001f
push 0
push 0
push str.Directory_shellHalo
push SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004177e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417a94
mov esi, dword [ebp - 0x20]
push 0x14
push 0x566a20
push 1
push 0
push 0
push esi
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417a94
mov edx, eax
lea ebx, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x417a70
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.Icon
push esi
call edi
push 0
push 0
push 0x2001f
push 0
push 0
push str.Directory_shellHalocommand
push SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.004177e0
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x417ae7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417ae7
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x417ac6
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test esi, esi
je 0x417af9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417b1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x417b39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4186b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x565de0
push dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x565e30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41874e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x565dfc
push eax
lea eax, [ebp - 0xc14]
push eax
call esi
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc14]
push eax
push str.__fromstartmenu
lea eax, [ebp - 0x414]
push eax
push 0x565e30
call fcn.00418aa0
mov ecx, dword [ebp - 4]
add esp, 0x1c
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.004d684f
mov esp, ebp
pop ebp
ret

Function at 0x4187c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe1c
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push 0x208
push 0
push eax
call fcn.00513d10
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x61c]
add esp, 0xc
push 0x565de0
push dword [edi]
push eax
call esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x565e30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41885f
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0xe1c]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x565e60
push eax
lea eax, [ebp - 0xe1c]
push eax
call esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x414]
push str.uninst.exe
push dword [edi]
push eax
call esi
push 1
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xe1c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push 0x565e90
call fcn.00418aa0
mov ecx, dword [ebp - 4]
add esp, 0x1c
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
neg eax
pop esi
call fcn.004d684f
mov esp, ebp
pop ebp
ret
Function at 0x418e00
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004d68c0
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x566a70
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret

Function at 0x418e90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004d68c0
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x566a8c
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret

Function at 0x418fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004d68c0
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x565dfc
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1004]
push eax
call fcn.00419b70
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.00513d10
add esp, 0x10
lea eax, [ebp - 0x1804]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x1804]
push 0x565dfc
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x2004]
push eax
call fcn.00419b70
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret
Function at 0x419570
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x41959c
call fcn.00418100
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret
call fcn.00418940
test eax, eax
je 0x4196f2
call fcn.00418f20
test al, al
je 0x41968b
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.DirectoryBackground_shellexContextMenuHandlers6251BDF8_B6EA_4D7F_B250_D67862EED691
push SysReAllocString
call esi
push str.CLSID6251BDF8_B6EA_4D7F_B250_D67862EED691
push SysReAllocString
call esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00513d10
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea esi, [ebp - 0x414]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41964f
movzx eax, word [esi + ecx]
test ax, ax
je 0x41964f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x419631
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5666ac
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_DeleteFileW]
pop esi
jmp 0x4196e4
push 0x2021f
push str.DesktopBackground_shell
push SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call fcn.004137c0
push 0x5666c0
lea ecx, [ebp - 0x420]
call fcn.00413ea0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4196e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call fcn.0040f470
mov ecx, eax
call fcn.00410f70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret
Function at 0x419700
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x41972c
call fcn.00417b50
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret
call fcn.00418940
test eax, eax
je 0x419882
call fcn.00418f20
test al, al
je 0x41981b
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.DirectoryBackground_shellexContextMenuHandlers083B4516_7502_4311_8453_B5D8E05A156E
push SysReAllocString
call esi
push str.CLSID083B4516_7502_4311_8453_B5D8E05A156E
push SysReAllocString
call esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00513d10
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea esi, [ebp - 0x414]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4197df
movzx eax, word [esi + ecx]
test ax, ax
je 0x4197df
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4197c1
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x565dfc
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_DeleteFileW]
pop esi
jmp 0x419874
push 0x2021f
push str.DesktopBackground_shell
push SysReAllocString
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call fcn.004137c0
push 0x5661dc
lea ecx, [ebp - 0x420]
call fcn.00413ea0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x419874
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call fcn.0040f470
mov ecx, eax
call fcn.00410ec0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret