joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411935
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x454694
call fcn.004324bc
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0xf003f
push esi
push esi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040b60c
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0044866b
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00448287
push esi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00447ffc
lea eax, [ebp + 8]
push eax
call fcn.0040be4f
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0044866b
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.00448287
test bl, bl
je 0x4119dc
push 1
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x411bca
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411c26
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 1
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop ebx
lea eax, [ebp - 0x14]
push esi
push esi
push esi
push eax
push esi
mov dword [ebp - 0x14], ebx
push dword [ebp - 4]
mov dword [ebp - 8], 2
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411c2a
xor eax, eax
jmp 0x411c4d
push ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov ebx, eax
cmp ebx, esi
jne 0x411c4b
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411c52
Capabilities:
Shutdown system

Disassembly:
push esi
mov ecx, 0x474988
call fcn.00421cc6
cmp eax, 2
jne 0x411c69
call fcn.00411bca
pop esi
ret
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push 2
call esi
test eax, eax
jne 0x411c84
cmp dword [esp + 8], eax
je 0x411c84
push eax
push 6
call esi
pop esi
ret
Function at 0x412300
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45483e
call fcn.004324bc
sub esp, 0x120
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [0x470b50]
and dword [ebp - 4], 0
lea edi, [esi + 4]
mov dword [edi], eax
push 1
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call fcn.0043f827
lea eax, [ebp - 0x12c]
push 0x104
push eax
mov byte [ebp - 4], 2
mov dword [esi], vtable.WSetupLog.0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x10]
push eax
call fcn.004482f5
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Corel
mov byte [ebp - 4], 3
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 4
call fcn.00447ffc
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.0040bffd
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Setup.log
mov byte [ebp - 4], 5
call fcn.004482f5
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 6
call fcn.00447ffc
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
call fcn.0040bffd
add esp, 0x10
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00448374
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00448287
and dword [esi + 0x60], 0
and dword [esi + 0x64], 0
and dword [esi + 0x68], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00448287
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x412677
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4549be
call fcn.004324bc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call fcn.00445734
mov dword [esi + 0x2c], edi
mov eax, dword [0x470b50]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 2
mov eax, dword [0x470b50]
mov dword [esi + 0x48], eax
mov eax, dword [0x470b50]
mov dword [esi + 0x50], eax
mov ebx, 0x4747d0
lea ecx, [esi + 0x54]
push ebx
mov byte [ebp - 4], 4
call fcn.004482f5
mov eax, dword [0x470b50]
mov dword [esi + 0x60], eax
mov eax, dword [0x470b50]
mov dword [esi + 0x70], eax
mov eax, dword [0x470b50]
mov dword [esi + 0x74], eax
mov eax, dword [0x470b50]
mov dword [esi + 0x78], eax
mov eax, dword [0x470b50]
mov dword [esi + 0x7c], eax
push ebx
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xa
call fcn.004482f5
push ebx
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 0xb
call fcn.004482f5
mov eax, dword [0x470b50]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov eax, dword [0x470b50]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], edi
mov eax, dword [0x470b50]
mov dword [esi + 0xa4], eax
mov eax, dword [0x470b50]
mov dword [esi + 0xac], eax
mov eax, dword [0x470b50]
mov dword [esi + 0xb0], eax
push fcn.004030fd
push 0x4141ef
push 0x11
lea eax, [esi + 0xcc]
push 0x14
push eax
mov byte [ebp - 4], 0x11
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
call fcn.004336ce
lea eax, [esi + 0x220]
mov ecx, vtable.CArray_class_WSetupComponent___class_WSetupComponent__.0
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
lea eax, [esi + 0x234]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
lea ebx, [esi + 0x248]
mov dword [ebx], ecx
mov dword [ebx + 4], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
push 0xffffffffffffffff
push edi
lea ecx, [esi + 4]
mov byte [ebp - 4], 0x15
mov dword [esi], vtable.WSetupComponent.0
call fcn.004457c7
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.0041d9c5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414594
Capabilities:
Delete file

