joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100241a2
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10151d70
mov eax, dword fs:[0]
push eax
mov eax, 0x4834
call fcn.1012ba20
mov eax, dword [0x102406a8]
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
cmp dword [ecx + 0x1c], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4840], eax
jne 0x100241ed
xor eax, eax
jmp 0x100242e0
lea eax, [ebp - 0x483c]
mov esi, 0x4000
push eax
push esi
lea eax, [ebp - 0x4830]
push eax
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
je 0x100242dd
cmp dword [ebp - 0x483c], esi
jae 0x100242dd
push 0x820
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1012db70
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x4838], esi
push 0x40f
lea eax, [ebp - 0x830]
push eax
push dword [ebp + esi*4 - 0x4830]
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x100242ca
mov eax, dword [edi + 4]
xor ebx, ebx
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x100242ca
mov esi, dword [ebp - 0x4840]
push dword [ecx + ebx*4]
lea eax, [ebp - 0x830]
push eax
call fcn.100534d3
pop ecx
pop ecx
test eax, eax
je 0x100242b5
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x4834]
call int.100088c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x4834]
push eax
mov ecx, esi
call fcn.10008790
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4834]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov eax, dword [edi + 4]
inc ebx
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1002426a
mov esi, dword [ebp - 0x4838]
inc esi
mov dword [ebp - 0x4838], esi
cmp esi, 0x410
jb 0x10024238
xor eax, eax
inc eax
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.1012b632
leave
ret 8

Function at 0x1002c2df
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov ebx, ecx
lea edi, [ebp - 0x24]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [ebx], vtable.CMemoryHelper.0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
and dword [ebx + 4], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
push str.ntdll
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1002c342
push str.ZwQueryVirtualMemory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push edi
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x14], eax
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10041df3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.1012db70
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1012db70
add esp, 0x18
lea eax, [ebp - 0x20c]
mov ecx, edi
push ebx
push eax
call fcn.10042160
test eax, eax
je 0x10041f1e
lea eax, [ebp - 0x20c]
push eax
call fcn.10010313
test eax, eax
je 0x10041f1a
push 0x1018d75c
call fcn.10057f32
pop ecx
cmp dword [edi + 4], esi
jne 0x10041e77
push str.360safe_System_Repair__select_this_if_the_system_cant_startup_
call fcn.10057f32
pop ecx
push 0x1018d948
call fcn.10057f32
pop ecx
push 4
pop eax
push esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], esi
push eax
lea eax, [ebp - 0x418]
push eax
push str.Current
push str.SYSTEMSelect
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1010e24e
mov ecx, eax
call fcn.1010d6c7
test eax, eax
jne 0x10041f1e
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
push str.LastKnownGood
push str.Service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
call fcn.10136ce4
pop ecx
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x41c], eax
jne 0x10041f0e
xor esi, esi
inc esi
lea eax, [ebp - 0x20c]
push eax
call fcn.1000f894
mov eax, esi
jmp 0x10041f20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret

Function at 0x10041f82
Capabilities:
Manipulate boot configuration

