joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006aa00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 3
push esi
push edi
call ebx
test eax, eax
jne 0x1006aa3a
push esi
call sym.iImportLib.dll_int___cdecl_elex::filepath::CreateDirectoryW_wchar_t_const__
add esp, 4
push 3
push esi
push edi
call ebx
test eax, eax
jne 0x1006aa3a
push 5
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x1006aa50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009dcc8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x20]
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
push 1
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006aaba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1006aabc
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x1006aace
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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 0x1006aaf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 3
push 0
push 1
push 8
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006ab61
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1006ab4d
mov eax, dword [ebp - 8]
cdq
mov cl, 0x20
call fcn.10097480
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
or dword [esi], eax
mov dword [esi + 4], edx
mov bl, 1
jmp 0x1006ab5a
mov dword [esi], 0
mov dword [esi + 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1006ab9f
cmp word [eax], 0
je 0x1006ab9f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x1006b180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009e3db
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x100b2814
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.100089b0
push 0x104
lea eax, [esp + 0x48]
push eax
push 0
mov dword [esp + 0x26c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x44], ax
jne 0x1006b22f
xor ecx, ecx
jmp 0x1006b245
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b236
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.100089b0
cmp dword [esp + 0x3c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1006b26a
push dword [esp + 0x28]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
call fcn.1000d5d0
cmp dword [esp + 0x20], 8
jb 0x1006b29f
push dword [esp + 0xc]
call esi
add esp, 4
push 1
push dword [esp + 0x3c]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0x5c
call fcn.10016c40
inc eax
push eax
push 0
push edi
lea ecx, [esp + 0x34]
call fcn.10011440
cmp dword [esp + 0x3c], 8
jb 0x1006b2d9
push dword [esp + 0x28]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006b300
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x104
lea eax, [ebp - 0x61c]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp + 8], 0
je 0x1006b422
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1006b3c8
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b3d1
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jb 0x1006b518
push str._c_rd__
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov esi, dword [sym.imp.MSVCR110.dll_wcscat_s]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call esi
push str.___S_Q
jmp 0x1006b459
push str._c_del
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov esi, dword [sym.imp.MSVCR110.dll_wcscat_s]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call esi
push str.___nul
lea eax, [ebp - 0x414]
push 0x104
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x658]
push 0x3c
push 0
push eax
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x658]
push eax
mov dword [ebp - 0x658], 0x3c
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x64c], str.Open
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x654], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1006b518
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0x620]
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea eax, [ebp - 0x20c]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006cd70
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x10], 0x104
lea edi, [esi + 0x10]
jb 0x1006cda6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push ebx
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x1006ce2b
cmp dword [esi + 0x14], 8
jb 0x1006cdb8
mov eax, dword [esi]
jmp 0x1006cdba
mov eax, esi
lea ecx, [ebp - 0x234]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1006cedc
test byte [ebp - 0x234], 0x10
je 0x1006ce01
cmp dword [esi + 0x14], 8
jb 0x1006cde3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x1006ce0b
mov eax, dword [esi]
jmp 0x1006ce0d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1006ce2b
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1006ce51
mov esi, dword [esi]
mov eax, dword [edi]
inc eax
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
xorps xmm0, xmm0
lea eax, [ebp - 0x210]
movq qword [ebp - 0x250], xmm0
mov dword [ebp - 0x24c], eax
add esp, 0xc
mov eax, 0x414
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x254], 0
movq qword [ebp - 0x240], xmm0
mov word [ebp - 0x238], 0
mov dword [ebp - 0x250], 3
mov word [ebp - 0x244], ax
test bl, bl
jne 0x1006cec6
mov eax, 0x1494
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x242], 0
je 0x1006ceef
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1006cf12
cmp eax, 2
je 0x1006cf12
cmp eax, 0x402
je 0x1006cf12
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006cf90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e458
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100e6018]
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 esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x1006cfc8
mov edi, dword [esi]
jmp 0x1006cfca
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006cfe0
shr al, 4
and al, 1
jmp 0x1006d065
lea eax, [ebp - 0x2c]
push esi
push eax
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::filepath::dirname_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x1006cffe
mov eax, dword [esi]
jmp 0x1006d000
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10010100
test eax, eax
je 0x1006d04f
lea eax, [ebp - 0x2c]
push eax
call sym.iImportLib.dll_bool___cdecl_elex::filepath::mkdir_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x1006d04f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1006d04b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1006d04f
push esi
call sym.iImportLib.dll_bool___cdecl_elex::filepath::isdir_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x1006d04f
mov bl, 1
jmp 0x1006d051
xor bl, bl
cmp dword [ebp - 0x18], 8
jb 0x1006d063
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006d090
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x3fe
push eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x36]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006d14b
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.Common_Programs
push dword [esp + 0x1c]
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
test eax, eax
je 0x1006d162
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esp + 0x2c], ax
jne 0x1006d184
xor ecx, ecx
jmp 0x1006d19f
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
jmp 0x1006d190
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d190
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.100089b0
mov dword [esp + 0x440], 0
cmp dword [esi + 0x14], 8
jb 0x1006d1c1
mov esi, dword [esi]
cmp word [esi], 0
jne 0x1006d1cb
xor ecx, ecx
jmp 0x1006d1df
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d1d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.10011f70
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
call sym.iImportLib.dll_void___cdecl_elex::filepath::PinToStartMenuShortcut_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___bool_
add esp, 8
cmp dword [esp + 0x28], 8
jb 0x1006d20e
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006d230
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dd78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov bl, byte [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x18], cx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.10008c80
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jb 0x1006d2aa
mov ecx, eax
test eax, eax
je 0x1006d323
jmp 0x1006d2ae
lea ecx, [esp + 0x10]
cmp word [ecx], 0
je 0x1006d323
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006d31f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call sym.iImportLib.dll_int___cdecl_elex::os::ISAFE_GetOSVersion_unsigned_long_int___unsigned_long_int__
mov eax, dword [esp + 0x10]
and eax, 0xff00
add esp, 8
cmp eax, 0x1600
jb 0x1006d31f
push 0
test bl, bl
mov eax, str.startunpin
mov ecx, str.startpin
cmove ecx, eax
cmp dword [esp + 0x28], 8
push 0
push 0
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], 8
jb 0x1006d334
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006d350
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009e8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov bl, byte [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x18], cx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.10008c80
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jb 0x1006d3ca
mov ecx, eax
test eax, eax
je 0x1006d443
jmp 0x1006d3ce
lea ecx, [esp + 0x10]
cmp word [ecx], 0
je 0x1006d443
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006d43f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call sym.iImportLib.dll_int___cdecl_elex::os::ISAFE_GetOSVersion_unsigned_long_int___unsigned_long_int__
mov eax, dword [esp + 0x10]
and eax, 0xff00
add esp, 8
cmp eax, 0x1600
jb 0x1006d43f
push 0
test bl, bl
mov eax, str.taskbarunpin
mov ecx, str.taskbarpin
cmove ecx, eax
cmp dword [esp + 0x28], 8
push 0
push 0
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], 8
jb 0x1006d454
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006d950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.100974c0
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x81e
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
mov dword [ebp - 0x1048], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x824]
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp byte [ebp + 0x10], 1
jne 0x1006da0a
cmp dword [ebp + 0xc], 0x25
jne 0x1006da0a
xor eax, eax
push 0x81e
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call sub.MSVCR110.dll_memset
push 1
push 0x410
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x824]
push eax
call sym.iImportLib.dll_bool___cdecl_elex::filepath::GetFile3264Path_wchar_t_const___wchar_t___unsigned_int__bool_
add esp, 0x1c
lea eax, [ebp - 0x1044]
push eax
mov ecx, esi
call fcn.10008550
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x824], ax
jne 0x1006da2a
xor ecx, ecx
jmp 0x1006da42
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006da33
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x824]
push eax
mov ecx, esi
call fcn.100089b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006dbe0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x1006dbff
mov eax, dword [esi]
jmp 0x1006dc01
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x1006dc22
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push edi
push 1
push ebx
call dword [sym.imp.MSVCR110.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x1006dcc1
cmp dword [esi + 0x14], 8
jb 0x1006dc41
mov esi, dword [esi]
push edi
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1006dcb7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1006dcb7
cmp dword [ebp - 0x10], 0
je 0x1006dcb7
push 0x10
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x1006dcc1
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push edi
mov ecx, eax
call sym.iImportLib.dll_private:_void___thiscall_elex::file::FileVersionInfo::constructor_void___int__int_
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x1006e030
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 4]
mov word [ebp - 0x224], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x222], ax
call esi
mov word [ebp - 0x220], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x21e], ax
movzx eax, word [edi + 4]
mov word [ebp - 0x21c], ax
mov eax, 0x4e4
mov word [ebp - 0x21a], ax
call esi
mov word [ebp - 0x218], ax
mov eax, 0x4e4
mov word [ebp - 0x216], ax
xor esi, esi
jmp 0x1006e0c0
movzx eax, word [ebp + esi*2 - 0x222]
movzx ecx, word [ebp + esi*2 - 0x224]
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x20c]
push 0x104
push eax
add esi, 2
call dword [sym.imp.MSVCR110.dll__snwprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
mov dword [ebp - 0x214], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1006e12a
mov edx, dword [ebp - 0x214]
test edx, edx
jne 0x1006e144
cmp esi, 8
jl 0x1006e0c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x1006e16e
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.100089b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006e173
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.100089b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret 8