Disassembly:
mov eax, 0x455084
call fcn.004324bc
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
cmp dword [edi + 0xc], eax
mov dword [ebp - 0x14], eax
jle 0x4146b9
mov ecx, dword [edi + 8]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x4146ad
mov edx, dword [esi + 0xc]
xor ebx, ebx
test edx, edx
jle 0x4145e6
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
test eax, eax
je 0x4145de
cmp dword [eax + 0x10], 0
jne 0x4146aa
inc ebx
add ecx, 4
cmp ebx, edx
jl 0x4145ce
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004032f3
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..csw
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ebx, esp
mov dword [ebp - 0x20], esp
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00447ffc
push ebx
call fcn.0040b60c
and byte [ebp - 4], 0
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0040bffd
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448374
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00448287
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea eax, [ebp - 0x10]
mov ebx, esp
mov dword [ebp - 0x20], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00447ffc
push ebx
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040c18a
mov eax, dword [esi]
pop ecx
push 1
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [edi + 4]
push dword [ebp - 0x14]
call fcn.00414229
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00448287
jmp 0x4146ad
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0xc]
jl 0x4145b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41aa8c
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x456448
call fcn.004324bc
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x10]
mov edi, 0x474930
push eax
mov ecx, edi
call fcn.0041db02
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x68]
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00448287
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x46f23c
call fcn.004482f5
push 1
pop ebx
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.00447ffc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0040f794
add esp, 0xc
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 2
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00448287
push dword [ebp + 0xc]
lea ecx, [esi + 0x20]
call fcn.00448374
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
call fcn.00448374
push dword [ebp + 0x14]
lea ecx, [esi + 0x2c]
call fcn.00448374
lea eax, [ebp + 8]
push 0
push eax
mov ecx, edi
call fcn.00414d62
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00448287
push dword [ebp + 0x18]
lea ecx, [esi + 0x34]
call fcn.00448374
push dword [ebp + 0x1c]
lea ecx, [esi + 0x38]
call fcn.00448374
push dword [ebp + 0x20]
lea ecx, [esi + 0x3c]
call fcn.00448374
push dword [ebp + 0x24]
lea ecx, [esi + 0x40]
call fcn.00448374
push dword [ebp + 0x28]
lea ecx, [esi + 0x44]
call fcn.00448374
push dword [ebp + 0x2c]
lea ecx, [esi + 0x48]
call fcn.00448374
push dword [ebp + 0x30]
lea ecx, [esi + 0x4c]
call fcn.00448374
push dword [ebp + 0x34]
lea ecx, [esi + 0x50]
call fcn.00448374
push dword [ebp + 0x38]
lea ecx, [esi + 0x54]
call fcn.00448374
push dword [ebp + 0x3c]
lea ecx, [esi + 0x5c]
call fcn.00448374
lea eax, [ebp + 0xc]
push 0
push eax
mov ecx, edi
call fcn.0041db1a
push eax
lea ecx, [esi + 0x58]
mov dword [ebp - 4], 4
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00448287
push dword [ebp + 0x40]
lea ecx, [esi + 0x60]
call fcn.00448374
push dword [ebp + 0x44]
lea ecx, [esi + 0x64]
call fcn.00448374
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], ebx
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x44
Function at 0x41db69
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x456f6e
call fcn.004324bc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
or dword [esi + 0x18], 0xffffffff
mov edi, 0x4747d0
xor ebx, ebx
push edi
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.004482f5
push 0x46fc84
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.004482f5
push edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004482f5
push 0x46f9dc
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.004482f5
push edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call fcn.004482f5
push str.1111
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.004482f5
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call fcn.004482f5
or dword [esi + 0x50], 0xffffffff
mov ecx, dword [ebp - 0xc]
fldz
mov dword [esi + 0x40], 1
mov dword [esi + 0x44], ebx
fstp qword [esi + 0x38]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov eax, dword [0x470b50]
pop edi
mov dword [esi + 0x54], eax
mov dword [esi], vtable.WSetupElement.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e3e1
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x45726c
call fcn.004324bc
sub esp, 0x2c0
mov al, byte [0x4747d0]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x1c8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x41e476
cmp dword [ebp - 0xb4], 1
jne 0x41e447
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 2
jmp 0x41e45b
cmp dword [ebp - 0xb4], 2
jne 0x41e476
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 0x17
push ebx
call eax
test eax, eax
jne 0x41e476
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.004483c4
jmp 0x41e5d5
lea edi, [esi + 0x4c]
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41e5d5
cmp dword [ebp - 0xb4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
jne 0x41e49f
push 2
jmp 0x41e4a1
push 0x17
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x41e4d8
lea eax, [ebp - 0x1c8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41e5c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.004483c4
jmp 0x41e5c2
push 0x4747d0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x24], ebx
call fcn.004482f5
cmp dword [ebp - 0xb4], 1
mov dword [ebp - 4], ebx
jne 0x41e50a
mov edi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x41e514
mov edi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x14]
call fcn.004483c4
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e567
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Programs
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e5b3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2cc]
push eax
call fcn.004483c4
jmp 0x41e5b3
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Programs
call fcn.004482f5
push ecx
add esi, 0x20
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
mov byte [ebp - 4], 1
call fcn.00447ffc
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], bl
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41ed12
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov al, byte [0x4747d0]
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
xor edi, edi
cmp eax, edi
je 0x41ed69
lea ecx, [ebp - 0x114]
push ecx
push edi
push edi
push 0x14
push edi
call eax
test eax, eax
jne 0x41ed69
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004483c4
jmp 0x41ee2c
add esi, 0x4c
push esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41ee2c
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x14
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41edb4
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41ee19
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004483c4
jmp 0x41ee19
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0xf003f
push edi
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000003
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ee19
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Fonts
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41ee10
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.004483c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [esi]
push esi
mov eax, dword [esi]
call dword [eax + 8]
pop edi
pop esi
leave
ret 4
Function at 0x41f218
Capabilities:
Get common file path