Disassembly:
push 0xa24
mov eax, 0x10157398
call fcn.1012b6ae
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
push esi
push eax
call fcn.1012db70
add esp, 0xc
test ebx, ebx
jne 0x10041fb6
xor eax, eax
jmp 0x1004208f
push 0x43
pop edi
push edi
push str._c:_boot.ini
lea eax, [ebp - 0x218]
push 0x208
push eax
call fcn.10015ce6
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call fcn.10010313
test eax, eax
jne 0x10041feb
inc edi
cmp edi, 0x5a
jle 0x10041fb9
jmp 0x10041faf
lea ecx, [ebp - 0xa30]
call fcn.1011ef02
mov dword [ebp - 4], esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa30]
call fcn.1011f0e8
test eax, eax
je 0x1004207e
mov edi, 0x800
lea eax, [ebp - 0xa18]
push edi
push esi
push eax
call fcn.1012db70
add esp, 0xc
jmp 0x10042052
push str._boot_loader_
call fcn.10130fe5
pop ecx
push eax
push str._boot_loader_
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x1004206b
xor eax, eax
mov word [ebp - 0xa18], ax
push edi
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0xa30]
call fcn.1007bc9e
test eax, eax
jne 0x10042027
jmp 0x1004207e
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.100100b8
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa30]
call fcn.1011ef42
mov eax, esi
call fcn.1012b658
ret 8
Function at 0x1004dcbf
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004dd24
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.1012ba20
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004e364
test eax, 0x400
je 0x1004e364
lea eax, [ebp - 0x4018]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x4010]
xor edi, edi
push eax
push str.SeBackupPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push edi
push edi
push 0x10
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4014], 1
push eax
push edi
push dword [ebp - 0x4018]
mov dword [ebp - 0x4008], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x4018]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004e364
xor ecx, ecx
lea eax, [ebp - 0x401c]
push ecx
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push ecx
push ecx
push 0x900a8
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004e35f
test dword [ebp - 0x4004], 0x1fff0000
jne 0x1004e35f
cmp dword [ebp - 0x4004], 1
jbe 0x1004e35f
push esi
call edi
lea eax, [ebp - 0x3ff4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x1004e346
push 0x5c
pop eax
cmp word [ebp - 0x3ff4], ax
jne 0x1004e346
push 0x3f
pop ecx
cmp word [ebp - 0x3ff2], cx
je 0x1004e32e
cmp word [ebp - 0x3ff2], ax
jne 0x1004e346
cmp word [ebp - 0x3ff0], cx
jne 0x1004e346
cmp word [ebp - 0x3fee], ax
lea eax, [ebp - 0x3fec]
je 0x1004e34c
lea eax, [ebp - 0x3ff4]
push eax
mov ecx, ebx
call fcn.100091b4
movzx eax, word [ebp - 0x3ffa]
shr eax, 1
jmp 0x1004e36e
push esi
call edi
jmp 0x1004e36c
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
Function at 0x1007750e
Capabilities:
Read .ini file

Disassembly:
push 0x214
mov eax, 0x1015ff14
call fcn.1012b6ae
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x10077667
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1024b9f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...uiitem.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x220]
call fcn.100413a9
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
mov byte [ebp - 0x219], 0x4c
push edi
lea eax, [ebp - 0x219]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.10113d34
test eax, eax
jne 0x100775a8
mov dword [esi + 0x10], edi
jmp 0x10077658
lea ecx, [ebp - 0x220]
call fcn.101130bc
mov edi, eax
test edi, edi
je 0x10077651
cmp word [edi], bx
je 0x100775ff
push 0xa
pop eax
push eax
push edi
call fcn.1012e97a
pop ecx
pop ecx
mov ebx, eax
mov ecx, esi
push edi
test ebx, ebx
je 0x100775ec
xor eax, eax
mov word [ebx], ax
call fcn.10076d11
push 0xa
pop eax
mov word [ebx], ax
lea edi, [ebx + 2]
jmp 0x100775f1
call fcn.10076d11
test ebx, ebx
je 0x100775ff
xor eax, eax
cmp word [edi], ax
push 0xa
pop eax
jne 0x100775c5
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1024b9f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._netconf.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0x5dc
push str.Umxc
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.1011194f
call fcn.1012b658
ret

Function at 0x1007b6ec
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push 0
push eax
mov edi, ecx
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
lea ecx, [edi + 0x1c]
lea eax, [ebp - 0x108]
push eax
call fcn.10008b31
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret

Function at 0x100819c9
Capabilities:
Query environment variable

