joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44539e
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00408df0
mov bl, al
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
test bl, bl
je 0x41a9c8
lea ecx, [ebp - 0x218]
call fcn.0040a8b0
mov eax, dword [0x469f34]
test eax, eax
jne 0x41a974
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41a966
mov ecx, eax
call fcn.0040dc50
jmp 0x41a968
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x469f34], eax
cmp word [ebp - 0x218], 0
lea edx, [eax + 0x78]
jne 0x41a985
xor ecx, ecx
jmp 0x41a99f
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a990
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edx
call fcn.00405570
lea eax, [ebp - 0x218]
push eax
push 0x44d178
push eax
call fcn.00411d00
add esp, 0xc
jmp 0x41aa8e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x449fac
lea eax, [ebp - 0x420]
push eax
push str._s_s
push eax
call fcn.00411d00
mov eax, dword [0x469f34]
add esp, 0x10
test eax, eax
jne 0x41aa52
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41aa44
mov ecx, eax
call fcn.0040dc50
jmp 0x41aa46
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x469f34], eax
cmp word [ebp - 0x420], 0
lea edx, [eax + 0x78]
jne 0x41aa63
xor ecx, ecx
jmp 0x41aa7f
lea ecx, [ebp - 0x420]
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aa70
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, edx
call fcn.00405570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41cd20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45dfd0
push 0x441b3c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x467060]
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 dword [ebp - 0x18], esp
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0
mov eax, 0x614
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x26], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x22], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 2
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41cdd8
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.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41da80
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
push str.Common_Desktop
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], eax
call fcn.00403d40
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41db7e
cmp dword [ebp - 0x41c], 8
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x418]
push ecx
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
push 0
push eax
push dword [ebp - 0x434]
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x410], 0
jne 0x41db98
xor ecx, ecx
jmp 0x41dbb0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dba1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.00405570
cmp dword [ebp - 0x41c], 8
jb 0x41dbd7
push dword [ebp - 0x430]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41df30
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4459f6
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x467060]
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
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x414], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e102
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.Common_Desktop
push dword [ebp - 0x434]
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e102
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405670
push 0x44aca8
lea edx, [ebp - 0x42c]
lea ecx, [ebp - 0x464]
mov dword [ebp - 4], 0
call fcn.0040d130
push esi
mov edx, eax
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 1
call fcn.0040d2d0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [ebp - 0x42c]
add esp, 8
cmp eax, edi
je 0x41e08e
cmp dword [ebp - 0x418], 8
jb 0x41e065
push dword [ebp - 0x42c]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
call fcn.004053a0
cmp dword [ebp - 0x438], 8
jb 0x41e0a2
push dword [ebp - 0x44c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x450], 8
mov dword [ebp - 0x438], 7
mov dword [ebp - 0x43c], 0
mov word [ebp - 0x44c], ax
jb 0x41e0d3
push dword [ebp - 0x464]
call esi
add esp, 4
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x418], 8
jb 0x41e102
push dword [ebp - 0x42c]
call esi
add esp, 4
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x41e113
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41e950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445a80
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x467060]
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 edx, 1
lea ecx, [ebp - 0x28]
call fcn.0041f1b0
push 0x44aca8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040d130
add esp, 4
push esi
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040d2d0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, edi
je 0x41e9ef
cmp dword [ebp - 0x14], 8
jb 0x41e9d2
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004053a0
cmp dword [ebp - 0x2c], 8
jb 0x41e9fd
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x41ea1f
push dword [ebp - 0x58]
call esi
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
jb 0x41ea3f
push dword [ebp - 0x28]
call esi
add esp, 4
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.004413e6
mov esp, ebp
pop ebp
ret