Disassembly:
mov eax, 0x457428
call fcn.004324bc
sub esp, 0x1a8
push ebx
push esi
lea eax, [ebp - 0xb0]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov al, byte [0x4747d0]
push 0x40
mov byte [ebp - 0x1b4], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x41f30d
push 1
pop edi
cmp dword [ebp - 0xa0], edi
jne 0x41f2ac
cmp dword [ebp - 0xa8], ebx
jbe 0x41f2ac
lea ecx, [ebp - 0x1b4]
push ecx
push ebx
push ebx
push 0x8027
push ebx
call eax
test eax, eax
jne 0x41f365
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1b4]
push eax
call fcn.004483c4
jmp 0x41f365
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.My_Pictures
call fcn.004482f5
push ecx
add esi, 0xc
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
mov dword [ebp - 4], ebx
call fcn.00447ffc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], edi
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.00447ffc
call fcn.0040b31f
pop ecx
jmp 0x41f365
add esi, 0x4c
push esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41f365
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x27
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41f352
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41f352
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1b4]
push eax
call fcn.004483c4
mov eax, dword [esi]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [esi]
push esi
mov eax, dword [esi]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41f584
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov al, byte [0x4747d0]
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
xor edi, edi
cmp eax, edi
je 0x41f5db
lea ecx, [ebp - 0x114]
push ecx
push edi
push edi
push 9
push edi
call eax
test eax, eax
jne 0x41f5db
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004483c4
jmp 0x41f69a
add esi, 0x4c
push esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41f69a
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 9
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41f622
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004483c4
jmp 0x41f687
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0xf003f
push edi
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000003
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f687
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.SendTo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f67e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.004483c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [esi]
push esi
mov eax, dword [esi]
call dword [eax + 8]
pop edi
pop esi
leave
ret 4
Function at 0x41f6a0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov al, byte [0x4747d0]
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
xor edi, edi
cmp eax, edi
je 0x41f6f7
lea ecx, [ebp - 0x114]
push ecx
push edi
push edi
push 0x15
push edi
call eax
test eax, eax
jne 0x41f6f7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004483c4
jmp 0x41f7b6
add esi, 0x4c
push esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41f7b6
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x15
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41f73e
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004483c4
jmp 0x41f7a3
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0xf003f
push edi
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000003
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f7a3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Templates
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f79a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.004483c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [esi]
push esi
mov eax, dword [esi]
call dword [eax + 8]
pop edi
pop esi
leave
ret 4