Disassembly:
push 0x41c
mov eax, 0x1014e6a3
call fcn.1012b6ae
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x420]
xor edi, edi
mov dword [ebp - 0x428], esi
push 0x410
push edi
push eax
mov dword [ebp - 0x424], edi
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push eax
push str._AppData_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10081a27
push 0x101bd7f8
mov ecx, esi
call int.100088c7
jmp 0x10081a47
push str.360Safe360mbr.bin
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call int.100088c7
mov dword [ebp - 4], edi
mov dword [ebp - 0x424], 1
mov eax, esi
call fcn.1012b658
ret 4
Function at 0x1008a118
Capabilities:
Get common file path

Disassembly:
push 0x418
mov eax, 0x10163391
call fcn.1012b6ae
mov esi, ecx
mov dword [ebp - 0x414], esi
push dword [esi + 0x30]
call fcn.10130fe5
pop ecx
test eax, eax
je 0x1008a1f7
push dword [esi + 0x3c]
lea ecx, [ebp - 0x424]
call fcn.1001de59
mov ebx, eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x420]
push dword [esi + 0x38]
call fcn.1001de59
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
push dword [esi + 0x34]
call fcn.1001de59
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x418]
mov eax, dword [ebp - 0x414]
push dword [eax + 0x30]
call fcn.1001de59
mov byte [ebp - 4], 3
push dword [ebx]
mov ecx, dword [ebp - 0x414]
push dword [edi]
push dword [esi]
mov ecx, dword [ecx + 4]
push dword [eax]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
setne bl
mov byte [ebp - 4], 2
push dword [ebp - 0x418]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], 1
push dword [ebp - 0x41c]
call esi
mov byte [ebp - 4], 0
push dword [ebp - 0x420]
call esi
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x424]
call esi
test bl, bl
jne 0x1008a25c
mov ecx, dword [ebp - 0x414]
call fcn.1008a264
jmp 0x1008a25e
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x410]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1008a25c
push str.360Quarant
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1008a25c
mov eax, dword [esi + 4]
lea edx, [ebp - 0x410]
push ebx
push str.union
push str.360safe
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1008a25c
mov ecx, esi
jmp 0x1008a1f0
xor eax, eax
call fcn.1012b658
ret

Function at 0x1008ad99
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 0x14]
and eax, 0x100
or eax, 0xf003f
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1008addf
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1009c899
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x1009cae2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009cb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1009cb08
xor al, al
jmp 0x1009cb1c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x100a076c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10134acf
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
and dword [ecx + 4], 0
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0x18

Function at 0x100a08d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10137bcd
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
and dword [ecx + 4], 0
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0x18

Function at 0x100a25b6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xffffffff
jne 0x100a25ca
mov eax, 0x80070057
jmp 0x100a25ff
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100a25e8
mov eax, 0x80004005
jmp 0x100a25ff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
pop ebp
ret 0xc

Function at 0x100a26a9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xffffffff
je 0x100a271d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100a271d
push esi
push 0x48
push 0
push ebx
call fcn.1012db70
add esp, 0xc
lea eax, [ebx + 8]
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test byte [ebp + 0x10], 1
mov esi, eax
jne 0x100a270a
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x100a270a
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
test eax, eax
je 0x100a270a
push dword [edi + 0x10]
push eax
call fcn.101401ce
pop ecx
pop ecx
neg esi
sbb esi, esi
and esi, 0x7fffbffb
lea eax, [esi - 0x7fffbffb]
pop esi
jmp 0x100a2722
mov eax, 0x80004005
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x100a61e5
Capabilities:
Get common file path

Disassembly:
push 0x41c
mov eax, 0x1014e6a3
call fcn.1012b6ae
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, 0x208
mov dword [ebp - 0x428], esi
xor ebx, ebx
push edi
push ebx
push eax
mov dword [ebp - 0x424], ebx
call fcn.1012db70
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.1012db70
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jne 0x100a6247
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x100a6268
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.10019f19
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1004c167
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
push ebx
push str.360pkg_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call int.100088c7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x424], 1
mov eax, esi
call fcn.1012b658
ret 8
Function at 0x100a6551
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x208
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call fcn.1012db70
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x100a65c3
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x100a65d7
push 3
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.100a764b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x214]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x210]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret 4

Function at 0x100a6ca8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xa
mov esi, ecx
lea edi, [ebp - 0x2c]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
jne 0x100a6ce3
mov eax, 0x80004005
jmp 0x100a6d24
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x1c]
add ecx, dword [ebp + 8]
shl eax, 0x14
cmp ecx, eax
ja 0x100a6d22
push 0x40
pop edi
push edi
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.1012db70
add esp, 0xc
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0x64
pop eax
sub eax, dword [ebp - 0x68]
cmp eax, dword [esi + 0x20]
jb 0x100a6d22
xor eax, eax
inc eax
jmp 0x100a6d24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1012b632
leave
ret 4
Function at 0x100ad76d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016905c
mov eax, dword fs:[0]
push eax
mov eax, 0x10014
call fcn.1012ba20
mov eax, dword [0x102406a8]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10020], esi
inc ecx
mov dword [ebp - 0x1001c], ebx
mov eax, dword [0x10248928]
test cl, al
jne 0x100ad7f0
or eax, ecx
mov dword [0x10248928], eax
mov dword [ebp - 4], ecx
call fcn.10007945
push eax
mov ecx, 0x10248924
call fcn.10008bfd
mov byte [ebp - 4], 1
push 0x1017efd8
call fcn.1012b5d3
pop ecx
mov byte [ebp - 4], bl
mov eax, dword [0x10248928]
test al, 2
jne 0x100ad825
or eax, 2
mov dword [0x10248928], eax
mov dword [ebp - 4], 3
call fcn.10007945
push eax
mov ecx, 0x1024892c
call fcn.10008bfd
mov byte [ebp - 4], 3
push 0x1017efb4
call fcn.1012b5d3
pop ecx
mov byte [ebp - 4], bl
cmp dword [0x1022716c], 0
je 0x100ad8ec
call fcn.100b2d98
test eax, eax
je 0x100ad8ec
lea eax, [ebp - 0x10018]
mov dword [0x1022716c], ebx
push str._programfiles_
push eax
call fcn.100ad76d
pop ecx
pop ecx
mov dword [ebp - 4], 5
mov ecx, 0x10248924
push eax
call fcn.10010aef
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10018]
lea ecx, [ecx - 0x10]
call fcn.100078bc
lea eax, [ebp - 0x10018]
push str._commonprogramfiles_
push eax
call fcn.100ad76d
pop ecx
pop ecx
mov dword [ebp - 4], 7
mov ecx, 0x1024892c
push eax
call fcn.10010aef
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10018]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov ecx, 0x10248924
call fcn.1001f111
push 0x101bd7f8
mov ebx, str.__x86_
mov ecx, 0x10248924
push ebx
call fcn.10015b5c
mov ecx, 0x1024892c
call fcn.1001f111
push 0x101bd7f8
push ebx
mov ecx, 0x1024892c
call fcn.10015b5c
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10014]
call int.100088c7
mov dword [ebp - 4], 9
cmp dword [0x10248824], 0
je 0x100ad94b
lea ecx, [ebp - 0x10014]
call fcn.1001f111
mov eax, dword [0x10248924]
cmp dword [eax - 0xc], 0
je 0x100ad92f
push eax
push str._programfiles_
lea ecx, [ebp - 0x10014]
call fcn.10015b5c
mov eax, dword [0x1024892c]
cmp dword [eax - 0xc], 0
je 0x100ad94b
push eax
push str._commonprogramfiles_
lea ecx, [ebp - 0x10014]
call fcn.10015b5c
xor eax, eax
mov word [ebp - 0x10010], ax
lea eax, [ebp - 0x10010]
push 0x8000
push eax
push dword [ebp - 0x10014]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x10010]
mov ecx, esi
push eax
call int.100088c7
mov dword [ebp - 0x1001c], 1
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10014]
add ecx, 0xfffffff0
call fcn.100078bc
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.1012b632
leave
ret