Function at 0x41ea60
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4459b8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
push 0x44aca8
lea ecx, [ebp - 0x40]
call fcn.0040d130
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040d2d0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 8
cmp dword [ebp - 0x2c], 8
jb 0x41eac3
push dword [ebp - 0x40]
call esi
add esp, 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jb 0x41ead4
mov ecx, eax
test eax, eax
je 0x41eb0b
jmp 0x41ead7
lea ecx, [ebp - 0x28]
cmp word [ecx], 0
je 0x41eb0b
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41eb08
cmp dword [ebp - 0x14], 8
push 0
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.TaskbarPin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x41eb17
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41eb40
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445b50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
push 0x44aca8
lea ecx, [ebp - 0x40]
call fcn.0040d130
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040d2d0
add esp, 8
cmp dword [ebp - 0x2c], 8
jb 0x41eba1
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x14], 8
push 0
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.TaskbarunPin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
jb 0x41ebf0
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41ec10
Capabilities:
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445911
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x467060]
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 edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ece7
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push str.Common_Programs
push dword [ebp - 0x438]
mov dword [ebp - 0x418], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x41ed02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x438], 0
xor eax, eax
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], 0
mov word [ebp - 0x434], ax
cmp word [ebp - 0x414], ax
jne 0x41ed2c
xor ecx, ecx
jmp 0x41ed44
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ed35
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x434]
call fcn.00405570
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x41ed66
mov esi, dword [esi]
cmp word [esi], 0
jne 0x41ed70
xor ecx, ecx
jmp 0x41ed84
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ed75
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x434]
call fcn.00404020
cmp dword [ebp - 0x420], 8
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push eax
push 0x44acac
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
call fcn.00405570
push ebx
lea edx, [ebp - 0x434]
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 1
call fcn.0040d3f0
add esp, 4
lea ecx, [ebp - 0x458]
push ecx
push dword [ebp - 0x440]
mov edx, eax
push dword [ebp - 0x43c]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0041d500
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
cmp dword [ebp - 0x45c], 8
jb 0x41ee32
push dword [ebp - 0x470]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], 0
mov word [ebp - 0x470], ax
jb 0x41ee63
push dword [ebp - 0x458]
call esi
add esp, 4
cmp dword [ebp - 0x420], 8
jb 0x41ee77
push dword [ebp - 0x434]
call esi
add esp, 4
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.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41eea0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445ac3
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x3fe
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x438], 0
call fcn.004202d0
test eax, eax
je 0x41ef49
mov eax, dword [ebp - 0x438]
and eax, 0xff00
cmp eax, 0x1500
je 0x41ef49
cmp eax, 0x1600
je 0x41ef49
cmp eax, 0x1700
jne 0x41ef4e
call fcn.0041ff50
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41efa2
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.Common_Programs
push dword [ebp - 0x434]
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x41efbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x434], 0
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
cmp word [ebp - 0x410], ax
jne 0x41efe7
xor ecx, ecx
jmp 0x41efff
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eff0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405570
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
lea ecx, [ebp - 0x42c]
jne 0x41f02b
push 5
push str.YAC_
jmp 0x41f057
push 1
push 0x44aca8
call fcn.00404020
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405470
push 1
push 0x44aca8
lea ecx, [ebp - 0x42c]
call fcn.00404020
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x42c]
push eax
call fcn.00405a00
xor cl, cl
call fcn.0041d140
add esp, 0x18
cmp dword [ebp - 0x418], 8
jb 0x41f0a5
push dword [ebp - 0x42c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
jb 0x41f0d4
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41f1b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445bad
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x334], 0
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x44acac
mov dword [ebp - 0x350], esi
mov word [esi], ax
call fcn.00405570
xor eax, eax
mov dword [ebp - 4], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x334], 1
call sub.MSVCR110.dll_memset
add esp, 0xc
sub edi, 0
je 0x41f37b
dec edi
je 0x41f292
sub edi, 3
jne 0x41f3c3
push edi
push 2
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], di
je 0x41f398
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f282
jmp 0x41f3b0
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push pe_nt_image_headers32
lea eax, [ebp - 0x32c]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x330], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x368]
call fcn.00405670
push str.MicrosoftInternet_ExplorerQuick_Launch
mov edx, eax
lea ecx, [ebp - 0x34c]
mov dword [ebp - 4], 1
call fcn.00404870
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
add esp, 4
cmp esi, ebx
je 0x41f334
cmp dword [esi + 0x14], 8
jb 0x41f319
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.004053a0
cmp dword [ebp - 0x338], 8
jb 0x41f348
push dword [ebp - 0x34c]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x354], 8
mov dword [ebp - 0x338], 7
mov dword [ebp - 0x33c], 0
mov word [ebp - 0x34c], ax
jb 0x41f3c3
push dword [ebp - 0x368]
call edi
add esp, 4
jmp 0x41f3c3
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x41f39c
xor ecx, ecx
jmp 0x41f3b4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f3a5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00405570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x41fb20
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44568b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x414], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fbe1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.Common_Programs
push dword [ebp - 0x434]
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x41fbfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x434], 0
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
cmp word [ebp - 0x410], ax
jne 0x41fc26
xor ecx, ecx
jmp 0x41fc3f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fc30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405570
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x41fc61
mov esi, dword [esi]
cmp word [esi], 0
jne 0x41fc6b
xor ecx, ecx
jmp 0x41fc7f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fc70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x42c]
call fcn.00404020
cmp dword [ebp - 0x418], 8
mov eax, dword [ebp - 0x42c]
jb 0x41fca7
mov ecx, eax
test eax, eax
je 0x41fd2f
jmp 0x41fcad
lea ecx, [ebp - 0x42c]
cmp word [ecx], 0
je 0x41fd2f
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fd29
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x43c], 0
call fcn.004202d0
mov eax, dword [ebp - 0x438]
and eax, 0xff00
cmp eax, 0x1600
jb 0x41fd29
push 0
test bl, bl
mov eax, str.startunpin
mov ecx, str.startpin
cmove ecx, eax
cmp dword [ebp - 0x418], 8
push 0
push 0
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x418], 8
jb 0x41fd42
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret